Sponsored Content
Full Discussion: SQL Injection Detection
Top Forums Shell Programming and Scripting SQL Injection Detection Post 302906220 by koutroul on Wednesday 18th of June 2014 06:38:35 AM
Old 06-18-2014
Not working.
the first:
-bash: syntax error near unexpected token `('

and the second does not return any of the dual word cases.

The patternfile contains:
benchmark
union
information_schema
drop
truncate
group_concat
into
case
hex
lpad
group
order
having
insert
union
select
from
where
delete
create
table


I want to list lines from /var/log/httpd/mysite-access_log.log

if the lines contain 2 or more of the words of patternfile:
sssss SElect xxxxx InTO
dsjdhshdj CREATE xxxx ss s ggggs TabLE
DElete sdsdssd from wjhdssd WHErE dffsdfsd
.....



 
HTTP_PARSE_MESSAGE(3)							 1						     HTTP_PARSE_MESSAGE(3)

http_parse_message - Parse HTTP messages

SYNOPSIS
object http_parse_message (string $message) DESCRIPTION
Parses the HTTP $message into a simple recursive object. PARAMETERS
o $message - string containing a single HTTP message or several consecutive HTTP messages RETURN VALUES
Returns a hierarchical object structure of the parsed messages. EXAMPLES
Example #1 Using http_parse_message(3) <?php define ('URL', 'http://www.example.com/'); print_r(http_parse_message(http_get(URL, array('redirect' => 3)))); ?> The above example will output something similar to: stdClass object ( [type] => 2 [httpVersion] => 1.1 [responseCode] => 200 [headers] => Array ( [Content-Length] => 3 [Server] => Apache ) [body] => Hi! [parentMessage] => stdClass object ( [type] => 2 [httpVersion] => 1.1 [responseCode] => 302 [headers] => Array ( [Content-Length] => 0 [Location] => ... ) [body] => [parentMessage] => ... ) ) SEE ALSO
http_parse_headers(3), the HttpMessage class. PHP Documentation Group HTTP_PARSE_MESSAGE(3)
All times are GMT -4. The time now is 03:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy