Remote Exploitation
◾
165
FTP
FTP stands
for File Transfer Protocol; it runs on port 21. FTP is commonly used for uploading/
downloading files from a server. FTP, in my opinion, is the weakest link in a network because it’s
unencrypted, meaning that anybody on a local network can use a network sniffer to capture all the
communication. The following image shows the Wireshark capture when I was trying to log in to
an FTP server. The username was set to “username” and the password to “password”, as you can
clearly see, the username and the password are unencrypted and sent in plain text.
Also, there are some FTP servers that allow anonymous log-ins and are often not updated/
patched, making it easier for an attacker to compromise them.
SMTP
SMTP stands for Simple Mail Transfer Protocol. It runs on port 25. It
is used in most of the mail-
ing servers nowadays. As a penetration tester, we will encounter SMTP a lot as it’s always exposed
on the Internet and would mostly contain sensitive information.
HTTP
You open up your browser, type
a URL into the address bar, and connect to the website. The pro-
tocol you are using to do this is HTTP. It runs upon port 80. It’s a fundamental of the web. The
chapter “Web Hacking” (Chapter 12) would focus entirely on the various methods that we can use
to compromise the applications running on layer 7.
Dostları ilə paylaş: