Parse success, python ctypes struct to library connected
This commit is contained in:
36
Readme.md
36
Readme.md
@@ -1,11 +1,39 @@
|
||||
# Infidel's iptables log parser
|
||||
# Iptables Log parser
|
||||
|
||||
## Codes
|
||||
## How To
|
||||
|
||||
### Build
|
||||
|
||||
```c=
|
||||
mkdir lib
|
||||
#Compile the library
|
||||
make parse_lib.so
|
||||
```
|
||||
|
||||
### Execute
|
||||
|
||||
```bash=
|
||||
./wrapper.py
|
||||
|
||||
```
|
||||
|
||||
## Structure
|
||||
|
||||
### wrapper.py
|
||||
|
||||
Reads, iptables.log and calls the c `parser_lib.so`. Feed the parser library with lines from iptables log.
|
||||
Reads, iptables.log and calls the `lib/parser_lib.so`. Feed the parser library with lines from iptables log.
|
||||
|
||||
### parser_lib.so
|
||||
### lib/parser_lib.so
|
||||
|
||||
Process the sed like operation on the line by line feeded by `wrapper.py`.
|
||||
|
||||
Current parsed values are :
|
||||
|
||||
- Source IP
|
||||
- Destination IP
|
||||
- Packet Length
|
||||
- Interface IN
|
||||
- Interface OUT
|
||||
- Protocol
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user