Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUT] How to EASILY send e-Mail from ANY address through Terminal/CMD prompt [TUT]

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:
Code
nslookup
Code
set type=mx
Code
(url of your website, something like) www.google.com

You 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.
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.
Code
telnet aspmx.l.google.com 25
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:
Code
220 CPSMTPM-CMT104.kpnxchange.com kpnxchange.com Sun, 11 May 2014 11:41:52 +0200
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.
Code
helo TR2000
It should respond with:
Code
250 CPSMTPM-CMT104.kpnxchange.com Hello [xx.xx.xxx.xxx]
Now define the sender:
Code
Respond should be:
Code
250 2.1.0 [email protected] OK

Then define the recipient (who you want to send the mail to):
Code

Respond should be:
Code

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 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:
Code
250 2.6.0 <[email protected]> Queued mail for delivery
And your mail is sent! Congratulations!

[Image: 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
Didn't work for me... shame..
Worth a go I guess
(May 11, 2014 03:01 AM)Yelsdnah Wrote:  Didn't work for me... shame..
Worth a go I guess

What was the error you got?
It works for me...

If this tutorial worked for you, please comment to keep the thread alive, thank you.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by arun9020Jan 8, 2025 09:44 AM 23 1,999 Jan 8, 2025 09:44 AM
Last Post: SIM-5604220
by poppin27May 18, 2024 01:24 PM 108 13,282 May 18, 2024 01:24 PM
Last Post: HofmanoID11
by OxydeMar 23, 2024 01:38 AM 40 2,411 Mar 23, 2024 01:38 AM
Last Post: johncena4lyfee