mirror of
https://github.com/snovvcrash/usbrip.git
synced 2024-06-03 12:46:03 +02:00
Update README.md
This commit is contained in:
parent
0d238776a9
commit
114e6b1e19
16
README.md
16
README.md
|
@ -1,5 +1,5 @@
|
|||
usbrip
|
||||
========
|
||||
==========
|
||||
[![Python Version](https://img.shields.io/badge/python-3.4,%203.5,%203.6-blue.svg)](https://www.python.org/downloads/)
|
||||
[![License](https://img.shields.io/badge/license-GPLv3-red.svg)](https://raw.githubusercontent.com/snovvcrash/usbrip/master/LICENSE)
|
||||
|
||||
|
@ -14,21 +14,21 @@ Table of contents:
|
|||
* [**Post Scriptum**](#post-scriptum)
|
||||
|
||||
Description
|
||||
========
|
||||
==========
|
||||
usbrip is a small piece of software written in pure Python 3 (using some external modules though, see [Dependencies](#dependencies)) which parses Linux log files (`/var/log/syslog*` or `/var/log/messages*` depending on the distro) for constructing USB event history tables. Such tables may contain the following columns: "Connected" (date & time), "User", "VID" (vendor ID), "PID" (product ID), "Product", "Manufacturer", "Serial Number", "Port" and "Disconnected" (date & time).
|
||||
|
||||
Besides, it also can:
|
||||
* generate a list of authorized (trusted) USB devices as a JSON (call it `auth.json`);
|
||||
* search for "violation events" based on `auth.json`: show (or generate another JSON with) all USB devices that do appear in history but do NOT appear in `auth.json`;
|
||||
* search additional details about a specific USB device base on its VID and/or PID.
|
||||
* search additional details about a specific USB device based on its VID and/or PID.
|
||||
|
||||
Screenshots
|
||||
========
|
||||
==========
|
||||
![Screenshot-1](https://user-images.githubusercontent.com/23141800/37735126-2b601742-2d5e-11e8-85ed-9945123f484e.png "Get USB event history of external devices")
|
||||
![Screenshot-2](https://user-images.githubusercontent.com/23141800/37735847-4340b720-2d60-11e8-83ce-b77c2b0673f8.png "Search for USB devices by PID")
|
||||
|
||||
Usage
|
||||
========
|
||||
==========
|
||||
To get a list of module names use:
|
||||
```
|
||||
$ python3 usbrip.py -h
|
||||
|
@ -45,7 +45,7 @@ $ python3 usbrip.py <module> <submodule> -h
|
|||
```
|
||||
|
||||
Examples
|
||||
========
|
||||
==========
|
||||
* Show event history of all USB devices without asking about the generation method of the output (`-q`, `--quite`, default output to the terminal stdout) represented as list (`-l`, `--list`) with latest 100 entries (`-n NUMBER`, `--number NUMBER`):
|
||||
```
|
||||
$ python3 usbrip.py events history -ql -c conn vid pid disconn serial -n 100
|
||||
|
@ -88,7 +88,7 @@ Examples
|
|||
```
|
||||
|
||||
Dependencies
|
||||
========
|
||||
==========
|
||||
usbrips makes use of the following external modules:
|
||||
* [terminaltables](https://robpol86.github.io/terminaltables/v3.1.0/index.html "terminaltables 3.1.0 — terminaltables")
|
||||
* [termcolor](https://pypi.python.org/pypi/termcolor "termcolor 1.1.0 : Python Package Index")
|
||||
|
@ -97,5 +97,5 @@ usbrips makes use of the following external modules:
|
|||
All requirements are stated in `requirements.txt`.
|
||||
|
||||
Post Scriptum
|
||||
========
|
||||
==========
|
||||
Yep, the logo and info messages style is inspired by the *sqlmap* project :see_no_evil:
|
||||
|
|
Loading…
Reference in New Issue