How to create a simple virus using java




















Improve Article. Save Article. Like Article. If it is a folder. Not required actually. Next Worms, Viruses and beyond!! Recommended Articles. Article Contributed By :. In a real keylogger, the keystrokes would be buffered and then stealthily transmitted back to the hacker. The above code pulls in the raw keyboard input from whatever window and input box that currently has the focus. If the goal of your hacking is to get passwords or credit card numbers, this approach is not very efficient.

A hacker would have a very difficult time parsing the stream to find the valuable information. By using this method of limiting the input to browsers, I increase my chances of spotting user names and passwords.

This code snippet will probe the active window every ms. GetForegroundWindow does the real heaving lifting. Suppose this is an ambitious hacker who has managed to infect tens or hundreds thousands of laptops.

Result: a huge file with megabytes of text in which the good stuff, emails addresses and passwords, are hidden. You can read more about regexes here. Here is an example of two regexes that would match the usernames and passwords from a wall of text:. If you accidentally remove the file and trigger your virus, then, yes, you'd have a problem. Not Helpful 33 Helpful Probably Python shell or the standard command prompt for your code enlisted in it. Not Helpful 28 Helpful Some people create viruses for educational purposes or humor.

Others do it to access sensitive content. Not Helpful 13 Helpful Usually, it is harder to track than normal money transfers, which makes them harder to catch. Not Helpful 9 Helpful Include your email address to get a message when this question is answered.

By using this service, some information may be shared with YouTube. If you are looking to remove a virus, see this article. Helpful 6 Not Helpful 2. Submit a Tip All tip submissions are carefully reviewed before being published. Only release viruses to demonstrate security vulnerabilities to other users. Helpful 5 Not Helpful 1. Helpful 4 Not Helpful 4. You Might Also Like How to.

How to. Co-authors: Updated: January 2, Categories: Computer Pranks Computer Viruses. Italiano: Creare un Virus. Deutsch: Einen harmlosen Computer Virus erstellen. Bahasa Indonesia: Membuat sebuah Virus. Thanks to all authors for creating a page that has been read , times. Is this article up to date?

Cookies make wikiHow better. By continuing to use our site, you agree to our cookie policy. About This Article. Featured Articles How to. Most popular in How To. How to Delete Temporary Files in Windows 10? How to Recover a Deleted File in Linux? Most visited in TechTips. Setting up the environment in Java. We use cookies to ensure you have the best browsing experience on our website. Start Your Coding Journey Now!

Login Register.



0コメント

  • 1000 / 1000