Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Please help me to write some smoll shellcode =)

I comprehend Zen in the question of writing shellcoding and faced with the problem:
There is a vulnerable application with the usual BoF, but the place for shellcode in it is very limited - only 140 bytes.
I would like to cram a working runpe method there (running an application from memory)

Obviously, it will not fit in its pure form, egghunt is not an option (data> 140 bytes irretrievably go and you can’t do a jump on it)

I decided to do this: the second stage is in the file, using createfile + mapview, etc. stage mapping to memory and jmp is done there

The size of the file name is 10 bytes (i.e. there are only 130 bytes of space left). Functions and functions are dynamically searched through peb.

Question: Is it possible to fit in this size? (I ask the question because I am  a newbie at shellcoding, and my own went for 200 bytes)
I would be very grateful for living examples, perhaps variants of very compressed search or hashing algorithms (function search or hash)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by NightmareJan 9, 2024 08:36 AM 4 217 Jan 9, 2024 08:36 AM
Last Post: Nightmare
by LuunaApr 23, 2022 10:09 AM 0 141 Apr 23, 2022 10:09 AM
Last Post: Luuna
[Perl] by Lycosidae024Nov 30, 2018 11:00 AM 6 1,482 Nov 30, 2018 11:00 AM
Last Post: Lycosidae024