Closed 3brahimi closed 3 years ago
After sometime I got back to this project and figured it out; the garbage was of length 4 bytes and seemingly a redundant FCS/CRC
. The simple workaround is to set the dirty FCS bit
in the Radiotap
header and the rest I am sure you'd know.
Issue: Garbage accompanies the transmitted packets. Severity: functionality of libtins
Description:
Dear @mfontanini,
Packets crafted by
libtins
(pulled today Mon 8. Mar 2021) are accompanied with some garbage when transmitted over. Below you can find more information about the issue I am facing.Best, Masoud
WLAN Adapter
ALFA AWUS036ACH with driver version
5.7.0
OS
Linux kali 5.10.0-kali3-amd64 #1 SMP Debian 5.10.13-1kali1 (2021-02-08) x86_64 GNU/Linux
.Compiler
g++ (Debian 10.2.1-6) 10.2.1 20210110
cmake version 3.18.4
Dependancies
tcpdump version 5.0.0-PRE-GIT
libpcap version 1.11.0-PRE-GIT (with TPACKET_V3)
OpenSSL 1.1.1j 16 Feb 2021
bison (GNU Bison) 3.7.5
flex++ 2.6.4
Code to craft an open authentication packet:
Dot11Authentication auth( ap_addr, sta_addr );
auth.addr3( ap_addr );
auth.auth_algorithm( 0 );
auth.auth_seq_number( 0x0001 );
auth.status_code( 0x0000 );
auto radio = RadioTap() / auth;
Code to send the packet:
PacketSender sender( iface );
sender.send( radio );
Code to save the packet:
PacketWriter w( "auth.pcap", PacketWriter::RADIOTAP );
w.write( radio );
Dumped packet in Wireshark:
Frame 1: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
Transmitted packet captured by Wireshark
Frame 18: 63 bytes on wire (504 bits), 63 bytes captured (504 bits) on interface XXXXXXX, id N