finding host more reliabily

This commit is contained in:
n.diaz
2024-11-25 20:15:49 +01:00
parent 3d541b5cbc
commit 763aacfc8f
4 changed files with 3 additions and 1 deletions

BIN
waf.db Normal file

Binary file not shown.

BIN
waf.db-shm Normal file

Binary file not shown.

0
waf.db-wal Normal file
View File

View File

@ -181,7 +181,9 @@ async def scan(log):
url = splitted[6].strip() url = splitted[6].strip()
status = splitted[8].strip() status = splitted[8].strip()
date_position = splitted[3][1:] date_position = splitted[3][1:]
host = log.parent.parent.basename() # host = log.parent.parent.basename()
host = log.splitall()[1]
print(host)
if ip not in whitelist_ips: if ip not in whitelist_ips:
for rule in checklist: for rule in checklist:
where = url where = url