Ethical E-Mail Hacking – Identifying Sender

Any email can pretend itself it is from a trusted site, but in fact it was created by some hackers and served by their servers. When this spoof or forged mail is sent in at least thousands while not in millions. We already seen in the previous post by reading e-mail headers we can identify the sender when the mail seems to be some spoof. Below is a email header of a mail I sent from my hosting server with PHPmailer. Because normal mail clients never allow you to change the from mail address and other data. This mail pretends where it is from some trusted web site to you but it is created from my server. I have changed some data in below header, due to some security reasons. [sniplet postads] Before reading the header your mail looks like this when I receive it in my gmail inbox. [code] To: From: <> Subject: Verify Your Account Details [/code] Now, you can say this mail is from to verify your account details. Okay lets read the header of this mail which is given below. [code] Delivered-To: Received: by with SMTP id cd8cs166526ibb; Mon, 11 Oct 2010 19:39:48 -0700 (PDT) Received: by with SMTP id t37mr3252242ano.122.1286851188074; Mon, 11 Oct 2010 19:39:48 -0700 (PDT) Return-Path: <> ……………… ………………// content removed to reduce confusion ………………// some details of intermediate servers. ………………// No need to consider this. ……………… ……………… Received: from ( []) by with ESMTPS id q23sm3375542yba.17.2010. (version=SSLv3 cipher=RC4-MD5); Mon, 11 Oct 2010 19:39:46 -0700 (PDT) Date: Tue, 12 Oct 2010 02:39:44 +0000 Return-Path: To: From: <> Subject: Verify Your Account Details. Message-ID: <> X-Priority: 3 X-Mailer: PHPMailer ( [version 2.0.4] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" [/code] [sniplet postads] This email header determine where a message is sent, and records the specific path the message follows as it passes through each mail server. To follow the path of a message chronologically, read from the bottom of the header, and work your way up. In this header the mail passes through more than 2 mail servers so I removed the information to reduce confusion. Our motto is to find where the mail is generated, for that read the first ” Received: ” data (from bottom), it specifies that this mail is from “” with the ip address of “” and it includes a timestamp “17.2010.” which means exactly at “Mon, 11 Oct 2010 19:39:45”. Here is an another example email header (only first “Received:” is shown) [code] Received: from source ([]) by ([]) with SMTP; Wed, 20 Aug 2003 21:40:05 CDT [/code] In this case, ([]) – was smart enough to know the email really came from ip So we can find the sender’s domain or ip address from the email headers almost all the time. [sniplet postads] What can we do with the hacker’s ip address, we have to find the domain name, server location, owner of that domain, etc etc. We can do this by DNS Look up or else we can simply notify the domain owner whose domain is abused by the hacker, in the above full header the abused domain is “”. The next article will brief this, so stay subscribed to in the below box.

Join the simplest yet powerful newsletter...

Wisdom >> Freedom