Follow us on Twitter!
Understanding is the answer, hatred is the problem, and hackers are the slaves abused and destroyed in the process of peace online - Deshouleres
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 20
Guests Online: 20
Members Online: 0

Registered Members: 82904
Newest Member: jamessmith123
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

IP Stealer Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-08-09 03:59
So i'm working on a simple PHP scrip that grabs the users IP and Host and emails it to me. I cannot figure out why it is not sending -.-

Code
<?
$ip = $REMOTE_ADDR;
$host = gethostbyaddr($ip);
$email = "xxxxx@gmail.com";
$subject = "IP + Host Retrieved!";
$date = date("d/m/Y H:i:s");
$message = "<html><body>Date: $date<brIP: $ip<br>Host: $host</body></html>";
if(mail($email,$subject,$message,"Content-Type: text/html")){
echo "Working!";
}
else {
    echo "The page your are trying to view is currently temporarily offline!";
}


?>





Author

RE: IP Stealer Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 15-08-09 10:28
Are you sure that you have a working SMTP?
And that you've written the right path in the php.ini file.
Author

RE: IP Stealer Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 17-08-09 18:53
MoshBat wrote:
For starters,
$_SERVER['REMOTE_ADDR'];
Secondly,
<?php

Thirdly, you're an idiot...


How quick you are to throw words at people, when you clearly don't know what you're talking about =]

I give you as much as your first point, $_SERVER['REMOTE_ADDR'] would be one fix. But the second isn't necessarily true.

If the server has "short open tag" enabled, then your point stands no ground Smile
Author

RE: IP Stealer Help

p4plus2
Member

Your avatar

Posts: 167
Location:
Joined: 31.03.08
Rank:
Newbie
Posted on 18-08-09 01:25
Jesus wrote:
MoshBat wrote:
For starters,
$_SERVER['REMOTE_ADDR'];
Secondly,
<?php

Thirdly, you're an idiot...


How quick you are to throw words at people, when you clearly don't know what you're talking about =]

I give you as much as your first point, $_SERVER['REMOTE_ADDR'] would be one fix. But the second isn't necessarily true.

If the server has "short open tag" enabled, then your point stands no ground Smile

Short-hand tags are a bad habit and should always be avoided. This is not 1981 and 3 bytes are not going to kill our space. In this case, it can actually cause damage though if you. If you distribute your script not everybody has short hand enabled, thus problems come up.

He may as well use the ASP tags <% %> as they can be valid if enabled >.>.


"You can't be something your not,
Be yourself by yourself
Stay away from me" ~Walk, Pantera

"Playing an acoustic guitar is like having sex with your clothes on" ~Dave Mustaine
p4plus2@hotmail.com