
Originally Posted by
halfdone
I finally found the way to spoof emal senders address. All you need is a open relay smtp server and sendEmail. most of isps provides those smtp servers who doest require authentication. its really easy.
Dont think that is going to win 1st prize in most helpful post of the year award..
A bit more detail may have contributed a bit more
Back on topic;
First of all you should check what the smtp server is of your internet provider.
www.whatismyipaddress.com This will show you your ISP details.
Then
www.e-eeasy.com/SMTPServerList.aspxSearch To check your ISP and note the smtp info.
There are numerous sites up with smtp info, so if yours is not included in the above, do a google on smtp server lists.
Now you have that the next stage is to create an email with sendEmail (this all based on having a working internet connection up and running on backtrack of course);
Open up a shell and view the options.
Code:
sendEmail
sendEmail-1.55 by Brandon Zehm <caspian@dotconf.net>
Synopsis: sendEmail -f ADDRESS [options]
Required:
-f ADDRESS from (sender) email address
* At least one recipient required via -t, -cc, or -bcc
* Message body required via -m, STDIN, or -o message-file=FILE
Common:
-t ADDRESS [ADDR ...] to email address(es)
-u SUBJECT message subject
-m MESSAGE message body
-s SERVER[:PORT] smtp mail relay, default is localhost:25
Now let's prepare an early Valentine message to my better half.
(remember that the email is not anonymous, the headers will show from which IP it was sent.
Some people [such as my better half..] do not know how to check that though)
Code:
sendEmail -f "Your Secret Admirer<Secret@Admirer.com>" -t better@half.com \
-u "Will you be my Valentine ?" -s smtp.isp.here
You will then be presented with ;
Reading message body from STDIN because the '-m' option was not used.
If you are manually typing in a message:
- First line must be received within 60 seconds.
- End manual input with a CTRL-D on its own line.
So get typing your Valentine message;
Code:
Roses are Red
Violets are Blue
etc
etc
Ctrl D on its own (new) line
May 29 09:35:47 backtrack sendEmail[6131]: Message input complete.
May 29 09:35:49 backtrack sendEmail[6131]: Email was sent successfully!
An alternative to using the isp's smtp is to use for instance gmail's smtp server.
For this you will have to enter your gmail login and password;
Code:
sendEmail -f Me@email.com -t You@email.com -u "Test Subject" -m "Message Body Text" \
-s smtp.gmail.com -xu yourgmail@gmail.com -xp gmailpassword
Note that -xp password may require (single) quotes if special characters in password.
The 'problem' with this method is that the return address will always be you gmail address, so in addition to sending the IP address from the connection you are mailing from, with this method also the gmail accout..
Depends on what you want to do I suppose.
Hope the above of help / intrerest to someone.