cursock 1.2.7

Crate for raw socketing, can be used for sending raw packets and some protocols
Documentation

Cursock v1.2.7

Crate for raw socketing, can send raw packets and some protocols

Changelog

  • reimplemented Icmp, Arp and Adapter structs
  • added IpPacked which represents eth + (ipv4 | ipv6) headers
  • handling dest mac address for Icmp struct

Todo

  • Add ipv6 support for Icmp

Protocols

  • Arp
  • Icmp

Platforms

  • Windows (npcap)
  • Linux

Links

Examples

use cursock::*;
use cursock::utils::*;

let socket = Socket::new("wlan0").expect("initialize error");
let mut buffer = [0; 1000];

socket.read_raw_packet(&mut buffer).expect("read error");

socket.destroy();