Hi
Im doing this sch proj can u all help on dis i alr cracking my head for so long on dis but im not able to solve it as i didnt get wad i want......i appreacite ure kind help...thanks
My proj is like dis
I need to create a tool which can detect spoofed email..
i need to compare two field from the email header tat is:
Received: from emmanuel.sp.edu ([202.21.157.40]) by student-mail.sp.edu with Microsoft SMTPSVC(6.0.3790.1830);"
Message-ID: <489958FF1A028542AC33B4CCD58A7DFDB102AB@emmanuel.sp.edu>
i need to compare particulary dis two field and specifically the email address in both fied such as if both the email add in both field are same den is Genuine email else its Fake..
my codes tat i did is
CODE
Dim r As String = "Message-ID: <489958FF1A028542AC33B4CCD58A7DFDB102AB@emmanuel.sp.edu>"
Dim a As String = "Received: from emmanuel.sp.edu([202.21.157.40]) by student-mail.sp.edu with Microsoft SMTPSVC(6.0.3790.1830);"
If ProgressBar1.Value <= ProgressBar1.Maximum - 1 Then
ProgressBar1.Value += 20
Label2.Visible = False
Else
Timer1.Enabled = False
ProgressBar1.Value = 0
Label2.Visible = True
Label2.Text = "Trace Completed"
a = a.Substring(14, 22)
r = r.Substring(52, 20)
If String.Compare(a, r) = True Then
MsgBox("Genuine Email")
End If
If String.Compare(a, r) = False Then
MsgBox("Spoofed Email")
End If
i want to compare both field with emmanuel.sp.edu from the messege-ID and Received from field that i input in textbox1 den once i click on the button(trace) the it will carried out the scan.
Hope u all can help me on dis
thank u so much....
EDIT : Added code tags -b2c-