1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to sp00f "from" mail address?

Discussion in 'Black Hat SEO' started by deeguy1, Oct 6, 2011.

  1. deeguy1

    deeguy1 Junior Member

    Joined:
    Mar 4, 2009
    Messages:
    197
    Likes Received:
    13
    Anyone know a mailer that can spoof the "from" address to any email address of my choice?
     
  2. TomOh

    TomOh Registered Member

    Joined:
    Apr 29, 2011
    Messages:
    58
    Likes Received:
    13
    Have fun,

    emkei.cz

    Leave thanks if this is what you were looking for!
     
    • Thanks Thanks x 3
  3. deeguy1

    deeguy1 Junior Member

    Joined:
    Mar 4, 2009
    Messages:
    197
    Likes Received:
    13
    Thanks, this seems like a start, but a bit tedious..I'm looking for more of a bulk solution
     
  4. cherub

    cherub Regular Member

    Joined:
    Dec 18, 2006
    Messages:
    260
    Likes Received:
    117
    Gender:
    Male
    Occupation:
    Boss
    Location:
    UK
    Depends what language and mail program you're using. Eg, perl and qmail
    Code:
    $from = 'webmaster(at)google(dot)com';
    ($ENV{'QMAILUSER'},$ENV{'QMAILHOST'}) = split(/\(at\)/,$from);
    # send mail code
     
  5. ronywilliam

    ronywilliam Senior Member

    Joined:
    Jan 20, 2011
    Messages:
    1,150
    Likes Received:
    431
    if you do spoof the from email id you would end up in spam so whats the point?!?!
     
  6. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    Spoofing the sender email won't make you anonymous, all of the servers header info will still be in tact. There are ways to make it more or less impossible to trace you such as using anonymous proxies.. preferably socks or tor, bulk registration on free php hosts.. if php is the sending language that you choose, those are two simple things to start with. Here's a simple php script for sending email.
    Code:
    <?php
    if (mail($_GET["to"], $_GET["subject"], $_GET["body"], "FROM: " . $_GET["from"])) {
     echo "Message sent!";
    } else {
     echo "Message sending failed.";
    }
    ?>
    In theory it should work but I haven't tested it. If you save it as mail.php and upload it to your public_html folder you can call it like this:
    Code:
    www.yourhost.com/mail.php?from=test@test.com&to=you@mail.com&subject=This is a test&body=This is the email body.
    If you do decide that you want to automate the process, send me a PM and we can talk.

    Cheers,
    captchaman
     
  7. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    5,913
    Likes Received:
    7,150
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    not necessarily

    i've just tried the tool posted above, email has been delivered into inbox, i tried with gmail and yahoo as well
     
  8. firefoxxx

    firefoxxx Newbie

    Joined:
    Jan 20, 2012
    Messages:
    15
    Likes Received:
    0
    Occupation:
    Professional
    Location:
    New York
    This is really great. I tried it out and it works. However, I didn't see anyway for me to spoof the return address. Is there a way for the spoofed email to also be able to receive recipient emails? Please let me know! :cool:
     
  9. chad362wiley

    chad362wiley Supreme Member

    Joined:
    Dec 8, 2011
    Messages:
    1,341
    Likes Received:
    782
    Occupation:
    n/a
    Location:
    Behind you
    Home Page:
    Easy in PHP mail
     
  10. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Look at the PHP mail command:

    mail('nobody@example.com', 'the subject', 'the message', null,'-fwebmaster@example.com');

    the -f is the address the mail is coming from (your spoof address)

    More details at: http://php.net/manual/en/function.mail.php
     
  11. firefoxxx

    firefoxxx Newbie

    Joined:
    Jan 20, 2012
    Messages:
    15
    Likes Received:
    0
    Occupation:
    Professional
    Location:
    New York
    I don't quite understand the PHP mail thing... Pretty much a n00b. Can someone please explain this to me in simple terms? I checked out the link but don't quite understand. Do I need to put in some commands for the (From E-mail:)?

    I basically want to be able to email back and forth with the recipient using the spoofed email! Im sorry for the ignorance again... i really appreciate you guys help!!! :bigok::bigok: