Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The script will fail if the target does not reply to ICMP request #7

Open
tbela99 opened this issue Feb 2, 2021 · 6 comments
Open

Comments

@tbela99
Copy link

tbela99 commented Feb 2, 2021

The script will end if the target does not reply to ICMP requests with a message "the domain cannot be resolved". Running nmap directly still works as expected

@Gr1mmie
Copy link
Owner

Gr1mmie commented Feb 2, 2021

Readme clearly gives an argument to bypass the resolving feature
image

without -nr
image

image
image
Works as intended just fine

@Gr1mmie Gr1mmie closed this as completed Feb 2, 2021
@tbela99
Copy link
Author

tbela99 commented Feb 3, 2021

Still autoenum fails to work. every command will return something like this

Starting Nmap 7.80 ( https://nmap.org ) at 2021-02-03 16:02 EST
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.38 seconds

@Gr1mmie Gr1mmie reopened this Feb 5, 2021
@Gr1mmie
Copy link
Owner

Gr1mmie commented Feb 5, 2021

hmm I'll do some testing and see if I can replicate this and work on a fix

@tbela99
Copy link
Author

tbela99 commented Feb 5, 2021

There is another failing scenario

  • launch the script (do not use the -nr flag)
  • enter an ipv4 address for the target

the script will still attempt to resolve that ipv4 address and fail when the target does not reply to ICMP requests. it should not resolve an ipv4 address. Using -nr fixes the problem

@Gr1mmie
Copy link
Owner

Gr1mmie commented Feb 5, 2021

Well yeah because by default, autoenum attempts to verify if the machine is up. -nr tells autoenum to set the machine as a target regardless if it's up or not. That's not a "failing scenario", that's a feature added to bypass the resolving function in the case that the machine is up and we know it is

@tbela99
Copy link
Author

tbela99 commented Mar 9, 2021

Here is the issue

https://github.com/Gr1mmie/autoenum/blob/master/functions/help_general.sh#L15

You are assigning the value only if it matches an ip address, in case of a domain name $IP is not set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants