Hello, i’m trying to do a script which have to :
- login into a POST session on a distant server
- include a php file of this server, using the POST injected informations
but i’m a begginer :S
(NB : it’s not a hack : i’m an ogame player and i try to allow the view of stats into a forum using my own login/password informations >.<’
This is the code of the login page :
[code]
n00b - OGSpy 3.05![]() |
|||||
| Paramètres de connexion | |
| Login : | |
|---|---|
| Mot de passe : | |
v 3.05
<i>Temps de génération 0 sec (<b>PHP</b> : 0 / <b>SQL</b> : 0)<br /></i>
</font>
</center>
</td>
And the code of my script :
[php]<?php
$data = ‘action=’.urlencode(‘login web’).’&goto=’.urlencode(’’).’&login=’.urlencode(‘karoubb’).’&password=’.urlencode(‘MYAWSOMEPASSWORD’).’&id=’.$id_session;
$message = “POST http://n00b.galaxy-spy.net/index.php HTTP/1.0\r\n”;
$message .= “Content-type: application/x-www-form-urlencoded\r\n”;
$message .= “Content-length: “.strlen( $data ).”\r\n”;
$message .= “\r\n”;
$message .= $data."\r\n";
$fd = fsockopen( “http://n00b.galaxy-spy.net”, 80 );
fputs($fd,$message);
fclose($fd);
?>[/php]
… When i try to use it, it print this on the forum :
Prévisualisation$data = ‘action=’.urlencode(‘login web’).’&goto=’.urlencode(’’).’&login=’.urlencode(‘karoubb’).’&password=’.urlencode(‘anarchie’).’&id=’.$id_session;
$message = “POST http://n00b.galaxy-spy.net/index.php HTTP/1.0\r\n”;
$message .= “Content-type: application/x-www-form-urlencoded\r\n”;
$message .= “Content-length: “.strlen( $data ).”\r\n”;
$message .= “\r\n”;
$message .= $data."\r\n";$fd = fsockopen( “http://n00b.galaxy-spy.net”, 80 );
fputs($fd,$message);
fclose($fd);?>
Can you help me plse 
