diff options
| -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:])
|
