« MICROSOFT SECURITY UPDATES ALERT April 13, 2004 - Windows Security Updates for April 2004 |
Main
| Total Commander 6.03 Final - TC 我的最爱 (原wincmd - Windows Commander) »
April 15, 2004
my attemp about 2 mail and 1 bbs
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/04/15/000437.html
qmail and another
bbsmail (perl script) mailgate.pl (perl script) mail2bbs (exe binary with suid) -rwsr-x--- 1 bbs bbs 465274 Aug 28 2003 mail2bbs -rwxr-x--- 1 bbs bbs 2763 Apr 14 18:34 mailgate.pl -rwxr-x--- 1 bbs bbs 2039 Apr 14 20:17 bbsmail
port 25 by another smtpd deliver by an exe named by local
what i can do is write a perl script 'local' replace the orig one
judge the the deliver target to the 'another' email system or bbs? virus spam log ...
if ( $ARGV[0] ne "" ) { $file_var=$ARGV[0]; } else { print "usage: local.pl 237453115.32606\n"; exit; }
...
($file_name,$file_ext) = split(/\./,$file_var);
$dir_name=$file_name%32; if (length($dir_name) == 1) { $dir_name="0".$dir_name; }
-----> but defeated by it maybe coz of permission
so another script is coming
... `su - bbs -c "/home/bbs/bin/bbsmail $to_user /$another_mail_dir/$dir_name/$file_var"`;
unlink ... cat /dev/null > $the_to_do_list_file
|
|
Posted by windtear at April 15, 2004 12:34 AM