Last active
August 29, 2015 14:09
-
-
Save miawgogo/712e6e03ae6914b4f448 to your computer and use it in GitHub Desktop.
Faux password guessor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, sys, os | |
# this function was taken from stack overflow | |
def getTerminalSize(): | |
import os | |
env = os.environ | |
def ioctl_GWINSZ(fd): | |
try: | |
import fcntl, termios, struct, os | |
cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, | |
'1234')) | |
except: | |
return | |
return cr | |
cr = ioctl_GWINSZ(0) or ioctl_GWINSZ(1) or ioctl_GWINSZ(2) | |
if not cr: | |
try: | |
fd = os.open(os.ctermid(), os.O_RDONLY) | |
cr = ioctl_GWINSZ(fd) | |
os.close(fd) | |
except: | |
pass | |
if not cr: | |
cr = (env.get('LINES', 25), env.get('COLUMNS', 80)) | |
### Use get(key[, default]) instead of a try/catch | |
#try: | |
# cr = (env['LINES'], env['COLUMNS']) | |
#except: | |
# cr = (25, 80) | |
return int(cr[1]), int(cr[0]) | |
(width, height) = getTerminalSize() | |
#This script was disigned to clone a hacking program visulation in epsodie 5 of serise 10. | |
# Based of a /r/itsaunixsystem thread http://goo.gl/ueF659 | |
list=["123456", "12345678", "qwerty", "abc123", "123456789", "111111", "1234567", "iloveyou", "adobe123", "123123", "admin", "1234567890", "letmein", "photoshop", "1234", "monkey", "shadow", "sunshine", "12345", "password1", "princess", "azerty", "trustno1", "000000", "password"] | |
print "Such HAx0Zr PasSw0rdZ guess0rZ \n \n " | |
count=width | |
print "loading" | |
while count > 0 : | |
sys.stdout.write('*') | |
count=count-1 | |
time.sleep(0.002) | |
# and remove the below | |
#print "*" * int(width) | |
time.sleep(0.5) | |
for pwd in list: | |
print '[ATTEMPT] Trying Password "'+pwd+'" for account "admin"' | |
time.sleep(0.5) | |
print '[SUCCESS] Password was "password" \nNEW PERMISHIONS GAINED' | |
print 'Code For this Faux Hacking code was done by Ioan Loosley (C) Ioan Loosley 2014\nLicence GPL' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment