diff options
| author | jerome <jerome@xlinfo.fr> | 2025-06-16 22:55:44 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-06-16 22:55:44 +0200 |
| commit | 8f2214dc2001592f8ee5d5082d46e4d293a2c49f (patch) | |
| tree | b3cd55b7f381bdc167aa427bee072ac0d0a88d52 | |
| parent | 9b5f2fc5fcca4c10095a63a18df908534df2edc0 (diff) | |
| download | python-8f2214dc2001592f8ee5d5082d46e4d293a2c49f.tar.gz python-8f2214dc2001592f8ee5d5082d46e4d293a2c49f.zip | |
bidon
| -rw-r--r-- | bruteSSH.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bruteSSH.py b/bruteSSH.py index 2cfa67d..c2bcb89 100644 --- a/bruteSSH.py +++ b/bruteSSH.py @@ -21,10 +21,10 @@ if __name__ == "__main__": try: with open(dico, 'r') as wordlist: for ligne in wordlist.readlines(): - # le fichier nmap.lst à des commentaires en début de fichier - if ligne[0] != "#": - password=ligne.strip() - if bruteforce(hostname,username,password)==True: - sys.exit() + password=ligne.strip() + if bruteforce(hostname,username,password)==True: + sys.exit() except IndexError: print(f"{sys.argv[0]} demande une hôte, un username et une liste de passwords en arguments") + + |
