/* Java applet used to demo Java vulnerabilities March 1997 Andre L. dos Santos This is not the most beautiful code, it was first intended only for internal use. */ import java.applet.Applet; import java.awt.*; import java.io.*; import java.net.*; import java.util.*; public class InspectClient3 extends Applet implements Runnable { boolean DEBUG = true; InetAddress address; TextField portField; Label display; DatagramSocket socket; Thread killme = null; String[] group = null; long ThisTime; public void init() { //Initialize networking stuff. String host = getCodeBase().getHost(); try { address = InetAddress.getByName(host); } catch (UnknownHostException e) { System.out.println("Couldn't get Internet address: Unknown host"); // What should we do? } try { socket = new DatagramSocket(); } catch (IOException e) { System.out.println("Couldn't create new DatagramSocket"); return; } Date today = new Date(); ThisTime = today.getTime(); } /* public void paint(Graphics g) { if (group == null) return; for(int i=0;i