I'm trying to run an openssl command in python. The problem is that everytime i run the command it asks for the password. Is there any function to put i,j,k,l variables in when asked for the password? The password should be between 0000-9999. This is my code:
from pynput.keyboard import Key, Controller
import os
import subprocess
keyboard=Controller()
for i in range(10):
for j in range(10):
for k in range(10):
for l in range(10):
os.system('openssl rsa -in bob.prv -pubout -out bob.pub')
print(i)
print(j)
print(k)
print(l)
keyboard.press('enter')
keyboard.release('enter')