Tags:
create new tag
view all tags
  • 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
    1. Use it to scan all the ports on a host other than my own
    2. Add documentation
    3. Use a debugger
    4. 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:
    • Set EDITBOXWIDTH = 70
  • Vertical size of text edit box:
    • Set EDITBOXHEIGHT = 17
  • Optionally write protect your home page: (set it to your WikiName)
    • Set ALLOWTOPICCHANGE =

Related topics

Topic attachments
I Attachment History Action Size Date Who Comment
Java source code filejava ToLinux.java r1 manage 1.0 K 2002-04-01 - 08:23 UnknownUser  
GIFgif comp37.gif r1 manage 6.9 K 2002-04-18 - 20:19 UnknownUser  
HTMLhtml jscript.html r1 manage 0.2 K 2002-05-02 - 18:07 UnknownUser  
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2002-05-02 - NathanPoiro
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.