Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Check open port
FamiHug
Feb 24th, 2012
114
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/bin/bash
echo
"Scanning TCP ports..."
for
p
in
{
1
..
1023
}
do
(
echo
>/
dev
/
tcp
/
localhost
/
$p
)
>/
dev
/
null
2
>&
1
&&
echo
"
$p
open"
done
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
4 min ago | 16.19 KB
Untitled
2 hours ago | 12.99 KB
Untitled
3 hours ago | 6.77 KB
Untitled
4 hours ago | 25.32 KB
Untitled
5 hours ago | 6.13 KB
Untitled
6 hours ago | 5.74 KB
Untitled
7 hours ago | 5.46 KB
Untitled
8 hours ago | 6.04 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!