Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clientbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
aleajactaest
clientbot
Commits
d421615d
Commit
d421615d
authored
Jan 11, 2021
by
aleajactaest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README
parent
4474fed1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
README.md
README.md
+27
-5
No files found.
README.md
View file @
d421615d
...
...
@@ -8,16 +8,38 @@ Convert pcap (capture network) on yaml file to see communication between server
## Usage
### Launch network capture
### Install library
```
# Si python3 est par defaut
pip install pypcapfile
sudo tcpdump -i [networkd card] -w [Pcap output]
# Sinon
pip3 install pypcapfile
```
ex.: sudo tcpdump -i eth0 -w capture-2020-11-28-17-37-57.pcap
### Launch network capture
Commande:
```
sudo tcpdump -i [networkd card] -w [Pcap output]
```
Exemple:
```
sudo tcpdump -i eth0 -w capture-2020-11-28-17-37-57.pcap
```
### Extract information
Commande:
```
python3 spykhanat.py -m [localization msg.xml] --yaml [Yaml Output file] -w [localisation database.xml] -p [Pcap input] --filter-host-service='[Ip address: Port server khaganat]' --csv='[file output CSV {comma separator} - extract only normal message]'
```
Ex.: python3 spykhanat.py -m ~/khanat/khanat-opennel-code/code/ryzom/common/data_common/msg.xml --yaml capture-2020-11-28-17-37-57.yml -w ~/khanat/khanat-opennel-code/code/ryzom/common/data_common/database.xml -p capture-2020-11-28-17-37-57.pcap --filter-host-service='127.0.0.1:47851' --csv capture-2020-11-28-17-37-57.csv
Exemple:
```
python3 spykhanat.py -m ~/khanat/khanat-opennel-code/code/ryzom/common/data_common/msg.xml --yaml capture-2020-11-28-17-37-57.yml -w ~/khanat/khanat-opennel-code/code/ryzom/common/data_common/database.xml -p capture-2020-11-28-17-37-57.pcap --filter-host-service='127.0.0.1:47851' --csv capture-2020-11-28-17-37-57.csv
```
### Analyze result
...
...
@@ -39,5 +61,5 @@ Detail message format (ex.: <0:31> (Sint32) CurrentSendNumber => 42 : 0000000000
*
Format data (Signed/Unsigned Integer, String, Number of bit)
*
Function (type of value, function in khaganat)
*
Value : value in integer
*
Value in binary
*
Value in
est par defaut
binary
*
Value convert for khaganat (sometimes is keyword)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment