Projects STRLCPY 5GReplay Commits fbc5bdd3
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    README.md
    1  -# MMT-5Greplay
     1 +# MMT-5GReplay
    2 2   
    3 3  This repository contains the following folders:
    4 4   
    5 5  - `src` : C code of mmt-5greplay
    6  -- `rules`: set of official XML rules. An encoded version (*.so) of these rules will be distributed with mmt-sec when using `make deb`. All rules (official and for testing purposes) are stored in rules/properties_all
    7  -- `check`: sample pcap files and expected results to validate mmt-5greplay
     6 +- `rules`: set of example XML rules
    8 7  - `docs`: [documentation](docs/)
    9 8  - `test`: diversity of testing code
    10 9   
    skipped 3 lines
    14 13   
    15 14  Suppose on your machine, you have:
    16 15   
    17  -- *libxml2-dev, libpcap-dev, libconfuse-dev* : `sudo apt-get install libxml2-dev libpcap-dev libconfuse-dev`
    18  - 
    19  -- `mmt-sdk`: `sudo dpkg -i lib/mmt-dpi*.deb`
     16 +- *libxml2-dev, libpcap-dev, libconfuse-dev libsctp-dev* : `sudo apt-get install libxml2-dev libpcap-dev libconfuse-dev libsctp-dev`
     17 +- *gcc, make, git*: `sudo apt install gcc make git`
     18 +- *Clone the source code on your machine*: `git clone https://github.com/Montimage/5GReplay.git`
     19 +- *mmt-sdk*: `cd 5GReplay; sudo dpkg -i lib/mmt-dpi*.deb`
    20 20   
    21 21  ## Clean
    22 22   
    skipped 5 lines
    28 28   
    29 29  - compile on its local directory: `make`
    30 30   
    31  -- compile sample rules existing in `rules` folder: `make sample-rule`
     31 +- compile sample rules existing in `rules` folder: `make sample-rules`
    32 32   
    33 33  - enable debug using gdb: `make DEBUG=1`
    34 34   
    skipped 13 lines
    48 48   
    49 49  ```bash
    50 50  #to generate .so file
    51  -./mmt-5greplay compile rules/40.TCP_SYN_scan.so rules/40.TCP_SYN_scan.xml
     51 +./mmt-5greplay compile rules/forward-localhost.so rules/forward-localhost.xml
    52 52  
    53 53  #to generate code c (for debug)
    54  -./mmt-5greplay compile rules/40.TCP_SYN_scan.c rules/40.TCP_SYN_scan.xml -c
     54 +./mmt-5greplay compile rules/forward-localhost.c rules/forward-localhost.xml -c
    55 55   
    56 56  ```
    57 57   
    skipped 34 lines
    92 92  ./mmt-5greplay replay -i eth0
    93 93  #to see all parameters, run ./mmt-5greplay replay -h
    94 94  #verify a pcap file
    95  -./mmt-5greplay replay -t check/pcap/16.two_successive_SYN.pcap
     95 +./mmt-5greplay replay -t ~/pcap/5G-traffic.pcap
    96 96   
    97 97  ```
    98 98   
    skipped 5 lines
Please wait...
Page is in error, reload to recover