diff options
| author | jerome <jerome@xlinfo.fr> | 2025-10-18 10:58:07 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-10-18 10:58:07 +0200 |
| commit | 0f89f09d7a4b1df6e00727ef22195958ee479d1e (patch) | |
| tree | 28a1748e97953d1ba988f3ce27a02940ecfaf57a | |
| parent | 4ddbd104bf6f8a2fad7deb44002c87865c7fab65 (diff) | |
| download | python-0f89f09d7a4b1df6e00727ef22195958ee479d1e.tar.gz python-0f89f09d7a4b1df6e00727ef22195958ee479d1e.zip | |
| -rw-r--r-- | bruteforce/bruteWeb.py | 4 | ||||
| -rw-r--r-- | scapy/scan_tcp.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bruteforce/bruteWeb.py b/bruteforce/bruteWeb.py index e75cde1..e72b82c 100644 --- a/bruteforce/bruteWeb.py +++ b/bruteforce/bruteWeb.py @@ -31,7 +31,7 @@ if __name__ == "__main__": # le fichier nmap.lst à des commentaires en début de fichier if ligne[0] != "#": password=ligne.strip() - if bruteforce(method,url,username,password,error_msg)==True: - sys.exit() + if bruteforce(method,url,username,password,error_msg) is True: + break diff --git a/scapy/scan_tcp.py b/scapy/scan_tcp.py index 390c2b2..a268c30 100644 --- a/scapy/scan_tcp.py +++ b/scapy/scan_tcp.py @@ -6,7 +6,7 @@ from scapy.all import * def scapy_scan(host,*ports):
for port in ports:
ans,unans = sr(IP(dst=host)/TCP(sport=RandShort(),dport=int(port)),verbose=0)
- ans.summary(lambda s,r: r.sprintf("%IP.dst% \t %TCP.sport% \t %TCP.flags%"))
+ ans.summary(lambda s,r: r.sprintf("%IP.src% \t %TCP.sport% \t %TCP.flags%"))
try:
scapy_scan(sys.argv[1],*sys.argv[2:])
|
