Skip to content
Leo Liu edited this page Jun 14, 2024 · 4 revisions

Welcome to the FakeSniff6 wiki!


Examples for fakesniff.py

Usage

To understand the usage

python3 fakesniff.py -h

Example 1

An example for executing fakesniff.py with specified directory, UCC log, and the handle to be interpreted

python3 fakesniff.py -d  ../../Downloads/00178055/LOC-6.3.1.4_24G-To-WFA -f log_LOC-6.3.1.4_24G.log -i "192.168.250.96:9999" -o "192.168
.239.136"
Sample output
user@LLIU-LAP1:/mnt/c/Users/lliu/source/FakeSniff6$ python3 fakesniff.py -d  ../../Downloads/00178055/LOC-6.3.1.4_24G-To-WFA -f log_LOC-6.3.1.4_24G.log -i "192.168.250.96:9999" -o "192.168
.239.136"
Connected to 192.168.239.136:69.
Pushing '_LOC_6314' to the remote host...
Communicating with 192.168.239.136:59301.
Transfer complete, 542172 bytes (1592.26 kB/s)
Pushing '_LOC_6314_FTMR_enc' to the remote host...
Communicating with 192.168.239.136:40786.
Transfer complete, 156204 bytes (1022.45 kB/s)
state: True;statistics: {'consistent': 112, 'inconsistent': 1, 'malformed': 1, 'omitted': 4}
user@LLIU-LAP1:/mnt/c/Users/lliu/source/FakeSniff6$

Example 2

An example for executing fakesniff.py with specified directory, and UCC log; the handle will be retrieved automatically

python3 fakesniff.py -a -d  ../../Downloads/00178055 -o "192.168.239.136"
Sample output
user@LLIU-LAP1:/mnt/c/Users/lliu/source/FakeSniff6$ python3 fakesniff.py -a -d  ../../Downloads/00178055 -o "192.168.239.136"
Connected to 192.168.239.136:69.
Pushing '_LOC_6314' to the remote host...
Communicating with 192.168.239.136:49469.
Transfer complete, 542172 bytes (1707.15 kB/s)
Pushing '_LOC_6314_FTMR_enc' to the remote host...
Communicating with 192.168.239.136:41968.
Transfer complete, 156204 bytes (1651.65 kB/s)
dir: "../../Downloads/00178055/LOC-6.3.1.4_24G-To-WFA"; fn: "log_LOC-6.3.1.4_24G.log"; suffix: ".pcapng.gz"; state: true; statistics: {'consistent': 112, 'inconsistent': 1, 'malformed': 1, 'omitted': 4}
user@LLIU-LAP1:/mnt/c/Users/lliu/source/FakeSniff6$

Examples for fakecall.py

Usage

To understand the usage

python3 fakecall.py -h

Example 1

An example for executing fakecall.py with specified directory, UCC log, and the handle to be interpreted; oriented/destination port is copied from the interpreted/source

python3 fakecall.py -v -d ../Downloads/00188657 -f log_VHT-5.2.63C_10.20.3_PASS.log -i "192.168.250.21:15000" -o "192.165.1.3"
Sample output
user@latitude-3420:~/FakeSniff6$ python3 fakecall.py -v -d ../Downloads/00188657 -f log_VHT-5.2.63C_10.20.3_PASS.log -i "192.168.250.21:15000" -o "192.165.1.3"
INFO:root:capi: ca_get_version;result: consistent
INFO:root:capi: device_get_info;result: consistent
INFO:root:capi: ap_reset_default;result: consistent
INFO:root:capi: ap_set_wireless;result: consistent
elapsed: 79.701212;  state: true; statistics: {'consistent': 4, 'inconsistent': 0, 'malformed': 0, 'omitted': 0}
user@latitude-3420:~/FakeSniff6$

Example 2

An example for executing fakecall.py with specified directory, UCC log, and the handle to be interpreted; oriented/destination port is specified directly

python3 fakecall.py -v -d ../Downloads/00188657 -f log_VHT-5.2.63C_10.20.3_PASS.log -i "192.168.250.20:7004" -o "192.165.1.7:7000"
Sample output
user@latitude-3420:~/FakeSniff6$ python3 fakecall.py -v -d ../Downloads/00188657 -f log_VHT-5.2.63C_10.20.3_PASS.log -i "192.168.250.20:7004" -o "192.165.1.7:7000"
INFO:root:capi: ca_get_version;result: consistent
INFO:root:capi: ap_reset_default;result: consistent
INFO:root:capi: AccessPoint;result: consistent
INFO:root:capi: ap_set_wireless;result: consistent
elapsed: 2.018831;  state: true; statistics: {'consistent': 4, 'inconsistent': 0, 'malformed': 0, 'omitted': 0}
user@latitude-3420:~/FakeSniff6$

Example 3

An example for executing fakecall.py with specified directory, and UCC log; the handle will be retrieved automatically

python3 fakecall.py -v -a -d ../Downloads -n QualcommVHT -o "192.165.100.123"
Sample output
user@latitude-3420:~/FakeSniff6$ python3 fakecall.py -v -a -d ../Downloads -n QualcommVHT -o "192.165.100.123"
INFO:root:name: QualcommVHT
INFO:root:filename: log_VHT-5.2.63C_10.20.3_PASS.log
INFO:root:h: 192.165.100.123:9000
INFO:root:capi: ca_get_version;result: consistent
INFO:root:capi: device_get_info;result: consistent
INFO:root:capi: ap_reset_default;result: consistent
INFO:root:capi: ap_set_wireless;result: consistent
elapsed: 1; dir: "../Downloads/00188657"; fn: "log_VHT-5.2.63C_10.20.3_PASS.log"; state: true; statistics: {'consistent': 4, 'inconsistent': 0, 'malformed': 0, 'omitted': 0}
user@latitude-3420:~/FakeSniff6$

Example 4

Examples for executing fakecall.py with specified directory, and UCC log; both $\color{limegreen}{stdout}$ and $\color{crimson}{stderr}$ are redirected to a file, and extra time is used for total time elapsed measurement

time python3 fakecall.py -v -a -d ../Downloads/vht/AP -n Marvell8964VHT -o "192.165.100.30" > fakesniff6-report-marvell-ap-aput.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n Marvell8964VHT -o "192.165.100.30" > fakesniff6-report-marvell-ap-staut.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/20MHz -n Marvell8964VHT -o "192.165.100.30" > fakesniff6-report-marvell-ap-staut-20m.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/AP -n RalinkAc -o "192.165.1.7" > fakesniff6-report-ralink-ap-aput.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n RalinkAc -o "192.165.1.7" > fakesniff6-report-ralink-ap-staut.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/20MHz -n RalinkAc -o "192.165.1.7" > fakesniff6-report-ralink-ap-staut-20m.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/AP -n QualcommVHT -o "192.165.100.123" > fakesniff6-report-qualcomm-ap-aput.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n QualcommVHT -o "192.165.100.123" > fakesniff6-report-qualcomm-ap-staut.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/20MHz -n QualcommVHT -o "192.165.100.123" > fakesniff6-report-qualcomm-ap-staut-20m.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/AP -n BroadcomVHT -o "192.165.1.3" > fakesniff6-report-broadcom-ap-aput.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n BroadcomVHT -o "192.165.1.3" > fakesniff6-report-broadcom-ap-staut.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/20MHz -n BroadcomVHT -o "192.165.1.3" > fakesniff6-report-broadcom-ap-staut-20m.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/AP -n MARVELL-STA -o "192.168.250.32" > fakesniff6-report-marvell-sta-aput.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n MARVELL-STA -o "192.168.250.32" > fakesniff6-report-marvell-sta-staut.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/20MHz -n MARVELL-STA -o "192.168.250.32" > fakesniff6-report-marvell-sta-staut-20m.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/AP -n BROADCOM-STA -o "192.168.250.112" > fakesniff6-report-broadcom-sta-aput.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n BROADCOM-STA -o "192.168.250.112" > fakesniff6-report-broadcom-sta-staut.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/20MHz -n BROADCOM-STA -o "192.168.250.112" > fakesniff6-report-broadcom-sta-staut-20m.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/AP -n QUALCOMM-STA -o "192.168.250.122" > fakesniff6-report-qualcomm-sta-aput.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n QUALCOMM-STA -o "192.168.250.122" > fakesniff6-report-qualcomm-sta-staut.txt 2>&1
time python3 fakecall.py -v -a -d ../Downloads/vht/20MHz -n QUALCOMM-STA -o "192.168.250.122" > fakesniff6-report-qualcomm-sta-staut-20m.txt 2>&1
Sample output
user@latitude-3420:~/FakeSniff6$ time python3 fakecall.py -v -a -d ../Downloads/vht/STA -n Marvell8964VHT -o "192.165.100.30" > fakesniff6-report-marvell-ap-staut.txt 2>&1

real	17m10.970s
user	0m0.258s
sys	0m0.043s
user@latitude-3420:~/FakeSniff6$

Examples for fakecount.py

Usage

To understand the usage

python3 fakecount.py -h

Example 1

An example for executing fakecount.py with specified directory, UCC log, and the handle to be interpreted

python3 fakecount.py -v -d ../../Downloads/miscellaneous/2Q2024/WIFI6-1165/HE-5.48.1_24G_May-23-2024__06-31-23 -f log_HE-5.48.1_24G.log
-i "192.168.250.5:9999"
Sample output
user@LLIU-LAP1:/mnt/c/Users/lliu/source/FakeSniff6$ python3 fakecount.py -v -d ../../Downloads/miscellaneous/2Q2024/WIFI6-1165/HE-5.48.1_24G_May-23-2024__06-31-23 -f log_HE-5.48.1_24G.log
-i "192.168.250.5:9999"
INFO:root:invoked: sniffer_get_info;
INFO:root:argv: status,COMPLETE,WfaSnifferVersion,Wi-FiTestSuite_v10.22.0-EHT-v1.0,SnifferDvSTA,iwlwifi-stack-dev:tags:jenkins-Linux_Core_build_bergbenj-7-128084,SnifferFwSTA,84.f4f25837.0,SwInfo,_5.15.0-25-generic,WiresharkVersion,3.4.8-7941deb-WFA-01,MapConfVersion,MapConfig_Consolidated-v0.2,Chipset,nuc,wlantest,893ac4618b62db767d68f134d393040a;
INFO:root:result: malformed
INFO:root:capi: sniffer_control_upload;result: consistent
INFO:root:capi: sniffer_control_start;result: consistent
INFO:root:capi: sniffer_control_stop;result: consistent
INFO:root:capi: sniffer_control_filter_capture;result: consistent
INFO:root:capi: sniffer_get_field_value;result: consistent
INFO:root:capi: sniffer_control_filter_capture;result: consistent
INFO:root:capi: sniffer_get_field_value;result: consistent
INFO:root:capi: sniffer_control_start;result: consistent
INFO:root:capi: sniffer_control_stop;result: consistent
INFO:root:capi: sniffer_control_filter_capture;result: consistent
INFO:root:capi: sniffer_control_field_check;result: consistent
INFO:root:capi: sniffer_control_field_check;result: consistent
INFO:root:invoked: sniffer_control_field_check,filename,HE-5481_TRAFFIC_NOMACK,RxMac,5c:80:b6:b4:e5:51,TxMac,00:03:7f:12:a9:a9,framename,qosdata,smpdu_format,1;
INFO:root:argv: status,COMPLETE,CheckResult,FAIL;
INFO:root:result: inconsistent
dir: "../../Downloads/miscellaneous/2Q2024/WIFI6-1165/HE-5.48.1_24G_May-23-2024__06-31-23"; fn: "log_HE-5.48.1_24G.log"; suffix: ".pcapng.gz"; state: true; statistics: {'consistent': 12, 'inconsistent': 1, 'malformed': 1, 'omitted': 0}
user@LLIU-LAP1:/mnt/c/Users/lliu/source/FakeSniff6$
Clone this wiki locally