import subprocess # runExe takes two parameters and runs CrackMe.exe. It will return the result of CrackMe.exe as a string username=str() # username: string pin=int() # pin: int # return: string def runExe(username, pin): out = subprocess.check_output(["CrackMe.exe", username, str(pin)], shell=True) out = str(out, 'utf-8') out = out.strip() return out # Example of how runExe is used (replace this with your solution) output = runExe("[email protected]", 1000) print(output)
[split] calling external exe with subprocess (maybe)
[split] calling external exe with subprocess (maybe)
|
Sep-09-2019, 08:06 AM
what is your question?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Sep-09-2019, 09:47 AM
pin is always 0 and username is always empty.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians! |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
calling external function with arguments | Wimpy_Wellington | 6 | 2,932 |
Jul-05-2023, 06:33 PM Last Post: deanhystad |
|
WindowsError when calling nbtstat command using subprocess | tsame | 0 | 2,469 |
Mar-17-2018, 12:40 PM Last Post: tsame |
Users browsing this thread: 1 Guest(s)