this script for 4 byte
Code: Select all
get SIZE asize
get NAME basename
math SIZE - 4
string NAME + .ren
log NAME 0x4 SIZE
i found
Code: Select all
get SIZE asize
get NAME basename
math SIZE - 16
string NAME + .ren
log NAME 16 SIZE
Code: Select all
get SIZE asize
get NAME basename
math SIZE - 4
string NAME + .ren
log NAME 0x4 SIZE
Code: Select all
get SIZE asize
get NAME basename
math SIZE - 16
string NAME + .ren
log NAME 16 SIZE
Code: Select all
math OFFSET = 16
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME + .ren
log NAME OFFSET SIZE
aluigi wrote:Correct, you can also opt for the usage of an OFFSET variable:Code: Select all
math OFFSET = 16
get SIZE asize
math SIZE - OFFSET
get NAME basename
string NAME + .ren
log NAME OFFSET SIZE
Code: Select all
set MEMORY_FILE binary "\x05\xB9\x69\xBC\x1E"
append -1
log NAME 0 5 MEMORY_FILE
append
aluigi wrote:Just add the following to the previous script:Code: Select all
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