Network Services

DNS

ftp
mail owa proxy router

___

DNS lookup each hostname in the list:
```bash
kali@kali:~$ for ip in $(cat list.txt); do host $ip.megacorpone.com; done
www.megacorpone.com has address 149.56.244.87  
Host ftp.megacorpone.com not found: 3(NXDOMAIN)  
mail.megacorpone.com has address 51.222.169.212
Host owa.megacorpone.com not found: 3(NXDOMAIN)
Host proxy.megacorpone.com not found: 3(NXDOMAIN)
router.megacorpone.com has address 51.222.169.214

More comprehensive wordlists are available in the seclists directory.

FTP

LDAP

MSSQL

MySQL

RPC

SMB

SMTP

550 5.1.1 <idontexist>: Recipient address rejected: User unknown in local recipient table

___
A Python script which opens a TCP socket, connects to the SMTP server, and issues a VRFY command for a given username.
>[!code]- smtp.py
>```python
>#!/usr/bin/python
>
>import socket import sys
>
>if len(sys.argv) != 3:  
>print("Usage: vrfy.py \<username> <target_ip>") sys.exit(0)
>
># Create a Socket  
>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>
># Connect to the Server  
>ip = sys.argv[2]  
>connect = s.connect((ip,25))
>
># Receive the banner banner = s.recv(1024)
>
>print(banner)
>
># VRFY a user  
>user = (sys.argv[1]).encode() s.send(b'VRFY ' + user + b'\r\n') result = s.recv(1024)
>
>print(result)
>
># Close the socket s.close()
>```

We can run the script by providing the username to be test as the first argument and the target IP as the second argument:
```bash
kali@kali:~/Desktop$ python3 smtp.py root 192.168.50.8

SNMP

HTTP