Hooligans Sportsbook

Anyone that can read a php script?

  • Start date
  • Replies
    10 Replies •
  • Views 1,158 Views

rito

New Member
Since
Jan 27, 2010
Messages
11,584
Score
2
Tokens
0
This function and another like it are in two different scripts that some ukranian dude wrote for me to scrape past box scores and lines. They work ok, but somthing odd is here with the bold parts.

What is he doing with sbr and bookmaker? Neither script has anything to do with said sites. I've never even mentioned them. This script pulls from covers.com and nothing else.


protected function post_page($url,$postFields,$refer,$cookie)
{
curl_setopt($this->ch, CURLOPT_HTTPHEADER, array('X-MicrosoftAjax' => ' Delta=true', 'Accept' => 'text/plain,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'));
curl_setopt($this->ch, CURLOPT_REFERER, $refer);
//$cookie = '__utma=56692281.1669766007.1254490270.1263502814.1263567256.11; __utmz=56692281.1255006849.2.2.utmcsr=sportsbookreview.com|utmccn=(referral)|utmcmd=referral|utmcct=/sbr/bookmaker/; campaignid=LOCAL; affid=INTERNET; ASP.NET_SessionId=o3fwqejupk0hxw45eiv51x55; __utmc=56692281; tabname=null';
curl_setopt($this->ch, CURLOPT_COOKIE, $cookie);
curl_setopt($this->ch, CURLOPT_POST, true);
curl_setopt($this->ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($this->ch, CURLOPT_URL, $url);
$page = curl_exec($this->ch);
if(curl_errno($this->ch) <> 0)
{
throw new Exception(curl_error($this->ch));
}
return $page;
}
 
well it is setting a cookie in the curl cookie jar, so the website can read that cookie he is setting (useful for using php to log in to web sites that require cookie authentication). But it is commented it out now so it won't do anything. Probably the reason the cookie was set was that the programmer had that cookie on his computer and thought it was necessary for the script to run properly, which it isnt.
 
I had a quick google search and a similarish question was asked concerning:

"Cookie server variable value contains a property called utmscr set to the same Web site and utmcct set to a page at that Web site"

And the answer was that it was probably a cookie of some sort.

At a guess, I'd say that covers.com is taking their feed (complete with affiliate links) from sportsbookreview.com.
 
Thanks guys.

So no grand conspiracy between SBR and my Ukranian idiot against me?

On that topic, paying someone to write programs for you can't be that safe can it. I mean he could put some code in there that would copy all my passwords and send em to him and I'd never know it right? I really should do this shit myself.
 
yea based on his code snippet it looks like he just didnt have much experience in scraping web pages. theres no way that a php program could do any major damage to your system but still scraping web pages is very easy even for people with some but minimal programming experience.
 
Thanks guys.

So no grand conspiracy between SBR and my Ukranian idiot against me?

On that topic, paying someone to write programs for you can't be that safe can it. I mean he could put some code in there that would copy all my passwords and send em to him and I'd never know it right? I really should do this shit myself.

Sure, he could. I think it's pretty unlikely. There's a middle ground where you just learn enough that you can look over his source code and understand what he's doing. That would also be way to learn more.