Upload files to "/"

This commit is contained in:
2024-10-18 17:21:00 +08:00
parent 9bd4f149a5
commit 9327c44117
2 changed files with 17 additions and 12 deletions

10
test.py
View File

@@ -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__":