-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathportenum.html
62 lines (59 loc) · 4.88 KB
/
portenum.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>Port Enumeration - How to</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
</head>
<body>
<h1><span style="background-color: rgb(97, 189, 109); color: rgb(0, 0, 0);">Port Emuneration</span><span style="background-color: rgb(97, 189, 109); color: rgb(255, 255, 255);">_____________________________________</span></h1>
<p>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</p>
<p><strong><span style="font-size: 20px;"><span style="color: rgb(235, 107, 86);">Note:</span> Always NMAP to confirm - as some services may show under non-standard port numbers</span></strong></p>
<p><strong><span style="font-size: 24px;"><u><span style="color: rgb(0, 0, 0); background-color: rgb(44, 130, 201);">Port 21 - FTP</span></u><span style="color: rgb(0, 0, 0); background-color: rgb(44, 130, 201);">_________________________________________________________</span></span></strong></p>
<ul style="list-style-type: square;">
<li><span style="color: rgb(184, 49, 47); font-size: 24px;"><strong>Anonymous login allowed ?</strong></span></li>
<li><span style="color: rgb(0, 0, 0); font-size: 24px;">Login with username: anonymous password: leave blank</span></li>
<li><span style="color: rgb(65, 168, 95); font-size: 24px;"><strong>Do you have a username ?</strong></span></li>
<li><span style="font-size: 24px;">Brute force using Hydra</span></li>
</ul>
<p><br></p>
<p><span style="font-size: 24px;"><u><strong><span style="color: rgb(0, 0, 0); background-color: rgb(251, 160, 38);">Port 22 - SSH</span></strong></u><strong><span style="color: rgb(0, 0, 0); background-color: rgb(251, 160, 38);">___________________________________________________________</span></strong></span></p>
<ul>
<li><span style="color: rgb(85, 57, 130); font-size: 24px;"><strong>Do you have a username ?</strong></span></li>
<li><span style="font-size: 24px;">Brute force using Hydra</span></li>
</ul>
<p><br></p>
<p><span style="font-size: 24px;"><strong><u><span style="color: rgb(0, 0, 0); background-color: rgb(184, 49, 47);">Ports 80,8080,8000 - HTTP (web server)</span></u><span style="color: rgb(0, 0, 0); background-color: rgb(184, 49, 47);">_____________________________________</span></strong></span></p>
<ul style="list-style-type: disc;">
<li><span style="font-size: 24px;">Open browser and visit the site</span></li>
<li><span style="font-size: 24px;">Look at page source</span></li>
<li><span style="font-size: 24px;">Visit robots.txt</span></li>
<li><span style="font-size: 24px;">Run directory search to discover hidden directories</span></li>
</ul>
<p><br></p>
<p><span style="font-size: 24px;"><strong><u><span style="color: rgb(0, 0, 0); background-color: rgb(250, 197, 28);">Ports 135-139,445 - SMB</span></u><span style="color: rgb(0, 0, 0); background-color: rgb(250, 197, 28);">__________________________________________________</span></strong></span></p>
<ul>
<li><span style="font-size: 24px;">Use Enum4Linux to retreive information on SMB shares</span></li>
<li><span style="font-size: 24px;">Use SmbClient to connect to the shares</span></li>
</ul>
<p><span style="font-size: 24px;">How to connect to smb share:</span></p>
<ul>
<li><span style="font-size: 24px;">smbclient -U <name> //<ip> / <sharename></span></li>
</ul>
<p><br></p>
<p><span style="font-size: 24px;"><strong><u><span style="color: rgb(0, 0, 0); background-color: rgb(163, 143, 132);">Port 111, 2049 - Mount / NFS</span></u><span style="color: rgb(0, 0, 0); background-color: rgb(163, 143, 132);">______________________________________________</span></strong></span></p>
<ul>
<li><span style="font-size: 24px;"><strong><span style="color: rgb(250, 197, 28);">1.</span></strong> showmount -e <ip> (shows which IPs can connect to it)</span></li>
<li><span style="font-size: 24px;"><strong><span style="color: rgb(41, 105, 176);">2.</span></strong> mount -t nfs <ip>:<location> /mnt/<your folder in mnt> </span></li>
<li><span style="font-size: 24px;">Key: (-t = type, <location> = remote location, 2nd location is local location)</span></li>
<li><span style="font-size: 24px;"><span style="color: rgb(0, 168, 133);"><strong>3.</strong></span> type in cd /mnt/<your folder name in mnt> </span></li>
<li><span style="font-size: 24px;"><strong><span style="color: rgb(147, 101, 184);">4.</span></strong> type ls -la (and view the mounted drive)</span></li>
</ul>
<p><span style="font-size: 24px;"><br></span></p>
<p><br></p>
</body>
</html>