Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

Bonsai Barber .dat Files

Featured Replies

  • Author
  • Localization

Larsenv, posted Thu Jun 04, 2015 11:32 pm (5565)


Hi,

Could someone please make a QuickBMS Script for Bonsai Barber's .dat files?

I believe they are CFF archives.

I also decrypted the .pkg file the game uses with offzip, it's a zlib compressed file, and I now have this if anyone is willing to look at this and make a QuickBMS script for me.

Thank You.
  • Author
  • Localization

aluigi, posted Fri Jun 05, 2015 6:47 pm (5573)


Code:
endian big
get DUMMY long
get DAT_SIZE long
get ZERO long
get DUMMY long
get FILES long
savepos BASE_OFF
xmath BASE_OFF "BASE_OFF FILES * (0x20 4 4)"
math BASE_OFF x 0x100
for i = 0 < FILES
    getdstring NAME 0x20
    get OFFSET long
    get SIZE long
    math OFFSET BASE_OFF
    log NAME OFFSET SIZE
next i
  • Author
  • Localization

Larsenv, posted Fri Jun 05, 2015 11:43 pm (5577)


Thanks a lot for that, it worked. However, I'm also interested in extracting the stuff from TV Friend Channel as well, it looks similar to the Bonsai Barber .dat file, but I don't know how to extract from that one.

Could you please make a QuickBMS script for TV Friend Channel?
  • Author
  • Localization

aluigi, posted Sat Jun 06, 2015 2:12 am (5580)


I see only linked stuff without sense and nothing to dump:
Code:
endian big
get DAT_SIZE long
get INFO_OFF long
get FILES long
get DUMMY long
get ZERO long
getdstring DUMMY 4
get ZERO long
get ZERO long
savepos BASE_OFF
math INFO_OFF BASE_OFF
goto INFO_OFF
for i = 0 < FILES
    get OFFSET long
    math OFFSET BASE_OFF
    savepos TMP
    goto OFFSET
    get OFFSET long
    math OFFSET BASE_OFF
    print "??? %OFFSET|X%"
    goto TMP
next i
  • Author
  • Localization

Larsenv, posted Sat Jun 06, 2015 2:44 pm (5587)


Hmm, interesting, it didn't do anything but only printed the offset as seen on the second to last line, lol.

That's OK though, thanks a lot for your help and for making all of the tools, I'll be back here when I need something else decrypted.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.