modsecurity-grep's People
modsecurity-grep's Issues
Support http verbs without http version
e.g.
"GET /"
instead of
"GET / HTTP/1.1"
Display matching data
with e.g. different-colored background
Problem with --show-time
Traceback (most recent call last):
File "./greplog.py", line 690, in
main(sys.argv[1:])
File "./greplog.py", line 681, in main
for x in greplog.parse_line(line.strip(), fileinput.filelineno()):
File "./greplog.py", line 652, in parse_line
for x in self.message.handle():
File "./greplog.py", line 519, in handle
yield self.start()
File "./greplog.py", line 502, in start
timestamp=self.parts[LogParts.STARTED].format_timestamp() if self.args.show_timestamp else "",
File "./greplog.py", line 308, in format_timestamp
return '{date:s} {timestamp:s}'.format(date=self.date.strftime('%Y-%m-%d'),
AttributeError: 'NoneType' object has no attribute 'strftime'
Show IP addresses
Show filename only once per file
Optionally show filenames in output
Since the script supports grep:ing through multiple files, we should also display which file each log line originated from.
Search for parameter values
e.g. --with_parameter campaign_id=12345
Pager support
Piping through less is ugly, since you'll get a KeyboardInterrupt exception if you want to quit midway through.
Look at e.g. https://pypi.python.org/pypi/pager or http://chase-seibert.github.io/blog/2012/10/31/python-fork-exec-vim-raw-input.html
Color output
Search for timestamps around the query
E.g
search for 09:45:22 +- 1min
gzip support
Search through gzipped files.
Add OPTION verb (and ignore)
--with-parameter name=value doesn't work
Options should use dash, not underscore
e.g. --with-headers, not --with_headers
Request header name-value search is broken
Returns headers where only name or value matches.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.