cursock

Crates.iocursock
lib.rscursock
version1.2.7
sourcesrc
created_at2023-02-02 08:48:10.852715
updated_at2023-06-21 19:19:10.823548
descriptionCrate for raw socketing, can be used for sending raw packets and some protocols
homepagehttps://github.com/CURVoid/cursock.git
repositoryhttps://github.com/CURVoid/cursock.git
max_upload_size
id774634
size100,531
(CURVoid)

documentation

https://docs.rs/cursock

README

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();
Commit count: 8

cargo fmt