Tool started from terminal with processing a syslog file with command:
usbrip events violations auth.json -f syslog
and after couple of seconds stop with errors:
[] Started at 2019-08-12 00:43:57
[00:43:57] [INFO] Reading "syslog"
Traceback (most recent call last):
File "/usr/local/bin/usbrip", line 10, in
sys.exit(main())
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/main.py", line 126, in main
uev = USBEvents(args.file)
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 93, in new
all_events = _parse_history(divided_history)
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 343, in _parse_history
for (date, action), logs in _sort_by_date(divided_history.items()):
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 434, in _sort_by_date
return sorted(unsorted_log, key=lambda i: MONTH_ENUM[i[0][0][:3]] + i[0][0][3:])
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 434, in
return sorted(unsorted_log, key=lambda i: MONTH_ENUM[i[0][0][:3]] + i[0][0][3:])
KeyError: '201'
[] Shutted down at 2019-08-12 00:44:03
[*] Time taken: 0:00:05.211522
Version: v2.1.3-3 - because of ald date/time log format data in syslog file
Python 3.7.4
Tool started from terminal with processing a syslog file with command: usbrip events violations auth.json -f syslog and after couple of seconds stop with errors:
[] Started at 2019-08-12 00:43:57 [00:43:57] [INFO] Reading "syslog" Traceback (most recent call last): File "/usr/local/bin/usbrip", line 10, in
sys.exit(main())
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/main.py", line 126, in main
uev = USBEvents(args.file)
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 93, in new
all_events = _parse_history(divided_history)
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 343, in _parse_history
for (date, action), logs in _sort_by_date(divided_history.items()):
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 434, in _sort_by_date
return sorted(unsorted_log, key=lambda i: MONTH_ENUM[i[0][0][:3]] + i[0][0][3:])
File "/opt/usbrip/venv/lib/python3.7/site-packages/usbrip/lib/core/usbevents.py", line 434, in
return sorted(unsorted_log, key=lambda i: MONTH_ENUM[i[0][0][:3]] + i[0][0][3:])
KeyError: '201'
[ ] Shutted down at 2019-08-12 00:44:03
[*] Time taken: 0:00:05.211522
Version: v2.1.3-3 - because of ald date/time log format data in syslog file Python 3.7.4
Installation passed ok
root@kali:~/Desktop/_TOOLS/USB/usbrip-3fb6103a76d2955a5cd75152b1036fa2ab44abb8# ./installers/install.sh
/opt/usbrip/venv/lib/python3.7/site-packages/setuptools/dist.py:475: UserWarning: Normalizing '2.1.3-3' to '2.1.3.post3' normalized_version, running clean