Here a small php script that rips bagdes,icons,mp3,furni's
If anybody have suggestions or whatever what to make?, Drop it x]
Btw, It must possible todo.
Quote from my post on RZ:
New Furni ripper
PHP Code:
<?php
if (!defined('STDIN'))
{
echo 'Please run it as a cmd ({path to your php}/php.exe {path to badges.php} -f)';
exit;
}
define('BASE', 'http://images.habbo.com/dcr/hof_furni/');
$furnidata = file_get_contents('http://hotel-us.habbo.com/gamedata/furnidata');
$pos = 0;
while ($pos = strpos($furnidata, '["', $pos +1))
{
$pos1 = strpos($furnidata, '"]', $pos);
$rule = substr($furnidata, $pos, ($pos1 -$pos));
$rule = explode(',', $rule);
$revision = str_replace('"', '', $rule[3]);
$furni = current(explode('*', str_replace('"', '', $rule[2])));
if (file_exists('C:/furni/'.$furni.'.swf'))
{
echo 'furni exists: '.$furni."\r\n";
continue;
}
echo 'Download furni: '.$furni."\r\n";
if (!@copy(BASE.'/'.$revision.'/'.$furni.'.swf', 'C:/furni/'.$furni.'.swf'))
{
echo 'Error downloading: '.$furni."\r\n";
}
}
?>
Prove images:
Icon ripper
PHP Code:
<?php
if (!defined('STDIN'))
{
echo 'Please run it as a cmd ({path to your php}/php.exe {path to badges.php} -f)';
exit;
}
define('BASE', 'http://images.habbo.com/c_images/catalogue/');
$cnt = 0;
$max = 4;
$retry = 1;
$i = 1;
echo 'Begin...'."\r\n";
while ($retry <= $max)
{
if ($cnt == 10)
{
$max++;
$cnt = 0;
}
if (file_exists('C:/icons/icon_'.$i.'.png'))
{
$i++;
$cnt++;
echo "\r\n".'icon exists: '.$i;
continue;
}
echo "\r\n".'Download icon: '.$i;
if (!@copy(BASE.'icon_'.$i.'.png', 'C:/icons/icon_'.$i.'.png'))
{
echo ' ... Error';
$retry++;
}
$i++;
$cnt++;
}
?>
mp3 sample ripper(Looks like icon ripper x])
PHP Code:
<?php
if (!defined('STDIN'))
{
echo 'Please run it as a cmd ({path to your php}/php.exe {path to badges.php} -f)';
exit;
}
define('BASE', 'http://images.habbo.com/dcr/hof_furni/mp3/');
$cnt = 0;
$max = 4;
$retry = 1;
$i = 1;
echo 'Begin...'."\r\n";
while ($retry <= $max)
{
if ($cnt == 10)
{
$max++;
$cnt = 0;
}
if (file_exists('C:/mp3/sound_machine_sample_'.$i.'.mp3'))
{
$i++;
$cnt++;
echo "\r\n".'mp3 exists: '.$i;
continue;
}
echo "\r\n".'Download sound machine sample: '.$i;
if (!@copy(BASE.'sound_machine_sample_'.$i.'.mp3', 'C:/mp3/sound_machine_sample_'.$i.'.mp3'))
{
echo ' ... Error';
$retry++;
}
$i++;
$cnt++;
}
?>
Gorden ripper
Final version.
I'm sorry, But most of the public rooms isn't in the external_flash_texts
Or you guys must give me hints x]
PHP Code:
<?php
if (!defined('STDIN'))
{
echo 'Please run it as a cmd ({path to your php}/php.exe {path to badges.php} -f)';
exit;
}
define('BASE', 'http://images.habbo.com/gordon/RELEASE63-35255-34886-201108111108_ce2d130905ba279edbfb4208cd5035c0/');
echo "Begin.....\r\n";
//Static files
$files = array(
"config_habbo.xml",
"figuremap.xml",
"pets_palettes.swf",
"PlaceHolderFurniture.swf",
"PlaceHolderPet.swf",
"PlaceHolderWallItem.swf",
"SelectionArrow.swf",
"TileCursor.swf",
"Volter.swf",
"Habbo.swf"
);
$Clothes = file_get_contents(BASE.'figuremap.xml');
foreach($files as $file)
{
if (file_exists('C:/gordon/'.$file))
{
echo "\r\nDownload exists: ".$file;
continue;
}
echo "\r\nDownload file: ".$file;
if (!@copy(BASE.$file, 'C:/gordon/'.$file))
{
echo ' ... Error';
}
}
$pos = 0;
while ($pos = strpos($Clothes, '<lib', $pos +3))
{
$pos1 = strpos($Clothes, '>', $pos);
$rule = substr($Clothes, $pos, $pos1 -$pos);
$explode = explode(' ', $rule);
next($explode);
$cloth = str_replace(array('id=','"'), '', current($explode));
if (file_exists('C:/gordon/'.$cloth.'.swf'))
{
echo "\r\nDownload exists: ".$cloth;
continue;
}
echo "\r\nDownload cloth: ".$cloth;
if (!@copy(BASE.$cloth.'.swf', 'C:/gordon/'.$cloth.'.swf'))
{
echo ' ... Error';
}
}
echo "\r\nTrying to get most of the public rooms..\r\n";
$flash_texts = file_get_contents('http://hotel-us.habbo.com/gamedata/external_flash_texts');
$pos = 0;
while($pos = strpos($flash_texts, 'nav_venue_', $pos +3))
{
$pos1 = strpos($flash_texts, '=', $pos);
$rule = substr($flash_texts, $pos +strlen('nav_venue_'), $pos1 -($pos +strlen('nav_venue')) -1);
$fixed = str_replace(array('_name', '_desc', '_0', '_1', '_2', '_3', '_4', '_5', '_6', '_7', '_8', '_9'), '', current(explode('/', $rule)));
if (in_array(current(explode('_', $fixed)), array('sw', 'bb')))
{
continue;
}
echo "\r\nDownload public rooms: ".$fixed;
//1 try
$t1 = $fixed;
if (!@copy(BASE.'hh_room_'.$t1.'.swf', 'C:/gordon/hh_room_'.$t1.'.swf'))
{
echo '.';
}
else
{
continue;
}
//2 try
$t2 = implode('', explode('_', $fixed));
if (!@copy(BASE.'hh_room_'.$t2.'.swf', 'C:/gordon/hh_room_'.$t2.'.swf'))
{
echo '.';
}
else
{
continue;
}
echo 'Error';
}
?>
The end! (Webbuild Ripper)
Whats in it:
- Css link searcher for a better result.
- Habbo.com only filter
- Extention filter
- Base ripper
How to get the JSON:
Proof:
Download:
Webbuild_ripper.rar
Must read:
There is a change that it isn't ripping everything.
But the most of it, It will be ripped.