Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ghidra]Failed to run decompliation command. #27

Open
yixinBC opened this issue Sep 7, 2022 · 1 comment
Open

[Ghidra]Failed to run decompliation command. #27

yixinBC opened this issue Sep 7, 2022 · 1 comment

Comments

@yixinBC
Copy link

yixinBC commented Sep 7, 2022

I think I have installed everything as guided.But all I had was the mercyless error.

Failed to run decompiliation command. Check your configuration. 
{
  "code": {
    "errno": -4058,
    "code": "ENOENT",
    "syscall": "spawn \"C:\\Program Files\\ghidra_10.1.5_PUBLIC\\support\\analyzeHeadless.bat\"",
    "path": "\"C:\\Program Files\\ghidra_10.1.5_PUBLIC\\support\\analyzeHeadless.bat\"",
    "spawnargs": [
      "C:\\Users\\yixin\\AppData\\Local\\Temp\\tmp-56784-WSVeXLwz8yco",
      "vscode-decompiler",
      "-import",
      "c:\\Users\\yixin\\code\\C\\220907\\sumof1to100.exe",
      "-scriptPath",
      "c:\\Users\\yixin\\.vscode\\extensions\\tintinweb.vscode-decompiler-0.1.0\\scripts",
      "-postScript",
      "c:\\Users\\yixin\\.vscode\\extensions\\tintinweb.vscode-decompiler-0.1.0\\scripts\\ghidra_decompile.py",
      "C:\\Users\\yixin\\AppData\\Local\\Temp\\tmp-56784-u23w3HbLeEDi"
    ]
  },
  "type": "single",
  "err": "tool returned non-zero exit code"
}

Thanks for any assistance you can provide

@JMPZ11
Copy link

JMPZ11 commented Jan 9, 2023

Two things to double-check:

  1. You need Python3 installed system-wide and in the path (a user install in the user path might work - haven't tried)
  2. It is my experience that it cannot handle spaces or parentheses in the file paths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants