diff --git a/src/input.rs b/src/input.rs index c3af3f5ca..73192cec3 100644 --- a/src/input.rs +++ b/src/input.rs @@ -75,7 +75,7 @@ pub struct Opts { #[structopt(short, long, use_delimiter = true)] pub addresses: Vec, - /// A list of comma separed ports to be scanned. Example: 80,443,8080. + /// A list of comma separated ports to be scanned. Example: 80,443,8080. #[structopt(short, long, use_delimiter = true)] pub ports: Option>, diff --git a/src/main.rs b/src/main.rs index f104f889a..51ac12c5c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -286,7 +286,7 @@ fn parse_addresses(input: &Opts) -> Vec { /// Given a string, parse it as an host, IP address, or CIDR. /// This allows us to pass files as hosts or cidr or IPs easily -/// Call this everytime you have a possible IP_or_host +/// Call this every time you have a possible IP_or_host fn parse_address(address: &str, resolver: &Resolver) -> Vec { IpCidr::from_str(address) .map(|cidr| cidr.iter().collect()) @@ -300,7 +300,7 @@ fn parse_address(address: &str, resolver: &Resolver) -> Vec { .unwrap_or_else(|| resolve_ips_from_host(address, resolver)) } -/// Uses DNS to get the IPS assiocated with host +/// Uses DNS to get the IPS associated with host fn resolve_ips_from_host(source: &str, backup_resolver: &Resolver) -> Vec { let mut ips: Vec = Vec::new(); diff --git a/src/scanner/socket_iterator.rs b/src/scanner/socket_iterator.rs index d2cd4717d..19e19584a 100644 --- a/src/scanner/socket_iterator.rs +++ b/src/scanner/socket_iterator.rs @@ -17,7 +17,7 @@ pub struct SocketIterator<'s> { /// An iterator that receives a slice of IPs and ports and returns a Socket /// for each IP and port pair until all of these combinations are exhausted. /// The goal of this iterator is to go over every IP and port combination -/// wihout generating a big memory footprint. The alternative would be +/// without generating a big memory footprint. The alternative would be /// generating a vector containing all these combinations. impl<'s> SocketIterator<'s> { pub fn new(ips: &'s [IpAddr], ports: &'s [u16]) -> Self { diff --git a/src/scripts/mod.rs b/src/scripts/mod.rs index e200f1606..c9626e137 100644 --- a/src/scripts/mod.rs +++ b/src/scripts/mod.rs @@ -38,7 +38,7 @@ //! The {{ip}} part will be replaced with the ip we got from the scan. //! The {{port}} part will be reaplced with the ports separated with the ports_separator found in the script file //! -//! And when there is only {{ip}} and {{port}} is in the format, ony those will be replaced with the arguments from the scan. +//! And when there is only {{ip}} and {{port}} is in the format, only those will be replaced with the arguments from the scan. //! This makes it easy to run a system installed command like nmap, and give any kind of arguments to it. //! //! If the format is different, the script will be silently discarded and will not run. With the Debug option it's possible to see where it goes wrong.