Sponsored Content
Full Discussion: SQL Injection Detection
Top Forums Shell Programming and Scripting SQL Injection Detection Post 302906209 by koutroul on Wednesday 18th of June 2014 05:25:41 AM
Old 06-18-2014
SQL Injection Detection

I want to grep/awk /var/log/httpd/mysite-access_log.log and check if 2 words from the following appear in a single line:

benchmark
union
information_schema
drop
truncate
group_concat
into
file
case
hex
lpad
group
order
having
insert
union
select
from
where
drop
delete
truncate

If 2 of these appear in a single line then I want the line to be listed.

Thanks
 
oldlog2new(8)						      System Manager's Manual						     oldlog2new(8)

NAME
oldlog2new - Convert an NCSA httpd 1.1 access_log file to CLF access_log SYNOPSIS
oldlog2new [ -hez ] [ -f logfile ] [ -s srmfile ] DESCRIPTION
Convert an NCSA httpd 1.1 access_log file to CLF access_log OPTIONS
Display Options: -h Help -- just display this message and quit. -e Display all invalid log entries on STDERR. (default is to ignore them) Input Options: -f Read from the following access_log file instead of the default. -z Use zcat to uncompress the log file while reading [requires -f]. -s Get the server directives from the following srm.conf file. SEE ALSO
crontab(1), httpd(1m), perl(1), wwwstat(1), splitlog(1), monthly(8), oldlog2new(8) More info and the latest version of oldlog2new can be obtained from http://www.ics.uci.edu/pub/websoft/wwwstat/ ftp://www.ics.uci.edu/pub/websoft/wwwstat/ If you have any suggestions, bug reports, fixes, or enhancements, please join the <wwwstat-users@ics.uci.edu> mailing list by sending e- mail with "subscribe" in the subject of the message to the request address <wwwstat-users-request@ics.uci.edu>. The list is archived at the above address. 18 November 2004 oldlog2new(8)
All times are GMT -4. The time now is 08:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy