Hello guys I am anshul.....i am freak...i made a small program to just test it how it works on webapp....the program is below...
but the problem is that ...

i ran it on localhost it worked fine....but when i hosted it on internet with real ip......then give it to my freind ....he click on the link which
i gave him....it was like.....http://ip:8080/hack...on apache server.....there was a link on the page which runs through javabean
and the link was going to run this program...so the output must be on his pc but instead the programs output was on my screen,,,

how many times he click on that link the output cam on my screen or notepad rather than on his....

whats the deal with it...????



here it is



package Rob;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.*;

public class Rob {

public void hack()
{

try
{

Robot robot = new Robot();
// Creates the delay of 5 sec so that you can open notepad before
// Robot start writting
robot.delay(5000);

robot.keyPress(KeyEvent.VK_H);
robot.keyPress(KeyEvent.VK_I);
robot.keyPress(KeyEvent.VK_SPACE);
robot.keyPress(KeyEvent.VK_I);
robot.keyPress(KeyEvent.VK_A);
robot.keyPress(KeyEvent.VK_M);
robot.keyPress(KeyEvent.VK_SPACE);
robot.keyPress(KeyEvent.VK_K);
robot.keyPress(KeyEvent.VK_A);
robot.keyPress(KeyEvent.VK_T);
robot.keyPress(KeyEvent.VK_T);
robot.keyPress(KeyEvent.VK_A);

} catch (AWTException e) {
e.printStackTrace();
}
}
}