encoded files

dmitry

New Member
Hi!

How can i determine : is p-file encoded or not?
(signature , etc... ?)
I need this to block two-times p-file encoding.

/dmi
 

dmitry

New Member
Hi!

Originally posted by Gabor Topor

Under UNIX you may use 'file' command. It returns different values for ascii and xcoded files.

Ok, i tried to run 'file' command. But how i can tune it ?
Some of our codes contains cyrillic symbols ;) and tune says, that
this file is data file.

In my case all encoded files begins with 11h or 13h...

Regards,
DMItry
 

Chris Kelleher

Administrator
Staff member
If you add the lines below to the end of your /etc/magic file, then you can use the file command to determine if a file contains x-code.

Code:
# The next 5 lines should be added to the end of the /etc/magic file
0 char 0x11 Progress X-Code
0 char 0x13 Progress V8 X-Code
0 long 0x56ced309 Progress R-Code
0 long 0x09d3ce56 Progress R-Code byte-swapped
 
Top