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

AtomBombingShellcode fails on LoadLibraryA("kernel32.dll") #11

Open
benoitsevens opened this issue Oct 17, 2018 · 0 comments
Open

AtomBombingShellcode fails on LoadLibraryA("kernel32.dll") #11

benoitsevens opened this issue Oct 17, 2018 · 0 comments

Comments

@benoitsevens
Copy link

benoitsevens commented Oct 17, 2018

Hi,

I tried the PoC after understanding how the atom bombing technique works.

However, I ran into a problem when testing the technique. The injection itself works flawlessly. The problem lies in the shell code itself.

The first LoadLibraryA, which tries to load "kernel32.dll", fails (returns 0). When I do a GetLastError, it returns 0x57 = INVALID_PARAMETER. I checked that LoadLibrary is effectively called with the right parameter (cfr. screenshot, taken just before the call to LoadLibraryA).

I think this problem has nothing to do with the injection technique itself. But it puzzles me why this shellcode won't work.

Environment:

  • Windows 10 build 17134
  • I have tried injecting in 2 different processes (bochs.exe and exeinfope.exe). Both gave same result.

screenshot 2018-10-17 at 13 04 26

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

1 participant