Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 15:24

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 
Author Message
 Post subject: looking for some tools
PostPosted: 03 Apr 2010 20:12 

Joined: 09 Mar 2010 23:13
Posts: 40
Hey guys and Luigi. I'm looking for tool with possibilty to scan and unpack (like offzip) some archives like .arc, .lzma, pkwares archives and other "hard" archives.

Is this tool.... exist ?


And my second request. I'm looking for tool, which can scan some files pack and find only ASCII (text) files. Not binary


Top
 Profile  
 
 
 Post subject: Re: looking for some tools
PostPosted: 03 Apr 2010 20:19 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
http://gnuwin32.sourceforge.net/packages/arc.htm < first thing that came up in google, have you even tried to google ?

i think that winrar can extract all of them, not sure, but you should try first.
if you do not get option "extract", then it doesn't mean you can't do it, simply try opening the file with winrar. open winrar first and inside of winrar select "open file" or something like that.


Quote:
I'm looking for tool, which can scan some files pack and find only ASCII (text) files. Not binary

huh ??? not sure what you want, for example if you have written text file in a big archive, you want to scan it and find it, instead of like installers and .exe files ? or you mean that if file extensions are all .exe then find the one that contains text not just data ?


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 03 Apr 2010 20:59 

Joined: 09 Mar 2010 23:13
Posts: 40
I'm looked for google already, surely. Thx for link and winrar advice, I'l try it. But I mean not only "clean" archives which u can simply mark and unpack. Some of them can be inside other files. Well, something like that

about ASCII: I mean files with any extensions. Some of them are with chaotic data and some are normal text files (ASCII/ANSI char.). That's why I'm looking for "tool".


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 03 Apr 2010 21:33 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
for the first question the answer is that it's not easily possible to see if a random block of data contains a certain compressed data for various reasons.
offzip can do that job because the zlib data (-z 15) has an initial header and the code is enough well written to guess when there is one or more bytes wrong which is the same as for the deflate data (-z -15) except that it doesn't have the initial 2 bytes header and that's the reason why you get tons of false positives when you scan a file using this option.

instead for the second tool I have something similar although for some technical reasons it's not possible to guess at 100% if a random sequence of bytes in a file or an executable is or not a text string.
anyway:

http://aluigi.org/mytoolz.htm#exestringz

if you need a quick and dumb list of strings inside a file use:
Code:
exestringz -q 1 input.exe output.txt
that one is used for scanning executable files while if you want to scan a binary/raw file add the -b option:
Code:
exestringz -b -q 1 input.dat output.txt


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 04 Apr 2010 08:16 

Joined: 09 Mar 2010 23:13
Posts: 40
thx, but I knew about exestringz

Well, for example. I have a folder with 5 files. All with .dat extension. 3 of them are binary with unreadable data and 2 are great with... text info (like scripts, for example). So I want to scan a FOLDER for finds those files. Both

is it possible ?


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 04 Apr 2010 11:28 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
for scanning folders you need to use the usual find tool:
http://forum.xentax.com/viewtopic.php?p=29970#p29970

the only problem in this case is that you will overwrite the output file all the times (exestringz will ask to do it) so when you will launch the tool with "find" use the following trick as example (in this example I scan all the dlls so adapt it to your needs):
Code:
find -iname "*.dll" -exec exestringz -q 1 "{}" - ; > z:\dump.txt
you will notice that now there is an empty line after each string, that's caused by the usage or \r\n in the output of exestringz and its interpretation by the windows console so you must remove them manually.

there is also another alternative that in my opinion is better:
Code:
find -iname "*.dll" -exec exestringz -q 1 "{}" "{}"_dump.txt ;
so will be created a file in the same folder with the same name of the original file plus a _dump.txt... much better


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 04 Apr 2010 13:23 

Joined: 09 Mar 2010 23:13
Posts: 40
thx so much ! It's not exactly what I'm looking for but much better than I have before


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 04 Apr 2010 19:05 

Joined: 09 Mar 2010 23:13
Posts: 40
question again. I'm not so good in this "findtool" =(

Can I scan the folder with searching for .wav's files ? I mean scan folder with findings the strings (or hex byte) into files (string "RIFF" for example). Or with other strings/bytes


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 04 Apr 2010 19:39 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
I would simply open ALL the files in the folder using notepad++ and then CTRL+F (search), type in .wav and "search in all open documents"
if you want to find .wav extension...well windows will do it for you.

same with the "find the text files". i would open them all in notepad++ and just go thru them quickly, because there is no such tool i belive. it may always make mistakes. like some binary data might be in ascii too, but not readable, just 90f9dsacjjdiofasjkljfklsd which makes no sense, but it would be considered as text file.
as about size of the file/s, so called readable files are never too big. so first "view - list" and sort by size, then open all smaller files with notepad++.

this saves you time and effort to search and test out tools. at least this is what ive done before if i need to check for so called "text" files within game folders.


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 04 Apr 2010 20:15 

Joined: 09 Mar 2010 23:13
Posts: 40
well, it's obvious. But there is a problem - there are about 1500 files. And open every of them and looked for RIFF string is... tiring

that's why I'm looking for tools. If they exists


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 04 Apr 2010 22:14 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
RIFF?
you need a ripper for dumping the wav files contained inside a file
then you don't need to check manually 1500 files, that's why exists the "grep" tool for this job:
grep -rs RIFF folder
or
grep -rs -l RIFF folder


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 05 Apr 2010 05:58 

Joined: 09 Mar 2010 23:13
Posts: 40
yeeeap, grep exactly what I'm need. Thank you again


Top
 Profile  
 
 Post subject: Re: looking for some tools
PostPosted: 06 Apr 2010 00:20 

Joined: 24 Sep 2007 02:12
Posts: 1114
Location: http://sethioz.co.uk
i meant for other files, not for audio. because audio files are usually .wav, .mp3..etc, so no fuss.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 

All times are UTC [ DST ]


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:
cron