From 46acf36997a5171c882fc355fd809ce615dd609b Mon Sep 17 00:00:00 2001 From: Ryan Wagoner Date: Fri, 1 Dec 2006 20:53:12 +0000 Subject: need to re-add the binaries as -kb --- packages/imspector/imspector.badwords | 86 +++++++++++++++++++++++++++++++++++ packages/imspector/imspector.inc | 30 ++++++++---- packages/imspector/imspector.xml | 50 ++++++++++++++++++++ 3 files changed, 158 insertions(+), 8 deletions(-) create mode 100644 packages/imspector/imspector.badwords (limited to 'packages/imspector') diff --git a/packages/imspector/imspector.badwords b/packages/imspector/imspector.badwords new file mode 100644 index 00000000..fd5bcd7a --- /dev/null +++ b/packages/imspector/imspector.badwords @@ -0,0 +1,86 @@ +twat +son-of-a-bitch +shyty +shytty +shyte +shyt +shitz +shity +shitty +shitting +shitter +shitted +shiting +shited +shit +sh1tz +sh1tter +sh1ts +sh1ter +sh1t +sh!t +schlong +poonani +polak +polack +polac +piss off +piss +phuq +phuks +phukking +phukker +phukked +phuking +phuker +phuked +phuk +phuck +phuc +kuntz +kunts +kunt +fuks +fukk +fukin +fuker +fuken +fukah +fuk +fudge packer +fucks +fuckme +fucking +fuckin +fucker +fucked +fuck +cunt +cock-suck +cocksuck +cock-head +cockhead +cntz +cnts +bastard +bassterds +azzhole +asswipe +assholz +asshole +assh0le +assface +wanker +wank +bollock +nobjockey +feck +fack +beeatch +mo fo +fcuk +shize +clagnuts +dickhead +dickbrain +kahnt diff --git a/packages/imspector/imspector.inc b/packages/imspector/imspector.inc index 15aacbdf..9b81a1a4 100644 --- a/packages/imspector/imspector.inc +++ b/packages/imspector/imspector.inc @@ -49,12 +49,6 @@ } } - function imspector_remove_rules() { - $anchor = "imspector"; - exec("/sbin/pfctl -a " . $anchor . " -Fr"); - exec("/sbin/pfctl -a " . $anchor . " -Fn"); - } - function before_form_imspector($pkg) { global $config; @@ -73,7 +67,9 @@ imspector_notice("Syncing package"); - imspector_remove_rules(); + /* remove existing rules */ + exec("/sbin/pfctl -a imspector -Fr"); + exec("/sbin/pfctl -a imspector -Fn"); conf_mount_rw(); config_lock(); @@ -114,8 +110,26 @@ exec("echo \"{$pf_rules}\" | /sbin/pfctl -a imspector -f -"); $configtext = "plugin_dir=/usr/local/lib/imspector\n"; - if(imspector_config("log_file")) + + if(imspector_config("proto_msn")) $configtext .= "msn_protocol=on\n"; + if(imspector_config("proto_icqaim")) $configtext .= "icq_protocol=on\n"; + if(imspector_config("proto_yahoo")) $configtext .= "yahoo_protocol=on\n"; + if(imspector_config("proto_irc")) $configtext .= "irc_protocol=on\n"; + + if(imspector_config("log_file")) $configtext .= "file_logging_dir=/var/log/imspector\n"; + + if(imspector_config("filter_badwords")) + $configtext .= "badwords_filename=/usr/local/etc/imspector.badwords\n"; + + if(imspector_config("log_mysql")) + { + $configtext .= "mysql_server=".imspector_config("mysql_server")."\n"; + $configtext .= "mysql_database=".imspector_config("mysql_database")."\n"; + $configtext .= "mysql_username=".imspector_config("mysql_username")."\n"; + $configtext .= "mysql_password=".imspector_config("mysql_password")."\n"; + } + write_imspector_config($configfile,$configtext); $stop = <<0755 http://www.pfsense.com/packages/config/imspector/sbin/imspector + + /usr/local/etc/ + 0755 + http://www.pfsense.com/packages/config/imspector/imspector.badwords + /usr/local/lib/ 0755 @@ -57,6 +62,21 @@ 0755 http://www.pfsense.com/packages/config/imspector/lib/yahooprotocolplugin.so + + /usr/local/lib/imspector + 0755 + http://www.pfsense.com/packages/config/imspector/lib/badwordscontentplugin.so + + + /usr/local/lib/imspector + 0755 + http://www.pfsense.com/packages/config/imspector/lib/mysqlloggingplugin.so + + + /usr/local/lib/imspector + 0755 + http://www.pfsense.com/packages/config/imspector/lib/sqliteloggingplugin.so + /usr/lib 0755 @@ -111,10 +131,40 @@ proto_irc checkbox + + Enable filtering of bad words + filter_badwords + checkbox + Enable file logging log_file checkbox + + + Enable MySQL logging + log_mysql + checkbox + + + MySQL Server + mysql_server + input + + + MySQL Database + mysql_database + input + + + MySQL Username + mysql_username + input + + + MySQL Password + mysql_password + password -- cgit v1.2.3