diff options
| author | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-05-21 09:18:58 +0200 |
|---|---|---|
| committer | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-05-21 09:18:58 +0200 |
| commit | 5e7d446f792a5fba71606a71f6398e249446b1c7 (patch) | |
| tree | 83a1f8cd2a89982e9251d3814bb6a2c2021fa215 /www/html/index.py | |
| parent | ec99f84d8285a9439b726da67eb0422249b9e185 (diff) | |
| download | ATS-5e7d446f792a5fba71606a71f6398e249446b1c7.tar.gz ATS-5e7d446f792a5fba71606a71f6398e249446b1c7.tar.bz2 ATS-5e7d446f792a5fba71606a71f6398e249446b1c7.zip | |
Beaucoup de changements
Diffstat (limited to '')
| -rwxr-xr-x | www/html/index.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/www/html/index.py b/www/html/index.py index 446a90e..60bf4e5 100755 --- a/www/html/index.py +++ b/www/html/index.py @@ -29,20 +29,20 @@ def index(req): #takes every lines from the select for i in data : - content+=("""<tr> -<td>""" + str(i[1]) + """</td> -<td>""" + str(i[2]) + """</td> -<td>""" + str(i[3]) + """</td> -<td>""" + lien('destination.py?ip=' + str(i[4]), str(i[4])) + """</td> -<td>""" + str(i[5]) + """</td> -<td>""" + str(i[6]) + """</td> - </tr>""") - + content+=("""<tr>""" + +"""<td>""" + str(i[1]) + """</td>""" + +"""<td>""" + str(i[2]) + """</td>""" + +"""<td>""" + lien('ip_source.py?ip=' + str(i[3]), str(i[3])) + """</td>""" + +"""<td>""" + lien('ip_destination.py?ip=' + str(i[4]), str(i[4])) + """</td>""" + +"""<td>""" + lien('port_source.py?port=' + str(i[5]), str(i[5])) + """</td>""" + +"""<td>""" + lien('port_destination.py?port=' + str(i[6]), str(i[6])) + """</td>""" + +"""</tr>""") + #write the html page - req.write(baseHTML("ATS-Project",""" -<h1>ATS-Project</h1> + req.write(baseHTML("ATS - Accueil",""" +<h1>ATS</h1> <div id="tip" style="display:block;"> -Pour voir le nombre de paquets en destination d'une adresse IP, cliquez sur cette dernière dans le tableau <button id="ok" onclick="toggle_div(this,'tip');">OK</button></div> +Afin de voir le reverse DNS d'une adresse IP, cliquez sur cette dernière dans le tableau <button id="ok" onclick="toggle_div(this,'tip');">OK</button></div> <p>Nombre total de paquets : <b>"""+ count +"""</b></p> <em>Pour afficher toute la table, cliquez</em> <button id="afficheTas" onclick="affiche_tas()">ICI</button><br/> |
