# passwd -l webserv
# usermod -s /bin/false webserv
# grep webserv /etc/shadow
# grep webserv /etc/passwd
# login webserv
Monday, September 17, 2007
enable syn_cookies
# echo 4096 > /proc/sys/net/ipv4/tcp_max_syn_backlog
# echo "net.ipv4.tcp_max_syn_backlog = 1" >> /etc/sysctl.conf
# echo 1 > /proc/sys/net/ipv4/tcp_syncookies
# echo "net.ipv4.tcp_syncookies =1 " >> /etc/sysctl.conf
# echo "net.ipv4.tcp_max_syn_backlog = 1" >> /etc/sysctl.conf
# echo 1 > /proc/sys/net/ipv4/tcp_syncookies
# echo "net.ipv4.tcp_syncookies =1 " >> /etc/sysctl.conf
Wednesday, September 12, 2007
useful security tools
- http://www.net-square.com/httprint/ - web server fingherprint tool
- logwatch - log file analysis daily
- swatch - simple logfile watcher
- portsentry
- http://osiris.shmoo.com/ - host intergrity tool
- ssldump
- www.securityfocus.com
- Penguin Sleuth Kit(www.linux-forensics.com)
- F.I.R.E (Forensic and Incident Response Environment) http://fire.dmzs.com
- BSD fans, use Snarl Bootal Forensics CD http://snarl.eecue.com/
- shred -n 3 -vz filename (-u)
if you don't specify -n 3, it will overwrite 25 times by default.
In most cases, when you shredding a file, you would also use -u option to tell shred to truncate the delete the file after overwriting it.
- shred -n 3 -vz /dev/hda
- Darik's Boot and Nuke http://dban.sf.net
Monday, September 10, 2007
How to setup Nessus 3 under CentOS 5
- download Nessus server and command line tool 'nessus', it should be binary rpm package. After you registered, it will provide a link to download.
- For running a GUI client, you need to download NessusClient (a GUI client for Linux/Windows Nessusd), it's rpm package too
- Automatic plug-in update
- run the following command to check whether you registered or not
You should obtain the following output:
nessus-fetch is properly configured to receive a direct feed or
nessus-fetch is properly configured to receive a registered feed
2. after registeration, you should receive activation code for the Nessus plugin feed through email, follow the instruction in email to activate your installation, you can register online or offline
3. use the following command to auto update plugin
/opt/nessus/sbin/nessus-update-plugins -v
4. make sure option 'auto_update' is set to yes in /opt/nessus/etc/nessus/nessusd.conf (this is the default)
- generate SSL certification
# ./nessus-mkcert
answer questions to generate SSL keys
# ./nessus-adduser
- start up NessesClient
# ./NessusClient
note: edit server to specify the username and password you typed in above 'nessus-adduser' command.
- command line mode
# ./nessus -q -T html localhost 1241 nessus nessus /tmp/target /tmp/result.html
Thursday, September 6, 2007
Snort related OSS tools
- snort - IDS
- snort inline (google search it - IPS)
- snortsam (IPS works with PF)
- snortalog (command line log generator)
- nessus (Linux and Windows, beat commercial ones)
- nikto - web server scanner
- acid/base (base is better)
- aanval (commercial one, but has one sensor free version)
- www.intertnetsecurityguru.com
- apache/php/pcre/mysql/adodb
- olinkmaster - autoupdate snort rules
- loghog (google search)
- swatch (google search)
Subscribe to:
Posts (Atom)