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.

How can i cut 16 bytes from a file with QuickBMS?

Featured Replies

  • Author
  • Localization

JesWhite, posted Fri Feb 19, 2021 6:17 am (62369)


Image


this script for 4 byte
Code:
get SIZE asize
get NAME basename
math SIZE - 4
string NAME .ren
log NAME 0x4 SIZE


i found :)

Code:
get SIZE asize
get NAME basename
math SIZE - 16
string NAME .ren
log NAME 16 SIZE
  • Author
  • Localization

aluigi, posted Fri Feb 19, 2021 4:36 pm (62375)


Correct, you can also opt for the usage of an OFFSET variable:

Code:
math OFFSET = 16
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME .ren
log NAME OFFSET SIZE
  • Author
  • Localization

JesWhite, posted Mon Mar 01, 2021 10:20 am (62584)


aluigi wrote:
Correct, you can also opt for the usage of an OFFSET variable:

Code:
math OFFSET = 16
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME .ren
log NAME OFFSET SIZE

ty so much.
how can i add some binary ("for example: \x05\xB9\x69\xBC\x1E") front of file from offset 0?
  • Author
  • Localization

aluigi, posted Mon Mar 01, 2021 12:41 pm (62592)


Just add the following to the previous script:
Code:
set MEMORY_FILE binary "\x05\xB9\x69\xBC\x1E"
append -1
log NAME 0 5 MEMORY_FILE
append


In the current beta of quickbms the append mode even works with the put* commands, but they are mainly meant for working memory files so this is just a FYI note :)
  • Author
  • Localization

JesWhite, posted Mon Mar 01, 2021 7:02 pm (62603)


aluigi wrote:
Just add the following to the previous script:
Code:
set MEMORY_FILE binary "\x05\xB9\x69\xBC\x1E"
append -1
log NAME 0 5 MEMORY_FILE
append


In the current beta of quickbms the append mode even works with the put* commands, but they are mainly meant for working memory files so this is just a FYI note :)


ty so much.
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.