Git Product home page Git Product logo

Comments (5)

initstring avatar initstring commented on September 27, 2024

Thank you for opening this issue!

It looks like it cannot find the executable "host". I use this for DNS lookups. You'll need to ensure "host" is in your PATH. This should be default on most Linux-based operating systems.

I don't test the tool on Windows, so can't give any advice if that is your platform.

I need a better error for this, so I'll leave this issue open as you're not the first to report.

Thanks!

from cloud_enum.

NinjaMinjax avatar NinjaMinjax commented on September 27, 2024

That was a fast response :)
I'm using Manjaro and it is pretty much a fresh installation.

Why does it look for host when it is hosts file?

from cloud_enum.

initstring avatar initstring commented on September 27, 2024

It actually looks for a binary called "host" which can be used to perform a DNS lookup. To enumerate azure stuff, I look for DNS entries. It's kind of like "nslookup". Despite the similar name, it is not related to the file /etc/hosts.

You don't hit the error on AWS, because AWS bucket enumeration is done instead by HTTP requests.

Look at line 77 here: https://github.com/initstring/cloud_enum/blob/master/enum_tools/azure_checks.py

valid_names = utils.fast_dns_lookup(candidates, nameserver)

That calls a function from here: https://github.com/initstring/cloud_enum/blob/master/enum_tools/utils.py

line 126:

cmd = ['host', '{}'.format(name), '{}'.format(nameserver)]

So basically it is trying to run "host".

What happens when you type host on the command line on your Manjaro installation?

from cloud_enum.

NinjaMinjax avatar NinjaMinjax commented on September 27, 2024

-bash: host: command not found

Manjaro doesn't come with host binary by default.
I installed bind-tools via the following command:
pacman -S bind-tools

And now it works flawlessly :)

from cloud_enum.

initstring avatar initstring commented on September 27, 2024

Thanks! I also added a check to provide a better error for others.

from cloud_enum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.