shadowbrokers-exploits/windows/Resources/Ops/Tools/boxwine.py
2017-04-14 11:45:07 +02:00

24 lines
No EOL
580 B
Python

username = raw_input('username:')
password = raw_input('password:')
tmp = ''
for i in username:
x = hex(ord(i))[2:]
if (len(x) < 4):
y = ('%s%s' % (('0' * (4 - len(x))), x))
else:
y = x
tmp += ('%s%s' % (y[2:], y[:2]))
tmp += '0000'
print ('USERNAME: %s' % tmp)
tmp = ''
for i in password:
x = hex(ord(i))[2:]
if (len(x) < 4):
y = ('%s%s' % (('0' * (4 - len(x))), x))
else:
y = x
tmp += ('%s%s' % (y[2:], y[:2]))
tmp += '0000'
print ('PASSWORD: %s' % tmp)
raw_input('Press Enter to continue')