Upload files to ''

This commit is contained in:
adb 2020-09-01 19:26:56 +00:00
parent 46a5209ca1
commit a290120903
2 changed files with 18 additions and 0 deletions

4
get_ip.py Normal file
View File

@ -0,0 +1,4 @@
import socket
inp = input('domain: ')
print(socket.gethostbyname(inp))

14
random_pw.py Normal file
View File

@ -0,0 +1,14 @@
import random
def random_key(length):
characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
return ''.join(random.choice(characters) for i in range(length))
inp = input('password length: ')
if inp != '':
inp = int(inp)
print('your random password is:\n' + random_key(inp))
else:
print('your random password is:\n' + random_key(8))