User Tools

Site Tools


java:portscanner

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
java:portscanner [2013/06/14 12:57] – created biggijava: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" which I modified to make port scans. We did millions of port scans pr. day with this code, so it absolutely works. I'm a bit lazy at times + I'm no java-guy, so It's not pretty, it's not super fancy and brilliant, but it works, which to me is the most important thing.+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" which I modified to make port scans. We did millions of port scans pr. day with this code, so it absolutely works. I'm a bit lazy at times + I'm no java-guy, so It's not pretty, it's not super fancy and brilliant, but it works, which to me is the most important thing.
  
 Basically PHP opened a socket and wrote <pass>:<ip>:<port> and got "OPEN" or "CLOSED" back. Basically PHP opened a socket and wrote <pass>:<ip>:<port> and got "OPEN" or "CLOSED" back.
Line 5: Line 5:
 NOTE: There is not special reason for it to be Java vs. C/C++/???-language. I just wanted to play around with Java. NOTE: There is not special reason for it to be Java vs. C/C++/???-language. I just wanted to play around with Java.
  
-<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)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki