Hack. Eat. Sleep. Repeat!!!
Rustscan’s output
❯ rustscan -a 192.168.170.11 -- -Pn -sC -sV
.----. .-. .-. .----..---. .----. .---. .--. .-. .-.
| {} }| { } |{ {__ {_ _}{ {__ / ___} / {} \ | `| |
| .-. \| {_} |.-._} } | | .-._} }\ }/ /\ \| |\ |
`-' `-'`-----'`----' `-' `----' `---' `-' `-'`-' `-'
The Modern Day Port Scanner.
________________________________________
: https://discord.gg/GFrQsGy :
: https://github.com/RustScan/RustScan :
--------------------------------------
Nmap? More like slowmap.🐢
[~] The config file is expected to be at "/home/sensei/.rustscan.toml"
[!] File limit is lower than default batch size. Consider upping with --ulimit. May cause harm to sensitive servers
[!] Your file limit is very small, which negatively impacts RustScan's speed. Use the Docker image, or up the Ulimit with '--ulimit 5000'.
Open 192.168.170.11:80
Open 192.168.170.11:139
Open 192.168.170.11:445
Open 192.168.170.11:3306
[~] Starting Script(s)
[>] Script to be run Some("nmap -vvv -p ")
Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times may be slower.
[~] Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-19 15:56 EDT
NSE: Loaded 156 scripts for scanning.
NSE: Script Pre-scanning.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 15:56
Completed NSE at 15:56, 0.00s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 15:56
Completed NSE at 15:56, 0.00s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 15:56
Completed NSE at 15:56, 0.00s elapsed
Initiating Parallel DNS resolution of 1 host. at 15:56
Completed Parallel DNS resolution of 1 host. at 15:56, 6.49s elapsed
DNS resolution of 1 IPs took 6.49s. Mode: Async [#: 1, OK: 0, NX: 1, DR: 0, SF: 0, TR: 2, CN: 0]
Initiating Connect Scan at 15:56
Scanning 192.168.170.11 [4 ports]
Discovered open port 80/tcp on 192.168.170.11
Discovered open port 445/tcp on 192.168.170.11
Discovered open port 3306/tcp on 192.168.170.11
Discovered open port 139/tcp on 192.168.170.11
Completed Connect Scan at 15:56, 0.18s elapsed (4 total ports)
Initiating Service scan at 15:56
Scanning 4 services on 192.168.170.11
Completed Service scan at 15:57, 11.56s elapsed (4 services on 1 host)
NSE: Script scanning 192.168.170.11.
NSE: Starting runlevel 1 (of 3) scan.
Initiating NSE at 15:57
Completed NSE at 15:57, 7.86s elapsed
NSE: Starting runlevel 2 (of 3) scan.
Initiating NSE at 15:57
Completed NSE at 15:57, 1.49s elapsed
NSE: Starting runlevel 3 (of 3) scan.
Initiating NSE at 15:57
Completed NSE at 15:57, 0.00s elapsed
Nmap scan report for 192.168.170.11
Host is up, received user-set (0.17s latency).
Scanned at 2024-09-19 15:56:56 EDT for 21s
PORT STATE SERVICE REASON VERSION
80/tcp open http syn-ack Apache httpd 2.4.38 ((Debian))
|_http-server-header: Apache/2.4.38 (Debian)
| http-methods:
|_ Supported Methods: GET POST OPTIONS HEAD
|_http-title: Site doesn't have a title (text/html).
139/tcp open netbios-ssn syn-ack Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
445/tcp open netbios-ssn syn-ack Samba smbd 4.9.5-Debian (workgroup: WORKGROUP)
3306/tcp open mysql syn-ack MySQL 5.5.5-10.3.15-MariaDB-1
| mysql-info:
| Protocol: 10
| Version: 5.5.5-10.3.15-MariaDB-1
| Thread ID: 17
| Capabilities flags: 63486
| Some Capabilities: Support41Auth, FoundRows, SupportsLoadDataLocal, Speaks41ProtocolNew, IgnoreSpaceBeforeParenthesis, SupportsCompression, SupportsTransactions, IgnoreSigpipes, LongColumnFlag, Speaks41ProtocolOld, InteractiveClient, ConnectWithDatabase, DontAllowDatabaseTableColumn, ODBCClient, SupportsMultipleResults, SupportsMultipleStatments, SupportsAuthPlugins
| Status: Autocommit
| Salt: ;[;TrbvJM#eTW8Rrj;&L
|_ Auth Plugin Name: mysql_native_password
Service Info: Host: DAWN
Host script results:
| smb-security-mode:
| account_used: guest
| authentication_level: user
| challenge_response: supported
|_ message_signing: disabled (dangerous, but default)
|_clock-skew: mean: 1h19m39s, deviation: 2h18m34s, median: -21s
| smb-os-discovery:
| OS: Windows 6.1 (Samba 4.9.5-Debian)
| Computer name: dawn
| NetBIOS computer name: DAWN\x00
| Domain name: dawn
| FQDN: dawn.dawn
|_ System time: 2024-09-19T15:56:48-04:00
| p2p-conficker:
| Checking for Conficker.C or higher...
| Check 1 (port 36516/tcp): CLEAN (Couldn't connect)
| Check 2 (port 61680/tcp): CLEAN (Couldn't connect)
| Check 3 (port 33559/udp): CLEAN (Timeout)
| Check 4 (port 7645/udp): CLEAN (Failed to receive data)
|_ 0/4 checks are positive: Host is CLEAN or ports are blocked
| smb2-security-mode:
| 3:1:1:
|_ Message signing enabled but not required
| smb2-time:
| date: 2024-09-19T19:56:49
|_ start_date: N/A
FFUF’s output
ITDEPT
with no password, I was able to upload a file.logs
directory, I discovered a management.log
file.management.log
file contains processes running on the server. I noticed a process that uses sh
to run a file web-control
in the
ITDEPT
shares.web-control
www-data
sudo -l
.sudo -u root /usr/bin/sudo bash -p
to spawn a root shell