Jump to content
Nytro

Flappy highscore

Recommended Posts

  • Active Members
Au intervenit, deci nu mai merge, nu?

Nytro zicea c? merge ad?ugat ?i cod. Era interesant un XSS care s? auto actualizeze scorul personal în func?ie de faptul c? nu mai e?ti pe primul loc. Trololo :))

Func?ioneaz?, dar te scoate peste cateva minute de pe list?. :)

Link to comment
Share on other sites

Cine are ceva timp liber, seta?i urm?torul cod pentru o sarcin? CRON :)

<?php

define('NAME', 'RST');
define('PTS', 31337);

function send_post($path, $postdata)
{
$options = array(
'http' => array(
'content' => http_build_query($postdata),
'method' => 'POST',
'header' => implode("\r\n", array(
'Content-type: application/x-www-form-urlencoded'
))
),
);

$context = stream_context_create($options);
$url = "http://social.flappybird.io/leaderboard/{$path}";
return json_decode(file_get_contents($url, false, $context));
}

$getdata = send_post('', array(
't' => number_format(PTS * 4.793313265998712, 15),
's' => PTS
));

$update_data = send_post("update/{$getdata->token}", array(
'name' => NAME
));

print_r($update_data);

  • Upvote 1
Link to comment
Share on other sites

Bag p**a, e SIGNED INT, deci numai atat am putut:

cTXBbWr.png

L.E.: Cred ca se verifica daca se poate realiza acel scor in intervalul acela de timp pe care il trimiti catre server. Sper ca am setat bine si va ramane scorul. (Am setat la bascaleala cam la ~1.5x mai mult decat scorul)

Edited by totti93
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...