This post explains three very basic things you should know about hacking. Those are Telnet, FTP, and SMB.
Telnet is a client-server protocol used to test connectivity between machines and issue commands. This is very easy way to gain access to a remote computer. This is almost never installed on production machines anymore
FTP (File Transfer Protocol) and SMB (Server Message Block) are tools used to store and access files. If these are installed, you can use commands associated with each tool to view files on the remote computer. Sometimes, these contain valuable information that you can use to elevate access.
Telnet
$ telnet <IP> <PORT>
That's all there is to it :)
FTP
$ ftp <IP> <PORT>
- port is usually 21
- Check if ftp supports anonymous login (username: anonymous, no password)
-use ls to list files, "get" to copy files to your local machine
If you get the message:
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
try passive mode i..e. type "passive ls"
Passive FTP is an FTP mode that can be requested by a client to alleviate the issues caused by client-side firewalls. Both the server and the client must support passive FTP for this process to work. When passive FTP is used, the client will initiate the connection to the server
SMB
SMB (Server Message Block) runs on port 445.
$ smbmap -H 10.129.1.12 -u test -p test
Comments
Post a Comment