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)
Messages In This Thread |
[split] calling external exe with subprocess (maybe) - by himbehl - Sep-09-2019, 04:12 AM
RE: [split] How to ask Smart Questions (thread title expansion) - by buran - Sep-09-2019, 08:06 AM
RE: [split] calling external exe with subprocess (maybe) - by DeaD_EyE - Sep-09-2019, 09:47 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
calling external function with arguments | Wimpy_Wellington | 7 | 1,536 |
Jul-05-2023, 06:33 PM Last Post: deanhystad |
|
WindowsError when calling nbtstat command using subprocess | tsame | 0 | 2,090 |
Mar-17-2018, 12:40 PM Last Post: tsame |
Users browsing this thread: 1 Guest(s)