1
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
CREATE TABLE `messages` (
`id` int(11) NOT NULL auto_increment,
`timestamp` int(11) NOT NULL default '0',
`protocolname` text NOT NULL,
`type` int(11) NOT NULL default '0',
`localid` text NOT NULL,
`remoteid` text NOT NULL,
`eventdata` blob NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1929 DEFAULT CHARSET=utf8;
a.Code maturity level options
[*] Prompt for development and/or incomplete code/drivers
b.Loadable module support
[*] Enable loadable module support
[*] Set version information on all module symbols
[*] Kernel module loader
c. Networking options
[*] Network packet filtering (replaces ipchains)
[*] Network packet filtering debugging
IP: Netfilter Configuration
<*> 802.1d Ethernet Bridging
#!/bin/bash
echo "1" > /proc/sys/net/ipv4/ip_forward
BRCTL="/usr/local/brctl/sbin/brctl"
$BRCTL addbr br0
$BRCTL stp br0 off
$BRCTL addif br0 eth0
$BRCTL addif br0 eth1
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
ifconfig br0 192.168.1.252 netmask 255.255.255.0 # 註一
route add -net 0.0.0.0 gw 192.168.1.252 netmask 0.0.0.0 br0 # 註二
$iptables -t mangle -A POSTROUTING -p tcp -d 1.2.3.4 -j MARK --set-mark 1004
$iptables -t mangle -A POSTROUTING -p tcp -s 1.2.3.4 -j MARK --set-mark 2004
$ vi cbq-1002.root.eth1
DEVICE=eth1,100Mbit,10Mbit
RATE=2048Kbps 定義速率
WEIGHT=200Kbit 比重
PRIO=4 優先順序
ISOLATED=no =yes不允許子rule繼承頻寬; =no是允許
BOUNDED=no =yes頻寬固定且不借用上層父頻寬; =no就是會借用
LEAF=sfq 當BOUNDED=no時需指定
$ vi cbq-1004.www.eth1
EVICE=eth1,100Mbit,10Mbit
RATE=128Kbps
WEIGHT=10Kbit
PRIO=5
PARENT=1002 父頻寬定義檔
BOUNDED=no
LEAF=sfq
MARK=1004
$ vi cbq-2002.root.eth0
DEVICE=eth0,100Mbit,10Mbit
RATE=2048Kbps
WEIGHT=200Kbit
PRIO=4
ISOLATED=no
BOUNDED=no
LEAF=sfq
$ vi cbq-2004.www.eth0
EVICE=eth0,100Mbit,10Mbit
RATE=128Kbps
WEIGHT=10Kbit
PRIO=5
PARENT=2002
BOUNDED=no
LEAF=sfq
MARK=2004
FromOrTo: a@sapow.idv.tw yes forward b@sapow.idv.tw
FromOrTo: b@sapow.idv.tw yes forward a@sapow.idv.tw
FromOrTo: a@sapow.idv.tw yes forward b@sapow.idv.tw c@sapow.idv.tw d@sandy.idv.tw
FromOrTo: a@sapow.idv.tw yes forward /var/spool/MailScanner/archive/a_user_backup.mbx /var/spool/MailScanner/archive/a_user_backup.mbx b@sapow.idv.tw sapow888@yahoo.com.tw
FromOrTo: a@sapow.idv.tw yes forward /var/spool/MailScanner/archive/ b@sapow.idv.tw sapow888@yahoo.com.tw /var/spool/MailScanner/archive/a_user_backup.mbx
<?
$ldaphost="192.168.0.85";
$ldapport="389";
$ldapbindrdn="cn=sapow,dc=abc,dc=com.tw";
$ldapbindpassword="sapowpassword";
$ldapbasedn="ou=people,dc=abc,dc=com.tw";
$filter="(|(uid=*)(mail=*))";
$ldapconn = ldap_connect($ldaphost, $ldapport) or die("Could not connect to $ldaphost");
if ($ldapconn) {
// binding to ldap server
$ldapbind = ldap_bind($ldapconn, $ldapbindrdn, $ldappassword);
// verify binding
if ($ldapbind) {
//echo "LDAP bind successful...";
} else {
echo "LDAP bind failed...";
}
}
$just = array("cn", "mail", "title");
$sr=ldap_search($ldapconn, $ldapbasedn, $filter, $just);
$info = ldap_get_entries($ldapconn, $sr);
for ($i=0; $i<$info["count"]; $i++) {
echo $info[$i]["cn"][0] . "@@@" . $info[$i]["mail"][0] . "@@@" . $info[$i]["title"][0] ."<br>";
}
?>
#!/bin/bash
wget http://www.abc.com.tw/addressbook.php &&
iconv -f utf8 -t big5 addressbook.php > /var/www/cgi-bin/openwebmail/etc/address.book &&
rm -rf addressbook.php
1 0-23/2 * * * root /bin/bash /root/mkaddressbook.sh
無法變更主旨的
Subject:=?big5?Q?
無法變更主旨的(雙行)
Subject:=?Big5?B?
=?Big5?B?
無法變更主旨的(換行)
Subject:
=?Big5?B?
無法變更主旨的(無主旨,空白)
Subject:
[root@sapow root]# time /usr/local/clamav/bin/clamscan /tmp/eicar.com
/tmp/eicar.com: Eicar-Test-Signature FOUND
----------- SCAN SUMMARY -----------
Known viruses: 21260
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
I/O buffer size: 131072 bytes
Time: 2.571 sec (0 m 2 s)
real 0m2.660s
user 0m2.330s
sys 0m0.160s
[root@sapow root]# time scan_file /tmp/clamd /tmp/eicar.com
FILE NOT INFECTED: [/tmp/eicar.com]
real 0m0.039s
user 0m0.000s
sys 0m0.000s
[root@sapow root]# time /usr/local/sophos/bin/sweep /tmp/eicar.com
SWEEP virus detection utility
Version 3.80, April 2004 [Linux/Intel]
Includes detection for 89296 viruses, trojans and worms
Copyright (c) 1989,2004 Sophos Plc, www.sophos.com
System time 10:36:04, System date 27 April 2004
Warning: SWEEP messages loaded from default locale en_GB
IDE directory is: /usr/local/sophos/sav
Using IDE file netsky-v.ide
Using IDE file sdbot-hl.ide
Using IDE file ldpinchl.ide
Using IDE file agobotfz.ide
Using IDE file webber-h.ide
Using IDE file agobotga.ide
Using IDE file sdbot-cm.ide
Using IDE file netspdam.ide
Using IDE file netsky-u.ide
Using IDE file bagle-x.ide
Using IDE file dloadern.ide
Using IDE file sdbot-hb.ide
Using IDE file bbear-e.ide
Using IDE file agobotfv.ide
Using IDE file netsky-t.ide
Using IDE file lovgatev.ide
Using IDE file small-ag.ide
Using IDE file nackbotd.ide
Using IDE file netsky-s.ide
Using IDE file sober-f.ide
Using IDE file adtoda-a.ide
Using IDE file netsky-p.ide
Using IDE file jdownl-a.ide
Using IDE file rybot-a.ide
Using IDE file nachi-e.ide
Using IDE file netsky-r.ide
Using IDE file agobotfj.ide
Using IDE file agobotfh.ide
Using IDE file bagle-v.ide
Using IDE file netsky-q.ide
Using IDE file lovgatez.ide
Using IDE file sober-e.ide
Using IDE file ranckb-a.ide
Using IDE file bagle-u.ide
Using IDE file nyxem-a.ide
Using IDE file lovgat-x.ide
Using IDE file agobotex.ide
Using IDE file agobotef.ide
Using IDE file sdbot-gr.ide
Using IDE file bagle-q.ide
Using IDE file baglehtm.ide
Using IDE file badparty.ide
Using IDE file agobotfg.ide
Using IDE file bagle-r.ide
Using IDE file agoboted.ide
Using IDE file prorat-d.ide
Using IDE file proto-f.ide
Using IDE file bagle-n.ide
Using IDE file bdoorcck.ide
Using IDE file baglezip.ide
Using IDE file bagle-o.ide
Using IDE file bagle-j.ide
Using IDE file ldpinchh.ide
Quick Sweeping
>>> Virus 'EICAR-AV-Test' found in file /tmp/eicar.com
1 file swept in 5 seconds.
1 virus was discovered.
1 file out of 1 was infected.
Please send infected samples to Sophos for analysis.
For advice consult www.sophos.com, email support@sophos.com
or telephone +44 1235 559933
End of Sweep.
real 0m5.007s
user 0m4.760s
sys 0m0.220s
[root@sapow root]# time scan_file /var/run/sophie /tmp/eicar.com
FILE INFECTED: [/tmp/eicar.com] (VIRUS: EICAR-AV-Test)
real 0m0.021s
user 0m0.000s
sys 0m0.000s
[root@sapow root]#