ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Jun 22, 2018 10:27 pm

All times are UTC




Post new topic  Reply to topic  [ 323 posts ]  Go to page Previous 111 12 13 14 1517 Next
Author Message
PostPosted: Sat Jan 06, 2018 11:29 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
I have found a simple way to bypass the problem of fields that are different than the original value read from the TOC, the new reimport2 mode will remember the last "math" operation performed on the variable and will reverse it for writing the correct value back in the TOC.
That means that "math OFFSET * 0x800" and "math OFFSET + BASE_OFF" are perfectly supported, BUT they are not supported together which means that only one operation per variable is allowed for having a correct new rewritten field.


Top
   
PostPosted: Fri Mar 02, 2018 6:57 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
quickbms 0.8.4 is almost ready since it's just a bugfix release, no new features.
Any last-minute idea is welcome :)


Top
   
PostPosted: Mon Mar 05, 2018 12:48 pm 

Joined: Sat Feb 24, 2018 4:10 pm
Posts: 5
Hi.

I have an idea for you.

Replace "Press ENTER or close the window to quit" by a way to retry the script.


Top
   
PostPosted: Mon Mar 05, 2018 1:23 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
If there was a problem the first time, how it could be solved by doing the same things a second time?


Top
   
PostPosted: Tue Mar 06, 2018 8:30 am 

Joined: Sat Feb 24, 2018 4:10 pm
Posts: 5
For exemple i try many key for Sea of thieves and i need to relaunch and select 3 files/folders each time.
I think i have done 50times with no result and the process will be more faster if i just can retape a new key without relaunch.

If QuickBms understand the issue, they can propose other way ?
For Key issue => Can tape new key
File/Folder issue (block/protected...) => Can select new File/Folder

Still loop, if no folder, file, key issues find, write string to find te problem or understand the issue.


Top
   
PostPosted: Tue Mar 06, 2018 9:34 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
You are using unreal_tournament_4.bms in a completely wrong way.
The job of the script is extracting files with the correct key, not scanning N keys manually provided by the user (totally useless).

And no, it's not just a "loop", it's a new description with a new answer to get and starting a new process with the arguments saved when it started.
All of this because the user selected a wrong folder once in his life :)


Top
   
PostPosted: Tue Mar 06, 2018 12:56 pm 

Joined: Sat Feb 24, 2018 4:10 pm
Posts: 5
If i don't know the key because nobody find it or share it,
And try to find it in bigExe with hexa editor, and have many result possible,
i need to test each one and i use unreal_tournament_4.bms for that..

But i understand it's the wrong way, show me the good one 8-)


Top
   
PostPosted: Tue Mar 06, 2018 3:58 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
If you want to continue with that way it's enough that you use quickbms from command-line or create a file.bat, so you don't have to select script/file/folder everytime.
But it's a waste of time in any case for some reasons.
Anyway here you are OT, this is the correct topic viewtopic.php?f=9&t=1005 in which you will find also some tips.


Top
   
PostPosted: Thu Mar 29, 2018 5:58 am 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 264
Hi luigi,

ihave an idea, make a wrapper around your functions to use them in .NET code. Like for example compressions, encryptions, coz qbms is only one on the planet which contains so many algos. This would be the best ever :) Thx


Top
   
PostPosted: Fri Mar 30, 2018 11:47 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
I remember that in the past quickbms.exe exported ALL its functions but I don't remember what happened later since lot of stuff was added and compatibility problems arised, anyway using exported functions from an executable may not work with some functions and still requires the developer to have knowledge of the prototype of the function and how to use it... not easy for most .NET developers.

Currently the only "solution" would be to execute quickbms.exe and pass a basic script via argument of the -s option but it's far to be a good solution.

Added to my TODO list


Top
   
PostPosted: Fri Mar 30, 2018 7:21 pm 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 264
aluigi wrote:
I remember that in the past quickbms.exe exported ALL its functions but I don't remember what happened later since lot of stuff was added and compatibility problems arised, anyway using exported functions from an executable may not work with some functions and still requires the developer to have knowledge of the prototype of the function and how to use it... not easy for most .NET developers.

Currently the only "solution" would be to execute quickbms.exe and pass a basic script via argument of the -s option but it's far to be a good solution.

Added to my TODO list


Thx mate, i have not seen code from qbms coz im not kind a c++ person, but im sure you can figure this out,im mostly using your compressions. Problem with method you mention, is the speed, specially if some files are chunked, it is amost impossible to use it like this.. :(


Top
   
PostPosted: Mon Apr 09, 2018 9:54 am 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 147
Apple is using new zip method 99.
https://github.com/lzfse/lzfse/blob/mas ... internal.h
sample zip
http://iosapps.itunes.apple.com/apple-a ... j4ykFvA%3D


Top
   
PostPosted: Fri Apr 13, 2018 8:24 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
lzfse is already available in quickbms but apparently something was wrong, in fact even lzfse_compress crashes.
added to my todo list :)


Top
   
PostPosted: Fri Apr 27, 2018 4:16 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
the problem with lzfse was caused by the version I was using in quickbms, the latest lzfse works correctly without any modification to my code.

quickbms 0.8.5 will have all the functions exported and probably some functions called quickbms_compression, quickbms_compression2 and quickbms_encryption to easily use all the algorithms embedded in the tool without headaches.
but keep in mind that loading an executable as a dll without additional code that reconstructs the import table is a bad idea and sometimes works sometimes doesn't.

Example currently used in my tests:
Code:
    HMODULE hlib = LoadLibrary("quickbms.exe");

    int __cdecl (*quickbms_compression)(char *algo, void *in, int zsize, void *out, int size) = NULL;
    quickbms_compression = (void *)GetProcAddress(hlib, "quickbms_compression");

    output_size = quickbms_compression("zlib", input, input_size, output, output_size);


Top
   
PostPosted: Fri Apr 27, 2018 6:43 pm 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 264
aluigi wrote:
the problem with lzfse was caused by the version I was using in quickbms, the latest lzfse works correctly without any modification to my code.

quickbms 0.8.5 will have all the functions exported and probably some functions called quickbms_compression, quickbms_compression2 and quickbms_encryption to easily use all the algorithms embedded in the tool without headaches.
but keep in mind that loading an executable as a dll without additional code that reconstructs the import table is a bad idea and sometimes works sometimes doesn't.

Example currently used in my tests:
Code:
    HMODULE hlib = LoadLibrary("quickbms.exe");

    int __cdecl (*quickbms_compression)(char *algo, void *in, int zsize, void *out, int size) = NULL;
    quickbms_compression = (void *)GetProcAddress(hlib, "quickbms_compression");

    output_size = quickbms_compression("zlib", input, input_size, output, output_size);



Thx luigi, looks very very nice, ill try some compressions... yeah.. Just is there any C# sample equivalent pls ?


Top
   
PostPosted: Fri Apr 27, 2018 6:50 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
I'm not sure about adding quickbms_encryption mainly because there are many arguments for configuring it and may result chaotic to use.

For example this is the syntax of the quickbms command: Encryption ALGO KEY [IVEC] [MODE] [KEYLEN]

5 arguments plus data and size... 7 in total
Maybe I can opt for a solution like quickbms_compression and quickbms_compression2 where the former is basic to use (no dictionary) and the latter is the full (complex) version.


Top
   
PostPosted: Fri Apr 27, 2018 7:12 pm 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 264
aluigi wrote:
I'm not sure about adding quickbms_encryption mainly because there are many arguments for configuring it and may result chaotic to use.

For example this is the syntax of the quickbms command: Encryption ALGO KEY [IVEC] [MODE] [KEYLEN]

5 arguments plus data and size... 7 in total
Maybe I can opt for a solution like quickbms_compression and quickbms_compression2 where the former is basic to use (no dictionary) and the latter is the full (complex) version.



Encryption will be tricky im sure of it but compression should be straight forward to do.. To be honest arguments are not the problem as i can see, problem would be to feed such a functions with correct data.


Top
   
PostPosted: Fri Apr 27, 2018 7:45 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
Worst case scenario there are over 13250 functions exported from quickbms.exe to use :D


Top
   
PostPosted: Fri Apr 27, 2018 7:48 pm 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 264
aluigi wrote:
Worst case scenario there are over 13250 functions exported from quickbms.exe to use :D



He uff that is a lot. BTW can you please share sample of compression use in c# ? Thx


Top
   
PostPosted: Sat Apr 28, 2018 8:47 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8307
Maybe I will provide some examples when 0.8.5 is out.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 323 posts ]  Go to page Previous 111 12 13 14 1517 Next

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