send
Grupo de Telegram
play_arrow
Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.

Monitoriar el Clipboard

  • 0 Respuestas
  • 1394 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado ProcessKill

  • *
  • Underc0der
  • Mensajes: 154
  • Actividad:
    0%
  • Reputación 0
  • Arriba los hackers de Argentina!
    • Ver Perfil
    • Email
« en: Febrero 24, 2010, 04:13:53 pm »
implementado en mi jdeff downloader con algunas moficicaciones ;)

Código: Java
  1. import java.awt.datatransfer.Transferable;
  2. /*
  3.  
  4.  @author L-EYER
  5.  @see GlassFish Tools Bundle For EclipseVersion: 0.9.9
  6.    
  7. */
  8. public class ThreadClipboard extends You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login{
  9.         public static void main(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login[] args){
  10.                 new ThreadClipboard();
  11.         }
  12.         public ThreadClipboard(){this.start();}
  13.         private boolean _run = true;
  14.         private You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login string;
  15.         private You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login transferable;
  16.     private final You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login getClipboard()
  17.     {
  18.     transferable =
  19.         java.awt.You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.getDefaultToolkit().getSystemClipboard().getContents(null);
  20.                 try {
  21.                     if (transferable != null &&
  22.                                 transferable.isDataFlavorSupported(
  23.                                                 java.awt.datatransfer.You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.stringFlavor)) {
  24.                         string =
  25.                                 (You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login)transferable.getTransferData(
  26.                                                 java.awt.datatransfer.You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.stringFlavor);
  27.                         return string;
  28.                     }
  29.                 } catch ( java.awt.datatransfer.You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login exception)
  30.                 {You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.err.println(exception);_run = false;You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.exit(0);
  31.                 } catch (java.io.You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login e)
  32.                 {You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.err.println(e);You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println("GClipboard.getClipboard()");
  33.                 _run = false;You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.exit(0);
  34.                 }
  35.                 return null;
  36.             }
  37.         public You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login getText() {return string;}
  38.         public void setText(You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login text) {this.string = text;}
  39.         public boolean is_run() {return _run;}
  40.         public void set_run(boolean _run) {this._run = _run;
  41.         }
  42.         private int DELAY = 50;
  43.         @Override public synchronized void run()
  44.         {
  45.         while(is_run()){
  46.         try {
  47.                 You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login stringClipboard = getClipboard();
  48.                 if(stringClipboard!= null){
  49.                         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.out.println(stringClipboard);
  50.                             }
  51.                 else{continue;
  52.                     }
  53.                 You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.sleep(DELAY);
  54.            } catch (You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login e) {
  55.                 You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.err.println(e);You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.exit(0);
  56.            }           
  57.          }
  58.    }
  59. }
  60.  

BYEE  8)
« Última modificación: Abril 18, 2013, 12:43:17 pm por Expermicid »

 

¿Te gustó el post? COMPARTILO!