-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParsingLogFile.py
More file actions
21 lines (20 loc) · 1.61 KB
/
ParsingLogFile.py
File metadata and controls
21 lines (20 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
print('''
██╗░░░██╗███████╗███████╗███╗░░██╗░█████╗░ ██████╗░░█████╗░██╗
██║░░░██║██╔════╝██╔════╝████╗░██║██╔══██╗ ██╔══██╗██╔══██╗██║
╚██╗░██╔╝█████╗░░█████╗░░██╔██╗██║██║░░██║ ██████╔╝███████║██║
░╚████╔╝░██╔══╝░░██╔══╝░░██║╚████║██║░░██║ ██╔══██╗██╔══██║██║
░░╚██╔╝░░███████╗███████╗██║░╚███║╚█████╔╝ ██║░░██║██║░░██║██║
░░░╚═╝░░░╚══════╝╚══════╝╚═╝░░╚══╝░╚════╝░ ╚═╝░░╚═╝╚═╝░░╚═╝╚═╝''')
print()
with open("website.txt",'r') as f:
print("IP\t\t\tDate_Time\t\t\tRequest\t\tProtocol\tSuccess\tSize\tUser_agent\n\n")
lines=f.readlines()
for i in lines:
i=i.replace('"',"")
i=i.replace("[","")
i=i.replace("]","")
line=i.split()
for j in range (len(line[0]),16):
print(" ",end="")
print(f"{line[0]}\t{line[3]+line[4]}\t{line[5]}\t\t{line[7]}\t{line[8]}\t{line[9]}\t{line[11]}")
f.close()