PDA

View Full Version : [NEW] Habbo Mottor Grabber



Kieran
02-11-2012, 06:38 PM
Hello,

As some of you are probably aware Habbo recently changed their systems so that mottos couldn't be grabbed using the normal method from the homepages.

Below is a new PHP function I've written to successfully grab peoples mottos :)


<?php

function mottoGrab($username) {
$url = 'http://www.habbo.com/home/'.$username;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)');
curl_setopt($ch, CURLOPT_COOKIE, "YPF8827340282Jdskjhfiw_928937459182JAX666=".$_SERVER['SERVER_ADDR']); //saved cookies
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$string = curl_exec ($ch);
curl_close ($ch);

$regex = '#\<div class="profile-motto"\>(.+?)\<\/div\>#s';
preg_match($regex, $string, $matches);
$match = $matches[0];
echo $match;
}

mottoGrab(xxMattGxx);

?>

That should work just straight off. If not it will be to do with the Server IP address. If this is the case, simply replace the


curl_setopt($ch, CURLOPT_COOKIE, "YPF8827340282Jdskjhfiw_928937459182JAX666=".$_SERVER['SERVER_ADDR']); //saved cookies

line with:


curl_setopt($ch, CURLOPT_COOKIE, "YPF8827340282Jdskjhfiw_928937459182JAX666=YOURSERV ERIP"); //saved cookies

CrazyLemurs
02-11-2012, 08:19 PM
LOL I don't get half of that, but if it does what we need for registration to reopen on the main site, we should definitely use it!

Kieran
02-11-2012, 08:45 PM
LOL I don't get half of that, but if it does what we need for registration to reopen on the main site, we should definitely use it!

The motto part of the registration now works. Unfortunately David's Captcha code is broken so people still can't register :l

MatheeusXD
25-12-2012, 06:25 AM
Works on habbo.com.br?

-Nick
25-12-2012, 11:55 AM
Works on habbo.com.br?

just change the URL in coding ?dunno if that will work :P

MatheeusXD
25-12-2012, 01:52 PM
just change the URL in coding ?dunno if that will work :P
it is the Brazilian has habbo servers in the United States is the same habbo.com

AaidenX
02-02-2014, 02:02 PM
It doesnt work, undefined offset[0]

Blinger
05-02-2014, 02:23 AM
It doesnt work, undefined offset[0]
Works for me. Your moto is "HTML, CSS, PHP, Java, C# and Pascal."

AaidenX
05-02-2014, 02:14 PM
@Blinger it won work, I get "Notice: Undefined offset: 0 in C:\xampp\htdocs\motto.php on line 19"

eLv
06-02-2014, 03:02 PM
You guys can use the following URL to find out mission of habbos who have their homepage hidden: http://www.habbo.com/habblet/habbosearchcontent?searchString=AaidenX

Daltron
09-02-2014, 09:42 PM
You guys can use the following URL to find out mission of habbos who have their homepage hidden: http://www.habbo.com/habblet/habbosearchcontent?searchString=AaidenX

Or you can just look at their in client profile :D

Want to hide these adverts? Register an account for free!