boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources
boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources

02. Port Scanning and Enumeration: Linux

Nmap Scan

nmap -sC -sV 10.3.19.173
```text
root@attackdefense:~# nmap -sC -sV 10.3.19.173
Starting Nmap 7.92 ( https://nmap.org ) at 2023-09-11 01:45 IST
Nmap scan report for demo.ine.local (10.3.19.173)
Host is up (0.0036s latency).
Not shown: 982 closed tcp ports (reset)
PORT     STATE SERVICE     VERSION
21/tcp   open  ftp         vsftpd 2.3.4
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
|_Can't get directory listing: PASV IP 172.17.0.2 is not the same as 10.3.19.173
| ftp-syst: 
|   STAT: 
| FTP server status:
|      Connected to 10.10.9.3
|      Logged in as ftp
|      TYPE: ASCII
|      No session bandwidth limit
|      Session timeout in seconds is 300
|      Control connection is plain text
|      Data connections will be plain text
|      vsFTPd 2.3.4 - secure, fast, stable
|_End of status
22/tcp   open  ssh         OpenSSH 8.2p1 Ubuntu 4ubuntu0.2 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey: 
|   3072 0f:89:74:67:77:55:bb:46:4a:09:f8:1d:55:96:52:20 (RSA)
|   256 88:09:95:16:3c:ac:aa:49:b5:30:44:19:dc:97:7e:eb (ECDSA)
|_  256 8f:c7:18:cd:a2:8a:56:a2:7d:71:ac:b6:27:d1:36:4a (ED25519)
23/tcp   open  telnet      Linux telnetd
25/tcp   open  smtp        Postfix smtpd
|_ssl-date: 2023-09-10T20:17:41+00:00; 0s from scanner time.
| ssl-cert: Subject: commonName=ubuntu804-base.localdomain/organizationName=OCOSA/stateOrProvinceName=There is no such thing outside US/countryName=XX
| Not valid before: 2010-03-17T14:07:45
|_Not valid after:  2010-04-16T14:07:45
|_smtp-commands: metasploitable.localdomain, PIPELINING, SIZE 10240000, VRFY, ETRN, STARTTLS, ENHANCEDSTATUSCODES, 8BITMIME, DSN
| sslv2: 
|   SSLv2 supported
|   ciphers: 
|     SSL2_RC4_128_EXPORT40_WITH_MD5
|     SSL2_DES_64_CBC_WITH_MD5
|     SSL2_DES_192_EDE3_CBC_WITH_MD5
|     SSL2_RC2_128_CBC_WITH_MD5
|     SSL2_RC2_128_CBC_EXPORT40_WITH_MD5
|_    SSL2_RC4_128_WITH_MD5
80/tcp   open  http        Apache httpd 2.2.8 ((Ubuntu) DAV/2)
|_http-title: Metasploitable2 - Linux
|_http-server-header: Apache/2.2.8 (Ubuntu) DAV/2
111/tcp  open  rpcbind     2 (RPC #100000)
| rpcinfo: 
|   program version    port/proto  service
|   100000  2            111/tcp   rpcbind
|   100003  2,3,4       2049/tcp   nfs
|   100003  2,3,4       2049/udp   nfs
|   100005  1,2,3      50419/tcp   mountd
|   100005  1,2,3      58275/udp   mountd
|   100021  1,3,4      33414/tcp   nlockmgr
|   100021  1,3,4      58022/udp   nlockmgr
|   100024  1          42939/tcp   status
|_  100024  1          49024/udp   status
139/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP)
445/tcp  open  netbios-ssn Samba smbd 3.0.20-Debian (workgroup: WORKGROUP)
512/tcp  open  exec?
513/tcp  open  login?
514/tcp  open  tcpwrapped
1099/tcp open  java-rmi    GNU Classpath grmiregistry
1524/tcp open  ingreslock?
| fingerprint-strings: 
|   DNSStatusRequestTCP: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     [2Jroot@d1d6a9361621:/#
|   DNSVersionBindReqTCP: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     version
|     bind
|   GenericLines: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/#
|   GetRequest: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# GET / HTTP/1.0
|   HTTPOptions: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# OPTIONS / HTTP/1.0
|     bash: OPTIONS: command not found
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/#
|   Help: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# HELP
|     bash: HELP: command not found
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/#
|   NULL: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/#
|   RPCCheck: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     (root 
|     [1@|
|   RTSPRequest: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# OPTIONS / RTSP/1.0
|     bash: OPTIONS: command not found
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/#
|   SSLSessionReq: 
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# ^CS
|     [1@O
|     [1@?
|     [1@G
|     [1@,
|     O?G,^CS
|     [1@{
|     [12P(arg: 1) {
|     [12@root@d1d6a9361621:/# {O?G,^CS
|     [7P(i-search)`': {O?G,^CSw=n(
|     [8@root@d1d6a9361621:/# {O?G,^CSw=^@(
|     bash: {O?G,
|     Sw=: command not found
|     ]0;@d1d6a9361621: /
|     root@d1d6a9361621:/# f
|     edcba`
|     (reverse-i-search)`': 
|_    [1Proot@d1d6a9361621:/#
3306/tcp open  mysql       MySQL 5.0.51a-3ubuntu5
| mysql-info: 
|   Protocol: 10
|   Version: 5.0.51a-3ubuntu5
|   Thread ID: 9
|   Capabilities flags: 43564
|   Some Capabilities: Speaks41ProtocolNew, SupportsCompression, SwitchToSSLAfterHandshake, ConnectWithDatabase, SupportsTransactions, Support41Auth, LongColumnFlag
|   Status: Autocommit
|_  Salt: cFr/0B:<\=[3*x@uNe2f
5432/tcp open  postgresql  PostgreSQL DB 8.3.0 - 8.3.7
|_ssl-date: 2023-09-10T20:17:40+00:00; 0s from scanner time.
| ssl-cert: Subject: commonName=ubuntu804-base.localdomain/organizationName=OCOSA/stateOrProvinceName=There is no such thing outside US/countryName=XX
| Not valid before: 2010-03-17T14:07:45
|_Not valid after:  2010-04-16T14:07:45
6667/tcp open  irc         UnrealIRCd
| irc-info: 
|   users: 1
|   servers: 1
|   lusers: 1
|   lservers: 0
|   server: irc.Metasploitable.LAN
|   version: Unreal3.2.8.1. irc.Metasploitable.LAN 
|   uptime: 0 days, 0:19:52
|   source ident: nmap
|   source host: Test-2C6CE547.us-west-1.compute.internal
|_  error: Closing Link: bmylreukb[ip-10-10-9-3.us-west-1.compute.internal] (Quit: bmylreukb)
8009/tcp open  ajp13       Apache Jserv (Protocol v1.3)
|_ajp-methods: Failed to get a valid response for the OPTION request
8180/tcp open  http        Apache Tomcat/Coyote JSP engine 1.1
|_http-server-header: Apache-Coyote/1.1
|_http-favicon: Apache Tomcat
|_http-title: Apache Tomcat/5.5
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
SF-Port1524-TCP:V=7.92%I=7%D=9/11%Time=64FE23CC%P=x86_64-pc-linux-gnu%r(NU
SF:LL,2A,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20")%r(Gene
SF:ricLines,D6,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20\n\
SF:x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20\n\x1b\]0;@d1d6a9
SF:361621:\x20/\x07root@d1d6a9361621:/#\x20\n\x1b\]0;@d1d6a9361621:\x20/\x
SF:07root@d1d6a9361621:/#\x20\n\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a93
SF:61621:/#\x20")%r(GetRequest,39,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d
SF:6a9361621:/#\x20GET\x20/\x20HTTP/1\.0\n")%r(HTTPOptions,109,"\x1b\]0;@d
SF:1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20OPTIONS\x20/\x20HTTP/1\.0\
SF:nbash:\x20OPTIONS:\x20command\x20not\x20found\n\x1b\]0;@d1d6a9361621:\x
SF:20/\x07root@d1d6a9361621:/#\x20\n\x1b\]0;@d1d6a9361621:\x20/\x07root@d1
SF:d6a9361621:/#\x20\n\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\
SF:x20\n\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20")%r(RTSPRe
SF:quest,109,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20OPTIO
SF:NS\x20/\x20RTSP/1\.0\nbash:\x20OPTIONS:\x20command\x20not\x20found\n\x1
SF:b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20\n\x1b\]0;@d1d6a936
SF:1621:\x20/\x07root@d1d6a9361621:/#\x20\n\x1b\]0;@d1d6a9361621:\x20/\x07
SF:root@d1d6a9361621:/#\x20\n\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361
SF:621:/#\x20")%r(RPCCheck,3F,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a93
SF:61621:/#\x20\x07\(root\x20\x07\x08\x08\x08\x08\x08\x08\x07\x07\x1b\[1@\
SF:|")%r(DNSVersionBindReqTCP,3B,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6
SF:a9361621:/#\x20\x07\x07\x07version\x07bind\x07\x07")%r(DNSStatusRequest
SF:TCP,47,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20\x1b\[H\
SF:x1b\[2Jroot@d1d6a9361621:/#\x20\x07")%r(Help,A2,"\x1b\]0;@d1d6a9361621:
SF:\x20/\x07root@d1d6a9361621:/#\x20HELP\nbash:\x20HELP:\x20command\x20not
SF:\x20found\n\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20\n\x1
SF:b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20")%r(SSLSessionReq,
SF:193,"\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d6a9361621:/#\x20\^CS\x08\x0
SF:8\x08\x1b\[1@O\x07\x1b\[1@\?\x1b\[1@G\x07\x07\x07\x1b\[1@,\x08\x08\x08\
SF:x08:\x1b\[K\xea\xb2`~\xf3\x08\x08\x08\x08\x08\x08O\?G,\^CS\x07\x08\x08\
SF:x08\x08\x08\x08\x08\x07\x07\x1b\[1@{\r\x1b\[12P\(arg:\x201\)\x20{\x08\x
SF:08\x08\x089\)\x20{\r\x1b\[12@root@d1d6a9361621:/#\x20{O\?G,\^CS\x07\x07
SF:w\x07\x07=\x07\x07\x07n\(\r\x1b\[7P\(i-search\)`':\x20{O\?G,\^CSw=n\(\r
SF:\x1b\[8@root@d1d6a9361621:/#\x20{O\?G,\^CSw=\^@\(\nbash:\x20{O\?G,\x03S
SF:w=:\x20command\x20not\x20found\n\x1b\]0;@d1d6a9361621:\x20/\x07root@d1d
SF:6a9361621:/#\x20f\x07edcba`\x08\x08\x08\x08\x08\x08\x08\x1b\[K\r\(rever
SF:se-i-search\)`':\x20\r\x1b\[1Proot@d1d6a9361621:/#\x20\x07\x07\x07\x07\
SF:x07");
Service Info: Hosts:  metasploitable.localdomain, irc.Metasploitable.LAN; OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel

Host script results:
|_clock-skew: mean: 1h00m00s, deviation: 2h00m00s, median: 0s
| smb-os-discovery: 
|   OS: Unix (Samba 3.0.20-Debian)
|   Computer name: d1d6a9361621
|   NetBIOS computer name: 
|   Domain name: 
|   FQDN: d1d6a9361621
|_  System time: 2023-09-10T16:17:34-04:00
|_smb2-time: Protocol negotiation failed (SMB2)
| smb-security-mode: 
|   account_used: <blank>
|   authentication_level: user
|   challenge_response: supported
|_  message_signing: disabled (dangerous, but default)
```