-
Notifications
You must be signed in to change notification settings - Fork 46
/
proxy.py
19 lines (17 loc) · 1.13 KB
/
proxy.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import win32process
import win32event
import sys
args = '"{idaq_path}" "-Snothing.idc -f {connection_file}"'
if __name__ == '__main__':
hProcess, hThread, dwProcessId, dwThreadId = win32process.CreateProcess(None,
args.format(idaq_path=sys.argv[1],
connection_file=sys.argv[2]),
None,
None,
0,
0,
None,
None,
win32process.STARTUPINFO())
while win32event.WAIT_OBJECT_0 != win32event.WaitForSingleObject(hProcess, win32event.INFINITE):
pass