Skip to main content

Enumeration

Run Nmap Scan

View Website

Untitled

Directory Bruteforcing (Run Gobuster)

Enumerating FTP

Logging into FTP

When logging in, “anonymous” username is used to get into the ftp

Downloading the File

Downloading a file using an anonymous user account is possible

Uploading a File

Uploading a file using an anonymous user account is possible. We can exploit this system by uploading the reverse shell through ftp and then execute the file by clicking the link.

Exploitation

Exploiting ASPX Reverse Shell to the FTP Server (Failed)

Generating ASPX Reverse Shell

Uploading a ASPX Reverse Shell

Listen to Reverse Shell and Exploit (Failed)

For some reason, the when I try to execute the file by clicking the link http://10.129.86.39/rev_shell.aspx, the reverse shell gains the connection, but loses the connection within a second.

Uploading a Webshell

Copy the webshell to home directory

In order to upload the file cmd.aspx to ftp, we need to copy the file to our home directory

Upload the webshell through ftp

Untitled

Uploading and Executing a Reverse Shell

Generate a reverse shell

Create a temp folder

Untitled
We are creating a temp folder as there is no writable directory. We need to download a file here.

Download the Reverse Shell

Untitled

Listen to Reverse Shell and Exploit

Untitled

Privilege Escalation

Using Kernel Exploit

Getting Systeminfo and Saving the file as systeminfo.txt

Install and execute wes-ng

Search for Privilege Escalation Kernel Exploit

Download the Exploit (MS11-046)

Microsoft Windows (x86) - ‘afd.sys’ Local Privilege Escalation (MS11-046)

Compile the Exploit

Exploit