small fixes§
This commit is contained in:
parent
ca2da8bbd4
commit
7300bbf361
@ -25,6 +25,7 @@ echo "[+] Scanning for open ports…"
|
|||||||
PORTS=$(nmap -p- --min-rate=1000 -T4 ${IP_ADDRESS} | grep ^[0-9] | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//)
|
PORTS=$(nmap -p- --min-rate=1000 -T4 ${IP_ADDRESS} | grep ^[0-9] | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//)
|
||||||
if [ -z "${PORTS}" ]; then
|
if [ -z "${PORTS}" ]; then
|
||||||
echo "[-] No open ports found"
|
echo "[-] No open ports found"
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[+] Open ports: ${PORTS}"
|
echo "[+] Open ports: ${PORTS}"
|
||||||
|
2
util.py
2
util.py
@ -101,7 +101,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
command = sys.argv[1]
|
command = sys.argv[1]
|
||||||
if command == "getAddress":
|
if command == "getAddress":
|
||||||
if len(sys.argv) >= 2:
|
if len(sys.argv) >= 3:
|
||||||
print(getAddress(sys.argv[2]))
|
print(getAddress(sys.argv[2]))
|
||||||
else:
|
else:
|
||||||
print(getAddress())
|
print(getAddress())
|
||||||
|
Loading…
Reference in New Issue
Block a user