Skip to content

Commit

Permalink
ida qt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Petran committed Mar 20, 2024
1 parent 20e74e4 commit 5585e3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions collare/collare.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ def processIn(self,tool,path):
elif tool == "cutter":
Popen([f"Cutter",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True,cwd=destination.replace("\\","\\\\"))
elif tool == "ida":
Popen([f"ida64",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
Popen([f"ida64",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True,env=dict(os.environ, QT_QPA_PLATFORM="xcb"))
elif tool == "ida32":
Popen([f"ida",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
Popen([f"ida",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True,env=dict(os.environ, QT_QPA_PLATFORM="xcb"))
elif tool == "asp":
self.start_task("Generating Android Studio Project")
process = Popen([f"jadx","-d",file_path.replace("\\","\\\\")[:-4],"-e",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
Expand Down Expand Up @@ -892,9 +892,9 @@ def openDBFile(self,path,version):
elif path[-1] == "asp":
Popen(['android-studio',os.path.join(destination,filename.replace(".apk.asp","").replace(".jar.asp","")).replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
elif path[-1] == "i64":
Popen([f'ida64',file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
Popen([f'ida64',file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True,env=dict(os.environ, QT_QPA_PLATFORM="xcb"))
elif path[-1] == "idb":
Popen([f'ida',file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
Popen([f'ida',file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True,env=dict(os.environ, QT_QPA_PLATFORM="xcb"))
elif path[-1] == "jdb2":

# has to be jeb.bat for windows
Expand Down Expand Up @@ -979,9 +979,9 @@ def checkoutDBFile(self,path,version):
shutil.unpack_archive(file_path, destination, "zip")
Popen(['android-studio',os.path.join(destination,filename.replace(".apk.asp","").replace(".jar.asp","")).replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
elif path[-1] == "i64":
Popen(["ida64",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
Popen(["ida64",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True,env=dict(os.environ, QT_QPA_PLATFORM="xcb"))
elif path[-1] == "idb":
Popen(["ida",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True)
Popen(["ida",file_path.replace("\\","\\\\")],stdin=None, stdout=None, stderr=None, close_fds=True,env=dict(os.environ, QT_QPA_PLATFORM="xcb"))
elif path[-1] == "jdb2":
if os.name == "nt":
jeb = "jeb.bat"
Expand Down

0 comments on commit 5585e3d

Please sign in to comment.