Hallo,
ik probeer met een account in te loggen op habbo.nl. Maar dat lukt mij helaas niet. Ik werd al door Dylanh geholpen bij het Kleine Vragen Topic, maar het werd iets te lang, daarom open ik nu een topic!
Dit is wat Dylanh al had:
Codeblok (voorbeeld.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Created by Dylanh @ one2xs.com
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://www.habbo.nl/account/submit");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(x => x, credentials.password => x, credentials-email => x)));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0");
$cookie_file = "cookie1.txt";
chmod($cookie_file, 644);
curl_setopt($ch, CURLOPT_COOKIE, true);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
$server_output = curl_exec($ch);
curl_close($ch);
print($server_output);
?>
Het lukt maar niet om binnen te graken, door de cookies. Enig idee hoe we dit verhelpen?
ik probeer met een account in te loggen op habbo.nl. Maar dat lukt mij helaas niet. Ik werd al door Dylanh geholpen bij het Kleine Vragen Topic, maar het werd iets te lang, daarom open ik nu een topic!
Dit is wat Dylanh al had:
Codeblok (voorbeeld.php):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Created by Dylanh @ one2xs.com
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://www.habbo.nl/account/submit");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(x => x, credentials.password => x, credentials-email => x)));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0");
$cookie_file = "cookie1.txt";
chmod($cookie_file, 644);
curl_setopt($ch, CURLOPT_COOKIE, true);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
$server_output = curl_exec($ch);
curl_close($ch);
print($server_output);
?>
Het lukt maar niet om binnen te graken, door de cookies. Enig idee hoe we dit verhelpen?
