From 5e7d446f792a5fba71606a71f6398e249446b1c7 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Thu, 21 May 2020 09:18:58 +0200 Subject: Beaucoup de changements --- www/html/bilan.py | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'www/html/bilan.py') diff --git a/www/html/bilan.py b/www/html/bilan.py index a85fe98..3ebbbe7 100755 --- a/www/html/bilan.py +++ b/www/html/bilan.py @@ -48,16 +48,36 @@ def index(req): for k in suff: nom="each_"+j+"_"+k for i in globals()[nom]: - globals()[j+k]+=(""" -""" + str(i[0]) + """ + if j=="ip" and k=="dst": + globals()[j+k]+=(""" +""" +lien('ip_destination.py?ip='+str(i[0]), str(i[0]) )+ """ """ + str(i[1]) + """ - """) + """) + + elif j=="port" and k=="dst": + globals()[j+k]+=(""" +""" +lien('port_destination.py?port='+str(i[0]), str(i[0]) )+ """ +""" + str(i[1]) + """ + """) + + elif j=="ip" and k=="src": + globals()[j+k]+=(""" +""" + lien('ip_source.py?ip='+str(i[0]), str(i[0]) ) + """ +""" + str(i[1]) + """ + """) + else: + globals()[j+k]+=(""" +""" + lien('port_source.py?port='+str(i[0]), str(i[0]) ) + """ +""" + str(i[1]) + """ + """) #write the html page - req.write(baseHTML("ATS-Project",""" + req.write(baseHTML("ATS - Bilan","""

Bilan

+
+Afin de voir le reverse DNS d'une adresse IP, cliquez sur cette dernière dans le tableau
-
+
"""+str(ipdst)+""" @@ -83,8 +103,7 @@ def index(req): """+str(portsrc)+"""
IP destinationRecurrence
Port sourceReccurrence
- - - +
+ """ )) -- cgit v1.2.3