step:
1. yum install *sdl*
this will install DSL and devel-DSL and a lot of xorg-x11 rpm packages if you don't have X11 installed
2. modprobe video
3. install kernel devel rpm packages for compiling spca5xx
4. download spca5xx driver and spcaview package from docs.maxposs.com/docs/spca5xx
then do 'make; make install ' for them
5. modprobe spca5xx
6. ssh -X jephe.dyndns.org
xterm
spcaview (default device is /dev/video0)
7. install libjpeg-devel* using yum
8. download motion tar file from http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
then compile it
9. cd /usr/local/share/doc/motion-3.2.8/examples
cp /usr/local/share/doc/motion-3.2.8/examples/motion.init-RH to /etc/init.d/motion
chkconfig motion on
cd /usr/local/etc/
cp /usr/local/etc/motion-dist.conf to /usr/local/etc/motion.conf
vi /usr/local/etc/motion.conf to change
webcam_quality 300
webcam_localhost off
control_localhost off
10. service motion restart
11. point your firefox to http://192.168.100.150:8081/
Thursday, October 25, 2007
Tuesday, October 23, 2007
afick and chkrootkit
1. define alias in configuration file which is linux.conf
2. running fick
#afick -c linux.conf -i
#afick -c linux.conf -k
#crontab -e
#afick -c linux.conf -u
0 1 * * * rot /path/to/afick.cron
3. http://www.chkrootkit.org/
2. running fick
#afick -c linux.conf -i
#afick -c linux.conf -k
#crontab -e
#afick -c linux.conf -u
0 1 * * * rot /path/to/afick.cron
3. http://www.chkrootkit.org/
Monday, September 17, 2007
lockdown an account
# passwd -l webserv
# usermod -s /bin/false webserv
# grep webserv /etc/shadow
# grep webserv /etc/passwd
# login webserv
# usermod -s /bin/false webserv
# grep webserv /etc/shadow
# grep webserv /etc/passwd
# login webserv
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)