Home of the Ultimate Xbox 360 Modding Tool, Horizon. XboxMB.com is a community of Xbox 360 gamers and modders who share Tutorials, News, Reviews, and other resources. Xbox Message Boards is free to sign up and use, so what are you waiting for? Register Now!
ok, i have a php page where i can send emails from, and send many emails in one hit. problem is, it can be a tool and it can be a hack, for lack of a better word. so basicly i have said dont be a indiot basicly and that this script MAY record your ip IF you agree. so i want to be able to record the ip address and maybe a a shotrt log eg clicked send button to Name@domain.com or even just record ips IF the clicked send and the value of a particular input. eg
$ip = $_SERVER['REMOTE_ADDR']; $log = 'log.txt' //this can be whatever location you'd like the log to show up. $write = fopen($log, 'a+'); //you can mess around with the modes, a+ starts at the end of a document. fwrite($write,'IP: '.$ip.' ; Amount Sent: '.$amount."\n"); fclose($write);
put this after your while statement. Assuming that $amount is the variable for the amount sent.
Lol, he want's to log IP addresses after they use his emailer.
thats exactly it. xAB has been stalking me trying to throw advice at me for days nah he has been a great help, i noticed u said emailer instead of bomber
getting:
Parse error: syntax error, unexpected T_VARIABLE in public_html/bomber.php on line 39
working through it now.
__________________
Custom PC:
Quad Core i5 2400 @ 3.10Ghz
12GB RAM 1333Mhz
64GB Crucial SSD
120GB OCZ AGILITY4
3TB Seagate 7400RPM
350GBWestern Digital 7400RPM
24" LED Samsung Monitor
ASUS HD7870 Series
Thermaltake Oversearer RX1 Blue
Razer Death Adder
Microsoft Sidwinder X4
Windows 7 Home Premium 64Bit
iPad (3)
iPhone 5 White 64GB
case 'joel@thecaseys.id.au';
case 'admin@murq.net';
die('This email is flagged by admin, You CANNOT send emails to this address with this client.');
break;
default:
while($hack <= $amount){
$ip = $_SERVER['REMOTE_ADDR'];
$log = 'ip_log.txt'
$write = fopen($log, 'a+'); //you can mess around with the modes, a+ starts at the end of a document.
fwrite($write,'IP: '.$ip.' ; Amount Sent: '.$amount."\n");
fclose($write);
mail($email,"$Subject","$message", "From: " ."". $user. "<" . $email . ">\n");
echo "Sent +1,ฉ Copyright MurQ Net – Written by Admin, Use this at your own risk (Each line is One message sent).<br>";
$hack++;
}
}
}
}
?>
<?php
echo "Your IP Adress: " . getRealIpAddr() . "";
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
$ip=$_SERVER['HTTP_CLIENT_IP'];
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
else
$ip=$_SERVER['REMOTE_ADDR'];
return $ip;
}
?>
<form method='post'>
Email-------------:<input type='text' name='email'><br><br>
Number of Emails-:<input type='text' name='amount'><br><br>
Subject-----------:<input type='text' name='Subject'><br><br>
Message :---------:<input type='text' name='message'><br><br>
Disclaimer: By clicking Send you agree to the terms and conditions<br><input type='submit' name='hack' value='Send'><br><br>
Terms and Conditions:<br><br>Do not use this to spam, use this to email when you dont have access to your email<br>MurQ Net is not responsable for what you use this for<br>
It is Illegal to 'Spam' in some countries, Beware<br>
<br><br><br>
Instructions<br><br>
Enter your recipients email in the 'Email' feild<br>
Number of emails is the amount of times to send the email<br>
Subject is the subject of the email<br>
Message is the Message or email sent to the recipient<br><br><br>
ฉ Copyright MurQ Net – Written by Admin
</form>
<? ?>
contents of text:
Quote:
$write = fopen($log, 'a+');
Also tried:
Quote:
$write = fopen($log, 'a+')
txt file name:
Quote:
ip_log.txt
__________________
Custom PC:
Quad Core i5 2400 @ 3.10Ghz
12GB RAM 1333Mhz
64GB Crucial SSD
120GB OCZ AGILITY4
3TB Seagate 7400RPM
350GBWestern Digital 7400RPM
24" LED Samsung Monitor
ASUS HD7870 Series
Thermaltake Oversearer RX1 Blue
Razer Death Adder
Microsoft Sidwinder X4
Windows 7 Home Premium 64Bit
iPad (3)
iPhone 5 White 64GB
while($hack <= $amount){ $ip = $_SERVER['REMOTE_ADDR']; $log = 'ip_log.txt'; //<------forgot a semi colon. $write = fopen($log, 'a+'); //you can mess around with the modes, a+ starts at the end of a document. fwrite($write,'IP: '.$ip.' ; Amount Sent: '.$amount."\n"); fclose($write); mail($email,"$Subject","$message", "From: " ."". $user. "<" . $email . ">\n"); echo "Sent +1,ฉ Copyright MurQ Net – Written by Admin, Use this at your own risk (Each line is One message sent).<br>"; $hack++; } } } } // remove this closing brace.
Those are my fault, sorry i didn't catch them the first time.