1
Hacking and Security / Changing Account Privileges in Windows
« on: December 12, 2013, 08:11:24 pm »
How do you get admin privileges for a limited user in windows without using another OS to do the hack?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#!/usr/bin/python3
from itertools import product
import random
def pwdgen():
location = input("""Where do you want to store the words generated? (File Location) (Please specify the directory with / rather than \)""")
maxlen = int(input('How long should the words generated be?'))
file = open(location, 'w')
plist, variable = [], ()
while len(variable) <= maxlen:
variable += (str(random.random()), )
for variable in product(range(33, 127), repeat = maxlen):
tstring = ''
for i in range(0, maxlen):
tstring += chr(variable[i])
file.write(tstring + '\n')
plist.append(tstring)
file = open(location, 'w')
file.close()
return 'Done!'
from itertools import product
import random
def pwdgen():
location = input("""Where do you want to store the words generated? (File Location) (Please specify the directory with / rather than \)""")
maxlen = int(input('How long should the words generated be?'))
plist, variable = [], ()
while len(variable) <= maxlen:
variable += (str(random.random()), )
for variable in product(range(33, 127), repeat = maxlen):
tstring = ''
for i in range(0, maxlen):
tstring += chr(variable[i])
plist.append(tstring)
file = open(location, 'w')
for i in plist:
file.write(i + '\n')
file.close()
return 'Done!'