IvanGlinkin / Host-enumeration

Have you ever faced with the lack of possibility of using NMap? For instance if you have reverse shell as an unprivileged user and there are no useful tools preinstalled? This is a small script which will help you to scan a network for live hosts and top 24 ports if you have nothing.
41 stars 14 forks source link

arping #1

Open BroadbentT opened 3 years ago

BroadbentT commented 3 years ago

Hi, can you include an arping check function to stop this happing ?

╔═══════════════════════════════════════════════════════════════════════════╗ ║ Enumerating Subnet 1: 172.16.1.0 / 24 ║ ╠═════════════════╦═══════════════════╦══════════════════╦══════════════════╣ ║ IP ║ MAC ║ OS ║ OPEN PORTS ║ hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found ╠═════════════════╬═══════════════════╬══════════════════╬══════════════════╣ ║ 172.16.1.5 ║ ║ Windows ║ 21 139 445 ║ ║ ║ ║ ║ 1433 5985 ║ hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found ╠═════════════════╬═══════════════════╬══════════════════╬══════════════════╣ ║ 172.16.1.10 ║ ║ Linux/Unix/MacOS ║ 22 80 139 445 ║ hostenum.sh: line 177: arping: command not found hostenum.sh: line 177: arping: command not found ╠═════════════════╬═══════════════════╬══════════════════╬══════════════════╣

IvanGlinkin commented 3 years ago

Hello. Sometimes I have the same problem. The cause is that arping has to be launch under the root. So try to run the script like this: sudo ./host-enum.sh