mirror of
https://github.com/DepthFirstDisclosures/Nginx-Rift.git
synced 2026-05-16 11:07:44 +00:00
init
This commit is contained in:
commit
90f4b4a302
8 changed files with 393 additions and 0 deletions
19
setup.sh
Executable file
19
setup.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "Building Docker image (compiles nginx from source)..."
|
||||
docker compose build
|
||||
|
||||
echo ""
|
||||
echo "Done. To run:"
|
||||
echo ""
|
||||
echo " # Terminal 1 (server) — nginx runs with ASLR disabled (setarch -R):"
|
||||
echo " docker compose up"
|
||||
echo ""
|
||||
echo " # Terminal 2 (attacker):"
|
||||
echo " python3 poc.py --cmd 'touch /tmp/pwned'"
|
||||
echo ""
|
||||
echo " # Verify RCE:"
|
||||
echo " docker compose exec nginx ls -la /tmp/pwned"
|
||||
echo " docker compose exec nginx cat /tmp/pwned"
|
||||
Loading…
Add table
Add a link
Reference in a new issue