• hptconf unpack

    From Mindsurfer@21:3/119 to All on Friday, September 11, 2020 02:36:12
    Hey,

    i tried to add a new unpack line to hpt config, but it seems something is
    wrong with it as htp does not toss anymore as soon as i add the line to
    the config.

    unpack "unzip -j -Loqq $a $f -d $p" 0 504b0304
    unpack "arc eno $a $p'*.*'" 0 1a
    unpack "7z e -aoa $a -o $p" 0 9^@-lh

    7z line explained:
    "7z e (extract) -aoa (overwite files) $a (archive name) -o $p (extract to path)" 0 9^@-lh (when you find 9^@-lh at position 0 of a file)

    somebody using 7z for lha compressed files in hpt? i get Nodelists from Amiganet compressed with lha.

    Mindsurfer

    --- MagickaBBS v0.15alpha (Linux/armv7l)
    * Origin: FuNToPia telnet://funtopia.ddnss.eu:2023 (21:3/119)
  • From alterego@21:2/116 to Mindsurfer on Friday, September 11, 2020 13:45:36
    Re: hptconf unpack
    By: Mindsurfer to All on Fri Sep 11 2020 02:36 am

    Howdy,

    i tried to add a new unpack line to hpt config, but it seems something is wrong with it as htp does not toss anymore as soon as i add the line to the config.

    unpack "unzip -j -Loqq $a $f -d $p" 0 504b0304
    unpack "7z e -aoa $a -o $p" 0 9^@-lh

    I think you need to change the 9^@-lh into the two digit hex codes.

    eg: like unzip, its not looking for the text '504b0304', its looking for 0x50,0x4b...

    A hexdump to show...

    00000000 50 4b 03 04 14 00 00 00 08 00 0b 58 ed 50 fc d6 |PK.........X.P..| 00000010 12 5b 9b 00 00 00 be 00 00 00 0b 00 1c 00 46 49 |.[............FI| ...

    ...δεσ∩

    ... A face like a wedding cake left out in the rain..
    --- SBBSecho 3.11-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From Mindsurfer@21:3/119 to alterego on Friday, September 11, 2020 10:55:08
    unpack "7z e -aoa $a -o $p" 0 9^@-lh
    I think you need to change the 9^@-lh into the two digit hex codes.

    thats right. i thought it would expect just a string of characters but it expects hex values.

    Mindsurfer

    --- MagickaBBS v0.15alpha (Linux/armv7l)
    * Origin: FuNToPia telnet://funtopia.ddnss.eu:2023 (21:3/119)