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

How to solve create process failed, GLE=2 error #39

Open
bheem1007 opened this issue Sep 1, 2022 · 9 comments
Open

How to solve create process failed, GLE=2 error #39

bheem1007 opened this issue Sep 1, 2022 · 9 comments

Comments

@bheem1007
Copy link

[-] PROGRAM ABORT : CreateProcess failed, GLE=2.
Location : Debugger::StartProcess(), C:\Users\admin\Desktop\Jackalope\TinyInst\Windows\debugger.cpp:1670
Screenshot 2022-09-01 153920

@ifratric
Copy link
Collaborator

ifratric commented Sep 1, 2022

GLE=2 means ERROR_FILE_NOT_FOUND, see https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

does Accel.exe exist in the current directory (or PATH)?

@bheem1007
Copy link
Author

yes sir! Accel.exe exist in the path, but don't know why fuzzing is not happening.
Screenshot 2022-09-01 164945

@ifratric
Copy link
Collaborator

ifratric commented Sep 1, 2022

From the screenshot it looks like Accel.exe is in Accel directory. So it should be .. -- Accel\Accel.exe -m @@.

I also see you pointed input directory to Accel, but note that -in is meant for input fuzzing samples, not for directory containing the target.

@bheem1007
Copy link
Author

so what should I mention after -in sir

@ifratric
Copy link
Collaborator

ifratric commented Sep 1, 2022

A directory containing input samples. Some valid files of the type Accel.exe processes. (I have no idea what it actually does).

@bheem1007
Copy link
Author

This is the command I used,
C:\Users\admin\Desktop\Jackalope\build\Release>fuzzer.exe -in Accel -out out4 -t 1000 -delivery shmem -instrument_module Accel.exe -target_module Accel.exe -target_method fuzz -nargs 1 -cgc.dll -tiny-AES128-C.dll -add_all_inputs -iterations 10000 -persist -loop -cmp_coverage -- Accel\Accel.exe -m @@

this is the result am getting while using it ,please help me to get the fuzzing output sir.
Screenshot 2022-09-01 172241

@bheem1007
Copy link
Author

can you say, Is my fuzzing command is correct ? where am mistaking?

@ifratric
Copy link
Collaborator

ifratric commented Sep 1, 2022

For the command to work like this, the target needs to implement the fuzz() method. If the target isn't a fuzzing harness you yourself wrote, It's not going to work. I also expect that your target doesn't understand -m argument, since this is my fuzzing harness specific. Unfortunately I can't help you to build a fuzzing setup for a specific target. But good starting points are to understand how your target works and what Jackalope does and which options do what (you can experiment with the provided test.exe sample). You might want to first experiment without persistent mode (without -target_module and -target_method flags) until you get a setup that works.

@bheem1007
Copy link
Author

sir fuzzing is running but errors are not identifying ..
Screenshot (38)

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