Page 1 of 1

getting content of page

Posted: Tue Feb 16, 2010 12:30 pm
by Ajdija
I want to get value of "k parameter" from flash file of http://www.mybrutecheats.com/simulator/index.php .
The problem is that this flash file appear only if I insert some informations like:

First Brute Details
Name: ajdija Level: 300
Second Brute Details
Name: theajdija Level: 300

and press enter. I want to know how can I get contents of page with flash object so that I can parse it and get "k parameter", if you fill form like above example it's "k=540f8".
I tried with:

Code: Select all

$data = file_get_contents($url);
preg_match($regex,$data,$kParam);
but it seems not possible as it get only form.

It would be great if you also post some tutorial links about it.

Thanks in advance, Ajdija.

*As it's my first post here, hello everybody! , hope we spend great time together on this great forum!

Re: getting content of page

Posted: Tue Feb 16, 2010 2:32 pm
by Ajdija
maybe it's possible to fill it with curl and then get page content? can anyone gives me further instructions for that?

Re: getting content of page

Posted: Tue Feb 16, 2010 3:02 pm
by AbraCadaver
I couldn't find a terms of service or acceptable use policy or anything other than a copyright, so if the moderators think it's ok, I can give you some tips.

Re: getting content of page

Posted: Tue Feb 16, 2010 3:11 pm
by Ajdija
Disclaimer
[...]
Similar articles, comments and other phrases is strictly coincidental. Other images posted in the website are copyrighted to the rightful owners of the specific Brute. If you have any suggestions, complaints or comments, please don’t hesitate to contact us.
I think it's all fine

Re: getting content of page

Posted: Thu Feb 18, 2010 10:13 am
by Ajdija
*bump*

Re: getting content of page

Posted: Thu Feb 18, 2010 11:13 am
by AbraCadaver
Ajdija wrote:*bump*
I tested it out and you can successfully post data, but you have to fix up the URL to the swf in the response to get the flash to show, but it doesn't play because it can't find other files. But if all you want is the page so you can get a var:

Code: Select all

$player1 = 'ajdija';
$level1 = '300';
$player2 = 'theajdija';
$level2 = '300';
 
$post_vars = array( 'player_1_1' => $player1, 'level_1_1' => $level1,
                    'player_2_1' => $player2, 'level_2_1' => $level2);
 
$data = http_post_fields('http://www.mybrutecheats.com/simulator/index.php', $post_vars);