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

raw payload doesnt work? #32

Open
2 tasks done
dobin opened this issue Mar 15, 2024 · 4 comments
Open
2 tasks done

raw payload doesnt work? #32

dobin opened this issue Mar 15, 2024 · 4 comments

Comments

@dobin
Copy link

dobin commented Mar 15, 2024

  • This issue is not about OPSEC or bypassing defensive products
  • I have followed the steps in the Troubleshooting section

OS and version: Ubuntu 23, Win10
Python version: 3.11.4
Nim version: 2.0.2
Using Docker: No


Issue Description

After "NimPlant.py compile all", the exe works, but the .bin doesnt. Tried using shellcode runner https://github.com/hasherezade/pe_to_shellcode/tree/master/runshc compiled as 64bit, and a private one using fibers.


Screenshots

Start shellcode, then exe:
image

Result: Only exe gets a connection
image

Debugger doesnt show the actual line:
image

@chvancooten
Copy link
Owner

Hi @dobin, thank you for your report!

Unfortunately, I'm not able to reproduce this issue. On KUbuntu 23.10 (which should not be much different from Ubuntu) with Python 3.11.6 and Nim 2.0.2, I am able to compile the payload without issue:

image

Subsequently, all of the payloads seem to work:

image

For testing, I used Nimplant's shinject command to inject into Explorer, as follows:

shinject 1337 "C:\path\to\NimPlant.bin"

Could you try executing with the shinject command to see if that works? If not, please try to provide as much information as you can to reproduce the issue. Thanks!

@dobin
Copy link
Author

dobin commented Mar 15, 2024

Starting the exe, and then issuing the following command to inject into a notepad.exe:
image

Results in no more beacons:
image

When executing the command, a new notepad editor appeared. It seems the original one (pid 6636) crashed, and a new one was started? (pid 13236). Reproducible.

Trying to load it with my experimental loader: no connection
image

Re-compiled it with "nim-debug": Same result
image

Windows version:
image

Nimplant Config: (probably because of this? as its the only "different" thing)
nimplantconfig.txt

@dobin
Copy link
Author

dobin commented Mar 15, 2024

[attachment removed by repository owner]
The debug nimplant.bin

I use 1.3:
image

@chvancooten
Copy link
Owner

chvancooten commented Mar 25, 2024

Hi @dobin, thanks for the additional debugging steps. I am still not able to reproduce this issue unfortunately. Your config looks alright for testing, so my best guess would be that it relates to the Windows version of the target. Although I did test 22H2 intensively prior, recent testing has been performed on later builds of Windows 11. Do you see any possibility of trying to reproduce your issue on different Windows builds? Potentially that could help us pinpoint where and why this crash is occurring.

chvancooten added a commit that referenced this issue Aug 3, 2024
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