Upload files to "/"
This commit is contained in:
10
test.py
10
test.py
@@ -20,9 +20,8 @@ def Extract_Functions(idat64_path,file): #提取伪代码
|
||||
f.write(file)
|
||||
|
||||
subprocess.run(cmd,shell=True,check=True,text=True,capture_output=True) #bash执行idat64命令
|
||||
|
||||
os.remove("tmp.txt")
|
||||
|
||||
|
||||
new_time=time.time()
|
||||
run_tim=new_time-old_time
|
||||
|
||||
@@ -31,7 +30,7 @@ def Extract_Functions(idat64_path,file): #提取伪代码
|
||||
except Exception as error:
|
||||
print(f"{RED}error-> {error}{RESET}")
|
||||
with open("my.log","a+") as f:
|
||||
f.write(f"Extract_Functions {file}-> {error}")
|
||||
f.write(f"Extract_Functions {file}-> {error}\n")
|
||||
exit(-1)
|
||||
def help():
|
||||
help_msg='''python test.py -e idat64_path file <Extract_Functions>
|
||||
@@ -50,10 +49,7 @@ def main():
|
||||
idat64_path=sys.argv[2]
|
||||
file=sys.argv[3]
|
||||
Extract_Functions(idat64_path,file)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user