Closed khaoticdude closed 3 years ago
Just realized I posed on the wrong repo and not the get-extras one. Should I reopen it there?
Just realized I posed on the wrong repo and not the get-extras one. Should I reopen it there?
Done.
Also I've never used this plugin, I'll let someone who has help you out.
At first sight, it looks like an easy bug to fix: in https://github.com/hugsy/gef-extras/blob/master/scripts/retdec.py#L94 try replacing:
fname = "{}/{}.{}".format(path, os.path.basename(params["input_file"]), params["target_language"])
with
fname = "'{}/{}.{}'".format(path, os.path.basename(params["input_file"]), params["target_language"])
That did not fix the issue.
This is an easy fix, but I am not in a position to fix/test right now.
Do you know python? You just need to use shlex.quote
on the fname when building the command, but NOT until after line 105, though the proper solution would be to not use shell=True
in the subprocess
invocation.
See PR #33
dev
branch?gdb -nx
Step 1: Describe your environment
version
in GEF. GEF: rev:10d0086c09a1505d6c63b436fcb6f2422518313c (Git - clean) SHA1(/opt/GEF/gef/gef.py): 4deed06807f24ac47b3d1fe3370b9f6f80dde3dc GDB: 10.1.90.20210103-git GDB-Python: 3.9Step 2: Describe your problem
The
decompile -a
command does not appear to handle the path to the binary wellSteps to reproduce
This "canary" binary is located at: "/home/khaotic/labs/Linux Exploit Development/Test_Linux_Program/"![image](https://user-images.githubusercontent.com/6080590/112223303-b7193e80-8bf7-11eb-9501-cc8e602d18df.png)