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

Does smbmap support CIDR notation? #44

Closed
a6avind opened this issue Mar 26, 2020 · 7 comments
Closed

Does smbmap support CIDR notation? #44

a6avind opened this issue Mar 26, 2020 · 7 comments

Comments

@a6avind
Copy link

a6avind commented Mar 26, 2020

No description provided.

@ShawnDEvans
Copy link
Owner

I just tested it, and CIDR notation appeared to be functional. CIDR notation is only compatible with the -H argument. The --host-file argument does not yet support CIDR.

@a6avind
Copy link
Author

a6avind commented Mar 26, 2020

sudo smbmap -H 10.11.1.1/24
[!] Invalid host...
Am I doing something wrong here?

@ShawnDEvans
Copy link
Owner

ShawnDEvans commented Mar 26, 2020

Ok it would seem there is a weird error in the ipaddress library. Try using the following while I work out how to address the issue:

$ ./smbmap.py -H 10.11.1.0/24

Thanks for reporting the problem!

@a6avind
Copy link
Author

a6avind commented Mar 26, 2020

Ya it works when you provide a network id not an IP address with CIDR notation.

@ShawnDEvans
Copy link
Owner

OK, i just pushed an update. I think it should address the problem with having the host bit set to a non-zero value. Let me know if it did the trick, and we can close this one out. Thanks!

@a6avind
Copy link
Author

a6avind commented Mar 27, 2020

It's working. What is the pipeline for kali repo?

@a6avind a6avind closed this as completed Mar 27, 2020
@ShawnDEvans
Copy link
Owner

I wish I knew more about how to get the latest greatest into Kali, but I'm pretty uninformed about the workflow. For now just clone the GitHub repo for the latest stable. Thanks again for the feedback!

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