| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Unpacking insecure arcmail |
Hello Tommi!
13 Mar 2015 17:09, Tommi Koivula wrote to Benny Pedersen:
TK> On 13.3.2015 14:16, Benny Pedersen -> Tommi Koivula wrote:
TK>>> I repeat, how can I tell hpt to process arcmail bundles in insecure
TK>>> inbound?
BP>> ----- Unpack begins -----
BP>> Unpack "arc x $a $p'*.*' $f" 0 1a
BP>> Unpack "lha -eifw=$p $a $f" 2 2d6c68
BP>> Unpack "unrar e -y $a $p $f \* > /dev/null" 0 52617221
BP>> Unpack "unzip -joLqq $a -d $p $f" 0 504b0304
BP>> Unpack "unace e $a $p $f \* > /dev/null" 7 2A2A4143452A2A
BP>> ----- Unpack ends -----
BP>> dont know if that helps non linux users
TK> C'mon Benny, I'm sure you knew what I was talking about.
----- unpacker.sh begins -----
#!/bin/sh
#
# Scriptet der pakker echomail bundles ud
echo "Unpacking.."
function locate_exe() {
EXE=`whereis -b $1|cut -d ' ' -f 2`
}
cd $INBOUND
for i in `find -regextype posix-egrep -regex
"^.*\.(mo|tu|we|th|fr|sa|su)[0-9]$"|xargs`
do
FOUT=`file $i|cut -f 2 -d ' '`
case $FOUT in
"LHa")
locate_exe "lha"
$EXE x $i
;;
"Zip")
locate_exe "unzip"
$EXE -oj $i
;;
"ARJ")
locate_exe "arj"
$EXE e $i
;;
"RAR")
locate_exe "unrar"
$EXE $i
;;
esac
if [ $? == 0 ];
then
rm $i
fi
done
----- unpacker.sh ends -----
take care of to make it unpack in current dir where hpt toss inbound
insecure, do not use it for secure bundles unless inspirated to make that
work aswell :=)
Regards Benny
... there can only be one way of life, and it works :)
--- Msged/LNX 6.2.0 (Linux/4.9.3-gentoo (i686))
* Origin: openvpn on its way here (2:230/0)SEEN-BY: 3/50 103/705 154/10 203/0 227/51 230/0 35 38 150 240/1661 5832 SEEN-BY: 249/303 261/38 280/464 5003 292/854 310/31 423/120 633/267 280 SEEN-BY: 640/384 712/550 848 770/1 2320/100 5030/786 5075/35 @PATH: 230/0 280/464 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.