-
Notifications
You must be signed in to change notification settings - Fork 0
/
P0x.sh
24 lines (23 loc) · 1.04 KB
/
P0x.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
red='\033[0;31m'
green='\033[0;32m'
NC='\033[0m'
echo -e """${red}
██████╗ ██████╗ ██╗ ██╗
██╔══██╗██╔═████╗╚██╗██╔╝
██████╔╝██║██╔██║ ╚███╔╝
██╔═══╝ ████╔╝██║ ██╔██╗
██║ ╚██████╔╝██╔╝ ██╗
╚═╝ ╚═════╝ ╚═╝ ╚═╝
"""
echo "[ iG: @1zsb , Github: 0xffvirus ]"
echo -n -e "${NC}enter file path : " & read file
echo -n "Port Check: " & read port
while read p; do
r=`timeout 5 bash -c 'exec 3<> /dev/tcp/'$p'/'$port';echo $?' 2>/dev/null~`
if [[ "$r" == "0" ]]; then
echo -e "${green}[!] ${NC}$p | Port $port is Open "
else
echo -e "${red}[?] ${NC}$p | Port $port is Closed"
fi
done < $file