Exploit database

GH-0a02ee6cf9b3f34cea328eaea2077cc4

guaidao2/php2shell-exploit-labstyle

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

412 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4
guaidao2/php2shell-exploit-labstyleRevision aa53ca5f262d

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

tools/scanmem.php

Suggested starting filePHP · 1,150 bytes
#!/usr/bin/env php
<?php
// scanmem.php — search every rw region of one or more processes for a byte string.
// usage: php -d memory_limit=1024M scanmem.php "<pid1,pid2,...>" "<needle>"
// prints absolute addresses, then "total=N"
[$_, $pids, $needle] = $argv;
$hits = [];
foreach (explode(",", $pids) as $pid) {
    $pid = trim($pid);
    if ($pid === "" || !is_readable("/proc/$pid/maps")) continue;
    foreach (file("/proc/$pid/maps") as $line) {
        if (!preg_match('/^([0-9a-f]+)-([0-9a-f]+) (rw-p|r--p)/', $line, $m)) continue;
        $s = hexdec($m[1]); $e = hexdec($m[2]); $len = $e - $s;
        if ($len < 65536 || $len > 64 * 1024 * 1024) continue;
        $f = @fopen("/proc/$pid/mem", "rb");
        if (!$f) continue;
        if (fseek($f, $s) !== 0) { fclose($f); continue; }
        $buf = @fread($f, $len);
        fclose($f);
        if ($buf === false || $buf === "") continue;
        $off = 0;
        while (($p = strpos($buf, $needle, $off)) !== false) {
            printf("0x%x pid=%s\n", $s + $p, $pid);
            $hits[] = $s + $p;
            $off = $p + 1;
        }
    }
}
printf("total=%d\n", count($hits));