Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions enumx
100644 → 100755
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one man, give me some time to implement it after fully reviewing it. really appreciate it this is awesome!

Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,22 @@ smb_enum() {
fi
}

scan_udp(){
open_ports=$(nmap -p- -sU --open --min-rate 10000 -T 5 "$target" | awk '{print $1}' | grep '/' | sed 's#/.*##' | sort -n)
for port in $open_ports; do
echo -e "\n━━━━━━━━━━━━━━━━━━━━━━━━━ UDP PORT: $port"
case $port in
161)
mkdir -p "$enumx_dir"/snmp
echo -e "[+] SNMP found. \nOutput in $enumx_dir/snmp/public-channel-scan and $enumx_dir/snmp/public-channel-strings"
snmpwalk -v2c -c public $target > "$enumx_dir"/snmp/public-channel-scan
snmpwalk -v2c -c public $target |grep STRING| sed 's/^.*: "//g'|sed 's/"$//g' |tee "$enumx_dir"/snmp/public-channel-strings
;;
esac
done
}

scan_udp &

# Scan for open ports using nmap
open_ports=$(nmap -p- --open --min-rate 10000 "$target" | awk '{print $1}' | grep '/' | sed 's#/.*##' | sort -n)
Expand Down Expand Up @@ -678,3 +694,6 @@ if [ -n "$enumx_dir/creds" ]; then
fi
done < "$enumx_dir/creds"
fi

# Waiting for the udp scan to finish
wait