mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-08-06 22:32:54 +02:00
doc formatting
This commit is contained in:
@ -196,7 +196,7 @@ option.
|
|||||||
| ` --iptables` | `iptables` command parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/iptables) |
|
| ` --iptables` | `iptables` command parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/iptables) |
|
||||||
| ` --iso-datetime` | ISO 8601 Datetime string parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/iso_datetime) |
|
| ` --iso-datetime` | ISO 8601 Datetime string parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/iso_datetime) |
|
||||||
| ` --iw-scan` | `iw dev [device] scan` command parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/iw_scan) |
|
| ` --iw-scan` | `iw dev [device] scan` command parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/iw_scan) |
|
||||||
| ` --jar-manifest` | MANIFEST.MF file parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/jar_manifest) |
|
| ` --jar-manifest` | Java MANIFEST.MF file parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/jar_manifest) |
|
||||||
| ` --jobs` | `jobs` command parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/jobs) |
|
| ` --jobs` | `jobs` command parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/jobs) |
|
||||||
| ` --jwt` | JWT string parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/jwt) |
|
| ` --jwt` | JWT string parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/jwt) |
|
||||||
| ` --kv` | Key/Value file parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/kv) |
|
| ` --kv` | Key/Value file parser | [details](https://kellyjonbrazil.github.io/jc/docs/parsers/kv) |
|
||||||
|
@ -143,7 +143,7 @@ _jc() {
|
|||||||
'--iptables:`iptables` command parser'
|
'--iptables:`iptables` command parser'
|
||||||
'--iso-datetime:ISO 8601 Datetime string parser'
|
'--iso-datetime:ISO 8601 Datetime string parser'
|
||||||
'--iw-scan:`iw dev [device] scan` command parser'
|
'--iw-scan:`iw dev [device] scan` command parser'
|
||||||
'--jar-manifest:MANIFEST.MF file parser'
|
'--jar-manifest:Java MANIFEST.MF file parser'
|
||||||
'--jobs:`jobs` command parser'
|
'--jobs:`jobs` command parser'
|
||||||
'--jwt:JWT string parser'
|
'--jwt:JWT string parser'
|
||||||
'--kv:Key/Value file parser'
|
'--kv:Key/Value file parser'
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# jc.parsers.jar\_manifest
|
# jc.parsers.jar\_manifest
|
||||||
|
|
||||||
jc - JSON Convert `MANIFEST.MF` file parser
|
jc - JSON Convert Java `MANIFEST.MF` file parser
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
|
@ -175,12 +175,15 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
|
|||||||
"""
|
"""
|
||||||
# fix escape chars specified in syslog RFC 5424 and CEF spec
|
# fix escape chars specified in syslog RFC 5424 and CEF spec
|
||||||
# https://www.rfc-editor.org/rfc/rfc5424.html#section-6
|
# https://www.rfc-editor.org/rfc/rfc5424.html#section-6
|
||||||
|
# https://www.microfocus.com/documentation/arcsight/arcsight-smartconnectors-8.3/cef-implementation-standard/Content/CEF/Chapter%201%20What%20is%20CEF.htm?tocpath=_____2#_Toc494359738
|
||||||
escape_map = {
|
escape_map = {
|
||||||
r'\\': '\\',
|
r'\\': '\\',
|
||||||
r'\"': r'"',
|
r'\"': '"',
|
||||||
r'\]': r']',
|
r'\]': ']',
|
||||||
r'\|': r'|',
|
r'\|': '|',
|
||||||
r'\=': r'=',
|
r'\=': '=',
|
||||||
|
r'\%': '%',
|
||||||
|
r'\#': '#',
|
||||||
r'\n': '\n',
|
r'\n': '\n',
|
||||||
r'\r': '\r'
|
r'\r': '\r'
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
"""jc - JSON Convert `MANIFEST.MF` file parser
|
"""jc - JSON Convert Java `MANIFEST.MF` file parser
|
||||||
|
|
||||||
Usage (cli):
|
Usage (cli):
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ import re
|
|||||||
class info():
|
class info():
|
||||||
"""Provides parser metadata (version, author, etc.)"""
|
"""Provides parser metadata (version, author, etc.)"""
|
||||||
version = '0.01'
|
version = '0.01'
|
||||||
description = 'MANIFEST.MF file parser'
|
description = 'Java MANIFEST.MF file parser'
|
||||||
author = 'Matt J'
|
author = 'Matt J'
|
||||||
author_email = 'https://github.com/listuser'
|
author_email = 'https://github.com/listuser'
|
||||||
compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd']
|
compatible = ['linux', 'darwin', 'cygwin', 'win32', 'aix', 'freebsd']
|
||||||
|
Reference in New Issue
Block a user