LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-03-2007, 06:01 AM   #1
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
how to print ModSecurity variables


Hello,
Does anyone know if there is a possibility to print ModSecurity variables?

I mean, I want to see the content of variables like REQUEST_FILENAME, SCRIPT_FILENAME, REQUEST_URI etc.

Some of them are a little bit confusing.

Thanks,
ddaas
 
Old 09-03-2007, 08:05 AM   #2
shezaf
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
printing ModSecurity variables

Either set the debug level to 9 and examine the debug log - any variable referenced in a rule would be there), or alternatively write an action that prints a variable using substitution:

SecAction "msg:'%{VAR_NAME}'"

For more support for ModSecurity, you might want look at the ModSecurity site at http://www.modsecurity.org or join the ModSecurity mailing list at https://lists.sourceforge.net/lists/...security-users

~ Ofer Shezaf
CTO, Breach Security
ModSecurity Core Rule Set project leader
 
Old 09-03-2007, 12:43 PM   #3
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Original Poster
Rep: Reputation: 30
Thanks
That was exactly what I was looking for. ModSecurity is a great tool.


ddaas
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ModSecurity + ajax shafey Linux - Server 0 05-29-2007 04:19 PM
ModSecurity 2 issue JediKnight2 Linux - Server 1 03-10-2007 10:11 AM
modsecurity error on Apache2 avallach Linux - Server 3 02-25-2007 12:31 PM
ModSecurity SecFilterRemove gabsik Linux - Security 2 12-28-2006 02:03 AM
Understanding an access log and what modsecurity did JediKnight2 Linux - Security 1 02-15-2006 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration