May 11, 2014 02:54 AM
(This post was last modified: May 11, 2014 03:07 AM by FormerlyS.)
Hello HF, today I'll be showing you a tutorial to spoof an email address and send mail from it, trough the terminal.
Let's Start!
First off, we need to have a valid SMTP server to connect to.
An SMTP server is basically a post office that handles the mail received and sent, and the addresses they're coming from.
You can look up the SMTP server of your ISP on Google, or find one of a website.
Important is that the SMTP server should have no authentication, or that you're already authenticated, like with your own ISP's SMTP server.
Step 1
Here's how to find the SMTP server of a website.
Type this in terminal:
You should get something like this:
Take the last one without alt: aspmx.l.google.com, and write it down.
Type ctrl+c to escape from the nslookup
Step 2
Now the mailing can begin.
The 25 is the usual port for SMTP servers.
If you can't connect to it, repeat step 1 until you find a valid SMTP server.
You should get a response like:
Say hello to the SMTP server (you really have to do this, with 1 l though), followed by your name or some random name, this will not be the name of the sender.
It should respond with:
Now define the sender:
Respond should be:
Then define the recipient (who you want to send the mail to):
Respond should be:
Step 3
After that, we can begin writing our mail.
Type:
The first 3 lines are the headers, you have to fill in the sender at from: and the recipient at To:
The subject is of course the subject.
Note: the receiver won't see the headers, (they're called headers), but you have to write them
Then type a double return and write your message, you can use returns too.
Then, to send your message, type a dot on a single line.
The CMD prompt should respond with:
And your mail is sent! Congratulations!
![[Image: 5ahuE4D.png]](https://i.imgur.com/5ahuE4D.png)
Now, to quit, simply press ctrl+c or type quit.
I hope you enjoyed my tutorial, if you have any questions, feel free to ask them 🤝
Troubleshooting:
If your mail is denied, try choosing another server
Let's Start!
First off, we need to have a valid SMTP server to connect to.
An SMTP server is basically a post office that handles the mail received and sent, and the addresses they're coming from.
You can look up the SMTP server of your ISP on Google, or find one of a website.
Important is that the SMTP server should have no authentication, or that you're already authenticated, like with your own ISP's SMTP server.
Step 1
Here's how to find the SMTP server of a website.
Type this in terminal:
Code
nslookupCode
set type=mxCode
(url of your website, something like) www.google.comYou should get something like this:
Code
Non-authoritative answer:
google.com mail exchanger = 40 alt3.aspmx.l.google.com.
google.com mail exchanger = 50 alt4.aspmx.l.google.com.
google.com mail exchanger = 30 alt2.aspmx.l.google.com.
google.com mail exchanger = 20 alt1.aspmx.l.google.com.
google.com mail exchanger = 10 aspmx.l.google.com.Type ctrl+c to escape from the nslookup
Step 2
Now the mailing can begin.
Code
telnet aspmx.l.google.com 25If you can't connect to it, repeat step 1 until you find a valid SMTP server.
You should get a response like:
Code
220 CPSMTPM-CMT104.kpnxchange.com kpnxchange.com Sun, 11 May 2014 11:41:52 +0200Code
helo TR2000Code
250 CPSMTPM-CMT104.kpnxchange.com Hello [xx.xx.xxx.xxx]Code
mail from: [email protected]Code
250 2.1.0 [email protected] OKThen define the recipient (who you want to send the mail to):
Code
rcpt to: [email protected]Respond should be:
Code
250 2.1.5 [email protected]Step 3
After that, we can begin writing our mail.
Type:
Code
data
Subject: (your subject here)
From: Microsoft Support <[email protected]>
To: [email protected]
[Your message here]
.The subject is of course the subject.
Note: the receiver won't see the headers, (they're called headers), but you have to write them
Then type a double return and write your message, you can use returns too.
Then, to send your message, type a dot on a single line.
The CMD prompt should respond with:
Code
250 2.6.0 <[email protected]> Queued mail for delivery![[Image: 5ahuE4D.png]](https://i.imgur.com/5ahuE4D.png)
Now, to quit, simply press ctrl+c or type quit.
I hope you enjoyed my tutorial, if you have any questions, feel free to ask them 🤝
Troubleshooting:
If your mail is denied, try choosing another server


