1
0

Add the ssrf module

This commit is contained in:
2026-08-29 09:31:09 +05:30
parent 0fceb2cd4e
commit 4e37a54e92
28 changed files with 1391 additions and 0 deletions

14
ssrf/scripts/stop.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Stop any running instance.
#
# Match a real JVM whose command line contains this application's main class, and exclude this
# shell and its parent explicitly. A bare grep for the class name is not enough: when the
# calling shell's own command line contains the class name - which it does whenever you paste a
# here-doc - the grep matches the shell and kills it.
set -eu
self=$$; parent=${PPID:-0}
for pid in $(ps -eo pid,ppid,comm,args | awk -v s="$self" -v p="$parent" \
'$1 != s && $1 != p && $3 ~ /^java/ && $0 ~ /com\.ankurm\.ssrf\.SsrfDemoApplication/ {print $1}'); do
kill -9 "$pid" 2>/dev/null || true
done
sleep 1