Add TCP SYN Host Check#23
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add TCP SYN Host Check
Add TCP SYN to the current methods for checking the status of targets for more robust discovery and user-control.
SYN and CLI Options
If the target and scanner are not on the same subnet, ARP will fail. The same is true if ping probes are blocked by a firewall. This is were a simple SYN scan comes into play. This adds a fallback (or option) that scans port 22, 80 and 443 on the target system. These packets are likely to bypass any firewall as they are legitimate ports to connect to.
This addition adds even more fine-grained control for the user in deciding which method to use. By specifying
--syn-onlyor-Sas options to the program, ARP and ICMP can be skipped completely. Otherwise, ARP is tried first, followed by ping and finally SYN if any of the previous fail. The protocols are used in falling order from the fastest performing to ensure efficiency.File Changes
src/cli.candinclude/cli.husagesrc/main.c--syn-onlyoptionsrc/syn_scan.candinclude/syn_scan.htests/syn_scan_test.candtests/cli_test.c