Last analyzed 5492843 6 months ago
Default analysis branch is
Currently analyzing run
Sockets must be secure JAVA-S1011
Security
Critical
6 months agoa year old
12
13    public static void main(String[] args) throws Exception {
14        System.out.println("Server signing On");
15        ServerSocket ss = new ServerSocket(9085);16        MessageDispatcher md = new MessageDispatcher();
17        md.setDaemon(true);
18        md.start();
 8    public static void main(String[] args) throws Exception {
 9        System.out.println("Client Signing on");
10        try {
11            Socket soc = new Socket("127.0.0.1", 9085);12            BufferedReader nis = new BufferedReader(new InputStreamReader(soc.getInputStream()));
13            ObjectOutputStream oos = new ObjectOutputStream(soc.getOutputStream());
14            LoginWindow user = new LoginWindow(nis, oos);