- Name: Nathan Poiro
- Email:
- Country: USA
I LIKE JAVA!
DO YOU?
If you don't it's
o.k, nobody's perfect.
Nobody's perfect.
Nobody.
a quick portscan program in java (to make sure you don't have any loose ports on your computer).
import java.net.*;
public class Portscan{
public static void main(String args[]){
Socket socket;
int port;
boolean listen;
System.out.println( "Scanning all ports" );
for( int i = 109; i<65535; i++){
try{
socket = new Socket( "localhost" , i );
System.out.println( "Port " + socket.getPort() + " is NOT
secure.");
socket.close();
}catch( Exception e){
System.out.println( "Port " + i + " is secure." );
}
}
}
}
"In a world of compromise, some don't."
GUYS WITH HONOR
Jump
- Things I DID NOT do with this code
- Use it to scan all the ports on a host other than my own
- Add documentation
- Use a debugger
- Handle errors very well
Some of my favorite words
- quixotic
- adj. foolishly idealistic
- polemic
- n. a refutive argument
- open house
- n. place where you party(ha, ha)
| MY FIRST TABLE |
| APPENDAGES |
DIGITS |
OTHER |
| legs |
toes |
head |
| arms |
fingers |
ummm |
I wish this would be a link
These guys have honor.
GNU
Personal Preferences (details in TWikiVariables)
- Horizontal size of text edit box:
- Vertical size of text edit box:
- Optionally write protect your home page: (set it to your WikiName)
Related topics