import random
import string
character = string.ascii_letters
PASSWORD = [''] * 11
PASSWORD[0] = chr(65)
PASSWORD[3] = chr(88)
PASSWORD[7] = chr(88)
for i in range(len(PASSWORD)):
if PASSWORD[i] == '':
PASSWORD[i] = random.choice(character)
print(''.join(pw for pw in PASSWORD)) |
==> |
import random
import string
character = string.ascii_letters
PASSWORD = [''] * 11
PASSWORD[0] = chr(65)
PASSWORD[3] = chr(45)
PASSWORD[7] = chr(45)
for i in range(len(PASSWORD)):
if PASSWORD[i] == '':
PASSWORD[i] = random.choice(character)
print(''.join(pw for pw in PASSWORD)) |
==> |
import random
import string
character = string.ascii_letters
PASSWORD = [''] * 9
PASSWORD[0] = chr(116)
PASSWORD[4] = chr(45)
for i in range(len(PASSWORD)):
if PASSWORD[i] == '':
PASSWORD[i] = random.choice(character)
print(''.join(pw for pw in PASSWORD)) |
==> |
import psutil
exe = "PIDXploit"
def find_pid(process_name):
pids = []
for process in psutil.process_iter(['pid', 'name']):
try:
if process.info['name'] and process_name.lower() in process.info['name'].lower():
pids.append(process.info['pid'])
except psutil.NoSuchProcess:
pass
return pids
pid = find_pid(exe)
if pid:
print(f"Password : EndIsNear-{pid[0]}") |
==> |