程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python key logger script

編輯:Python

Keystroke recorder , Just every button on your computer , Will be recorded , Operation tracking can be carried out , Yes, of course , The user name, password and other sensitive information you enter on the website will also be recorded . use Python This can be said to be very simple , But please don't use it on other people's computers , ha-ha .

course

pynput Modules can help us achieve , however , This is not a standard library , Therefore need pip Install it. :

Then write the following 11 Line code , Save as key_track.py

Execute this script on the command line :

This prompt tells us to allow programs to access keyboard records in the system settings , about MacOS This is it :

Then enter the key , You can go to log.txt See the key record in , When the key is recorded , You won't have any abnormal feelings :

Last words

This article shares a Python Key logger script , This can be used to block passwords and other confidential information entered through the keyboard , Pose a serious threat to users . Cyber criminals can get the of electronic payment PIN Code and account number 、 password 、 E-mail address 、 User name and other personal information .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved