Skip to content
Extraits de code Groupes Projets
Valider dc267b7d rédigé par François De Keersmaeker's avatar François De Keersmaeker
Parcourir les fichiers

Updated README

parent cb0066ad
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -22,7 +22,7 @@ pip install -r requirements.txt ...@@ -22,7 +22,7 @@ pip install -r requirements.txt
## Usage ## Usage
```bash ```bash
python3 pcap-tweaker.py [-h] [-d] [-r RANDOM_RANGE] pcap [pcap ...] python3 pcap-tweaker.py [-h] [-d] [-r RANDOM_RANGE] [-n PACKET_NUMBER] pcap [pcap ...]
``` ```
The program produces new PCAP file with the same name as the input files, The program produces new PCAP file with the same name as the input files,
...@@ -46,6 +46,7 @@ It will be created if it doesn't exist. ...@@ -46,6 +46,7 @@ It will be created if it doesn't exist.
* `-h`, `--help`: show help message and exit * `-h`, `--help`: show help message and exit
* `-d`, `--dry-run`: don't write the output PCAP file (but still write the CSV log file) * `-d`, `--dry-run`: don't write the output PCAP file (but still write the CSV log file)
* `-r`, `--random-range`: upper bound for the random range, which will select for each packet if it will be edited or not. In practice, each packet will be edited with a probability of `1/(r+1)`. Default: `0` (edit all packets). * `-r`, `--random-range`: upper bound for the random range, which will select for each packet if it will be edited or not. In practice, each packet will be edited with a probability of `1/(r+1)`. Default: `0` (edit all packets).
* `-n`, `--packet-number`: index of the packet to edit, starting from 1. Can be specified multiple times. If this is used, only the specified packets will be edited, and no random editing will be performed.
## Supported protocols ## Supported protocols
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter