| { | ||
| "git": { | ||
| "sha1": "c9b286236e60515f55e4b5a38f6696016e96e715" | ||
| "sha1": "639a3b6ab0a06078ce229a52b14616bae8d9c526" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+1
-1
@@ -98,3 +98,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "dhcplayer" | ||
| version = "0.1.5" | ||
| version = "0.1.6" | ||
| dependencies = [ | ||
@@ -101,0 +101,0 @@ "clap", |
+1
-1
@@ -15,3 +15,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "dhcplayer" | ||
| version = "0.1.5" | ||
| version = "0.1.6" | ||
| authors = ["Eloy Pérez <zer1t0ps@protonmail.com>"] | ||
@@ -18,0 +18,0 @@ description = "A tool to play and attack DHCP" |
+12
-0
@@ -131,2 +131,14 @@ mod config; | ||
| .map_err(|e| format!("Error sending packet: {}", e))?; | ||
| if dhcp_reply.dhcp_msg_type() == Some(DhcpMessageTypes::ACK) { | ||
| println!( | ||
| "Assigned IP {} to {}{}", | ||
| dhcp_reply.yiaddr, | ||
| client_mac, | ||
| match hostname { | ||
| Some(name) => format!(" ({})", name), | ||
| None => format!(""), | ||
| }); | ||
| } | ||
| } | ||
@@ -133,0 +145,0 @@ } |
Sorry, the diff of this file is not supported yet