Giter Site home page Giter Site logo

Comments (6)

shaanen avatar shaanen commented on July 20, 2024

The Nmap UDP scan (nmap-top-20-udp) requires root privileges. This is normal behaviour for Nmap. You can ignore this and keep running autorecon unprivileged, but note that you will lack the UDP scan results.

I recommend running autorecon with sudo/as root. Not only you will get the UDP results, also the TCP scans will be faster and more stealthy because it will use a more effective scan technique.
More details: Nmap manual (TCP SYN scan & TCP Connect scan).

from autorecon.

htbuser1 avatar htbuser1 commented on July 20, 2024

kali 2020.4
autorecon - cloned from commit: 9bf5b64

i'm having a similiar issue, i can only get the udp scanning working when i am su to root.
calling autorecon via sudo autorecon x.x.x.x still throws the same error.

is that the expected behaviour?

from autorecon.

CybertSys avatar CybertSys commented on July 20, 2024

I've had this issue for a while and have not figured out the work around. I can't get it to run using sudo. Can someone explain how to fix this step by step? There are a lot of assumptions made when telling folks to add lines to profiles or /etc/sudoers. We need to to know exactly how to do that and what to add to the file.

from autorecon.

ulfklose avatar ulfklose commented on July 20, 2024

Did you follow the installation instructions at https://github.com/Tib3rius/AutoRecon? Tib3rius offers a step-by-step explanation directly on the GitHub page which worked just fine for me.

from autorecon.

ulfklose avatar ulfklose commented on July 20, 2024

This is directly from https://github.com/Tib3rius/AutoRecon:

Note that if you want to elevate privileges to run a program installed with pipx, with sudo, you have two options:

Append the appropriate path to your execution command, using one of the following examples (recommended):

$ sudo env "PATH=$PATH" autorecon [OPTIONS]
$ sudo $(which autorecon) [OPTIONS]

To make this easier, you could add the following alias to your ~/.profile (or equivalent):

alias sudo="sudo env \"PATH=$PATH\""

Add the pipx binary path to the secure_path set in /etc/sudoers

sudo visudo /etc/sudoers

Update the secure_path directive as follows:

Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/kali/.local/bin"

If you're not using Kali Linux, make sure to adjust the path to the relevant user. Further detail on the installation of pipx is available in their installation instructions available here. Please refer to this for any issues you experience.

from autorecon.

A1vinSmith avatar A1vinSmith commented on July 20, 2024

Not sure it's a universal thing. But I can't install autorecon or semirecon by pipx. I have to install it with pip3.
Above changes for sudo also failing on me.

Linux vfkali 5.18.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali5 (2022-07-04) x86_64 GNU/Linux
❯ pipx --version 1.1.0

Python 3.10.5

❯ echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/home/kali/.dotnet/tools:/home/alvin/.local/bin:/home/kali/.local/bin

Nvm, pip issue. Fixed by https://patrickriggs.com/blog/autorecon-broke/
and
python3 -m pip install --user --upgrade --force-reinstall pipx

from autorecon.

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.