ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Apr 20, 2021 5:39 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Feb 19, 2021 6:17 am 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
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


Top
   
PostPosted: Fri Feb 19, 2021 4:36 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12096
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


Top
   
PostPosted: Mon Mar 01, 2021 10:20 am 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
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?


Top
   
PostPosted: Mon Mar 01, 2021 12:41 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12096
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 :)


Top
   
PostPosted: Mon Mar 01, 2021 7:02 pm 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited