Archive for the ‘security’ Category

SSL Notes

Tuesday, June 15th, 2010

To generate a RSA key
openssl genrsa -out privkey.pem 2048

To generate a DSA key
openssl dsaparam -out dsaparam.pem 2048

Creating a certificate request
openssl req -new -key privkey.pem -out cert.csr

Creating a self-signed test certificate
openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095

Secuirty Tips and notes

Saturday, June 12th, 2010

commands to try

ps -aux , lsof, readelf,netstat

Look for recently modified files with find / -mtime -7 –print
Look for unusual SUID root files find / -uid 0 –perm -4000 –print

Look for files that do not belong to any existing user of the server with
find / -nouser -print

Tools to try

ebox,Tripwire,Nessus,Openvas,rkhunter,chkrootkit

To check the no machines up in a subne

Tuesday, March 30th, 2010

nmap -s P  subnet/netmask
ie
nmap -s P 192.168.X.X/XX