ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Mar 26, 2019 6:52 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: findloc problem!
PostPosted: Fri Mar 08, 2019 6:32 pm 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 140
i dont know its a problem or not, but i will tell you anyway, aluigi

Code:
print "TEST1"
findloc OBJE binary "\x4F\x42\x4A\x45"
print "%OBJE%"
print "TEST2"


you can see a file with name inw and a bat file to do it, but if i remove OBJE in offset 22 in inw file with hex, then rest of script can be start to print other part! (its happen just if binary cant find with findloc)


Attachments:
test.zip [508 Bytes]
Downloaded 5 times
Top
   
 Post subject: Re: findloc problem!
PostPosted: Fri Mar 08, 2019 7:40 pm 
User avatar

Joined: Sat Dec 27, 2014 8:49 pm
Posts: 117
Not sure what your issue is, looks to work fine for me.
Prints:

TEST1
22
TEST2

If I remove the pattern, it prints:
TEST1

Looks to work fine.

_________________
My personal site: http://atom0s.com
Donations can be made via Paypal: Click Here


Top
   
 Post subject: Re: findloc problem!
PostPosted: Fri Mar 08, 2019 11:19 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
Just to stay safe I think that it's ever better to use variable names that don't match the constant value, even if it's a binary value.

@Shokoniraya
Try calling the OBJE variable as TEST and check if you still have the problem.


Top
   
 Post subject: Re: findloc problem!
PostPosted: Sat Mar 09, 2019 12:11 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 140
nothing changed and still has problem


Top
   
 Post subject: Re: findloc problem!
PostPosted: Sat Mar 09, 2019 12:26 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
I don't see any problem, everything works perfectly.
Remember that findloc terminates quickbms by default if the pattern is not found.
Are you sure you don't need to use the following?

findloc OBJE binary "\x4F\x42\x4A\x45" 0 "NOT FOUND"


Top
   
 Post subject: Re: findloc problem!
PostPosted: Mon Mar 18, 2019 4:37 pm 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 140
And I want to ask something
is there any way to find a binary with a unknow byte?
Like this: "\xFF\xFF\XFF\x??\xFE"
because \x?? has a different value in every files and how can i solve that?


Top
   
 Post subject: Re: findloc problem!
PostPosted: Mon Mar 18, 2019 7:23 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9946
Unfortunately doesn't exist a jolly character for findloc


Top
   
 Post subject: Re: findloc problem!
PostPosted: Wed Mar 20, 2019 2:36 pm 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 140
solved with findloc OBJE binary "" 0 ""
looks like quickbms has problem with string NAME p in -s option and that is why my script not working


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 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