java:portscanner
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
java:portscanner [2013/06/14 12:57] – created biggi | java:portscanner [2015/08/15 22:56] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | I used to run a website where we needed to do large amounts of port scans. At first PHP handled it, but it was too slow, and also we didn't want to do port scans from that server. We set up a proxy, and I found some java example of an "Echo server" | + | I used to run a website where we needed to do large amounts of port scans. At first PHP handled it, but it was too slow, and also we didn't want to do port scans from that server. We set up a VPS, and I found some java example of an "Echo server" |
Basically PHP opened a socket and wrote < | Basically PHP opened a socket and wrote < | ||
Line 5: | Line 5: | ||
NOTE: There is not special reason for it to be Java vs. C/ | NOTE: There is not special reason for it to be Java vs. C/ | ||
- | <code> | + | <file java portscanner.java> |
/* | /* | ||
Client ID must be reset sometime or it will run out of bound! | Client ID must be reset sometime or it will run out of bound! | ||
Line 154: | Line 154: | ||
} | } | ||
} | } | ||
- | </code> | + | </file> |
java/portscanner.1371207465.txt.gz · Last modified: 2015/08/15 22:56 (external edit)