1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <?php
session_start();
if ($_GET['part'] == 1 || $_GET['part'] == NULL):
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://www.punBB.fr/forum/login.php?action=in");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, "form_sent=1&redirect_url=curl.php?part=2&req_username=maxime75000&req_password=maxmax&login=S'identifier");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_COOKIE, session_name() . '=' . session_id());
$xxx = curl_exec($curl);
curl_close ($curl);
echo $xxx;
elseif ($_GET['part'] == 2):
echo file_get_contents('http://www.punBB.fr/forum/index.php');
else:
endif;
?> |
Partager