are learning objectives are to understand what SMTP is used for and to demonstrate how to enumerate SMTP.
So smtp stands for simple mail transfer protocol and as you can probably guess, this is all about email, sending email, receiving email. Um it's on port 25
and you might see this in the news about keeping port 25 blocked or not allowing port 25 to be an open relay, which means that anyone, if you're running an SMTP server, that is an open relay means anyone can use your mail server to send email from your mail server. So a lot of spammers will use this service
And that's why a lot of people get nervous about SMTP and leaving Port 25
So for enumeration we can use End map it. As you can see here, we're using script. SMTP with the asterix and we can see here on the Medicis pliable box, it runs a few different scripts. SMtP commands, SMtP and new users, which it didn't find anybody using that. I'll show you the next slide how you can do that.
It also around the SMtP open relay script and we can see that it doesn't appear to be an open relay as well as running a vulnerability scan for a Cbe from 2010.
So this isn't installed by Cali by default anymore, but SMTP user in oum
I use the verify command and I use this UNIX users list. Now,
this is to say it found a bunch of different users. These aren't people that are exactly going to be receiving email, but you can see all the services that are on this box. You can see my sequel, you can see ssh, you can see FTP can see double data. So probably a web server.
So you can it's not only enumerating the users but also the services on this medicine portable box.
So you've got mail if you remember that, that means you're old like me.
But here's an example of the syntax that you can use to um to send a mail message, uh and you'll see when it's received. Um It's in the var mail and user, you can cat that
as you can see here the root user.
And here is that my email?
I'm going to show you how to exploit this.
All right. So you're not gonna get a shell with SMTP is it's not per se, like NFS or SMB that we saw before,
But I want to show you something interesting. So we ran and map against Port 25. This takes a while. So they want to do it um and make you wait,
but you can see here, it doesn't know the service who ran the SV with the SV flag, it doesn't know what the service is. So
let's split this vertically and let's run End Cat. And you can run End Cat as a SMTP client.
You can see here. It's old school in my home network Fios.
But let's just do help.
So, we see with help, it says 32 bit Windows email server from NJ Star software, which is interesting. Right? It tells us what she commands we can use This is a very verbose output from help.
So, we have some good information from our enumeration here.
So, I'm gonna clear this on this side.
And let's go to medicine right now. I don't like using medicine plate all the time because, you know, SCP we can only use it once. Right? We have to use it sparingly.
But I want to show you there's a search feature in Medicine Boy Soul Search for NJ Star.
And we can see here that there is an exploit module for this service. So you use zero.
Show I always like to do show options.
It looks like we just need to set our our host, which is 1921681178.
So I'm gonna set our hosts
So we should see sure enough, it's vulnerable. And we now have a interpreter session on this box
to our friend old school.
So that's not to say you're gonna get a shell every time or be able to exploit the service every time. But I did want to show you that. And map doesn't always give you this version of the service. Sometimes this manual enumeration can give us a whole lot of good information and from that
So in summary, hopefully, now you understand what SMTP is used for and you can demonstrate how to enumerate SMTPP