3
Oct

openwebmail

   Posted by: admin   in Mẹo vặt của hiếu râu

perl suid

perl -MCPAN -e shell

>install MIME::Base64

openwebmail-tool.pl –init

openwebmail.conf

domainnames             auto
auth_module             auth_unix.pl
mailspooldir            /var/mail
ow_cgidir               /home/www/…/cgi-bin/openwebmail
ow_cgiurl               /cgi-bin/openwebmail
ow_htmldir              /home/www/…/openwebmail
ow_htmlurl              /openwebmail
logfile                 /var/log/openwebmail.log
virtusertable           /etc/mail/virtusertable
use_syshomedir          no
ow_usersdir             /home/opwm
login_fieldwidth        25
enable_changepwd        yes
default_timeoffset              +0700
default_style                   BoringGray
default_iconset                 Adjunct.Silver
dbm.conf
dbm_ext                 .db
dbmopen_ext             .db
dbmopen_haslock         yes
auth_unix.conf
passwdfile_plaintext    /etc/passwd
passwdfile_encrypted    /etc/shadow
passwdmkdb              none
check_expire            no
check_nologin           no
check_shell             no
check_cobaltuser        no
change_smbpasswd        no

chmod 755 /home/opwm

vipw

abc:x:1000:100::/home/opwm/abc:/bin/bash

This entry was posted on Friday, October 3rd, 2008 at 11:12 am and is filed under Mẹo vặt của hiếu râu. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment