Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

Tuesday, January 15, 2013

Mod security sample configuration

on CentOS
sudo yum install mod_security


follow instruction here:
https://github.com/SpiderLabs/owasp-modsecurity-crs

copy modsecurity_crs_10_setup.conf.example and name as modsecurity_crs_10_setup.conf

add this to modsecurity_crs_10_setup.conf on top:
SecRuleEngine On


after install, edit
/etc/httpd/conf/conf.d/00.modsecurity.conf
add :
Include 
[path-to-crs]/modsecurity_crs_10_setup.conf
[path-to-crs]/base_rules/*.conf


Tuesday, October 4, 2011

Check system file changes from installed package

On redhat based system:

rpm --verify -all

On Debian based system:

dpkg -l \*|while read s n rest; do if [ "$s" == "ii" ]; then echo $n;
fi; done > ~/tmp.txt
for f in `cat ~/tmp.txt`; do debsums -s -a $f; done

Friday, April 29, 2011

security with nmap

if you are running a server, or curious about what services is running on your system,
you may use nmap to have a port scan on your machine,
and show you some good information about the machine runnning ports, machine o/s and service specific information such as netbios, file sharing server, web server and mail servers..

Quick start:
nmap -A -T4 [ip/domainname]

Tuesday, March 8, 2011

IE8 bypass self signed ssl

* Click on View certificates
* In the Certificate dialog, press Install Certificate
* In the Certificate Import Wizard, click Next
* On page 2 of the wizard, select Place all certificates in the following store and click Browse;
* In the Select Certificate Store dialog, select Trusted Root Certification Authorities, click OK

* In the wizard, click Next, click Finish
* If a security message pops up, choose Yes

Sunday, March 6, 2011

firefox bypass self signed ssl

Bypassing the warning

  1. On the warning page, click Or you can add an exception....
  2. Click Add Exception.... The Add Security Exception dialog will appear.
  3. Click Get Certificate.
  4. Read the text describing the problems with this site.
  5. Click Confirm Security Exception if you want to trust the site.