----------------------------------------------------------------------------------
@MSGID: <20230831114951.16@kylheku.com> 591a3d9a
@REPLY: 1@dont-email.me> 8a85e45b
@REPLYADDR Kaz Kylheku <864-117-4973@kylheku.com>
@REPLYTO 2:5075/128 Kaz Kylheku
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: <20230831114951.16@kylheku.com>
@RFC-References: 1@dont-email.me>
@TZUTC: -0000
@PID: slrn/pre1.0.4-9 (Linux)
@TID: FIDOGATE-5.12-ge4e8b94
On 2023-08-31, Janis Papanagnou <
janis_papanagnou+ng@hotmail.com> wrote:
> Before I continue working on my hacked sample script I`d be interested
> to know whether such a tool with similar functionality already exists
> [in the free Linux world]; I would think this is a common task so that
> some usable tool certainly should exists but my own cursory search did
> not lead anywhere. So any hints are welcome.
The file utility and /etc/magic and all has a langauge for inspecting
fields in binaries and reporting. Usually this is compiled in some
way nowadays, so you don`t find the source in /etc/magic; I`ve
not looked into that in depth.
Scripting languages have pack/unpack langauges based on brief, usually
single-character codes, inspired by Perl.
FFI capabilities in languages can be used for dealing with binary
data: instead of a pack notation in a string you declare structs
with typed and named fields.
--
TXR Programming Language:
http://nongnu.org/txr
Cygnal: Cygwin Native Application Library:
http://kylheku.com/cygnal
Mastodon: @
Kazinator@mstdn.ca
--- slrn/pre1.0.4-9 (Linux)
* Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441