diff --git a/README.md b/README.md index f6150e0..e736b03 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,13 @@ Network scanning tool with features like: - [x] WiFi signals strength (with charts) - [x] (IPv4) Pinging CIDR with hostname, oui & mac address - [x] (IPv4) Packetdump (TCP, UDP, ICMP, ARP) +- [x] (IPv6) Packetdump (ICMP6) +- [x] start/pause packetdump **TODO:** - [ ] scanning open ports - [ ] modal window with packet data - [ ] ipv6 scanning & dumping -- [ ] start/pause packetdump ## *Notes*: - Must be run with root privileges. @@ -28,9 +29,6 @@ sudo chmod u+s /home/user/.cargo/bin/netscanner ``` paru -S netscanner ``` -``` -yay -S netscanner-bin -``` ## Install `Cargo` ``` diff --git a/src/components/packetdump.rs b/src/components/packetdump.rs index 31d29e7..20c580f 100644 --- a/src/components/packetdump.rs +++ b/src/components/packetdump.rs @@ -208,13 +208,6 @@ impl PacketDump { PacketTypeEnum::Icmp6, )) .unwrap(); - // println!( - // "[{}]: ICMPv6 packet {} -> {} (type={:?})", - // interface_name, - // source, - // destination, - // icmpv6_packet.get_icmpv6_type() - // ) } } @@ -581,22 +574,22 @@ impl PacketDump { Style::default().fg(Color::Red).bg(Color::Black), )); - let mut icmp_type_str = "unknown"; + let mut icmp_type_str = " unknown "; match icmp.icmp_type { Icmpv6Types::EchoRequest => { - icmp_type_str = " echo request"; + icmp_type_str = " echo request "; } Icmpv6Types::EchoReply => { - icmp_type_str = " echo reply"; + icmp_type_str = " echo reply "; } Icmpv6Types::NeighborAdvert => { - icmp_type_str = " neighbor advert"; + icmp_type_str = " neighbor advert "; } Icmpv6Types::NeighborSolicit => { - icmp_type_str = " neighbor solicit"; + icmp_type_str = " neighbor solicit "; } Icmpv6Types::Redirect => { - icmp_type_str = " redirect"; + icmp_type_str = " redirect "; } _ => {} } @@ -929,6 +922,7 @@ impl Component for PacketDump { PacketTypeEnum::Arp => self.arp_packets.push((time, packet.clone())), PacketTypeEnum::Udp => self.udp_packets.push((time, packet.clone())), PacketTypeEnum::Icmp => self.icmp_packets.push((time, packet.clone())), + PacketTypeEnum::Icmp6 => self.icmp6_packets.push((time, packet.clone())), _ => {} } self.all_packets.push((time, packet.clone()));