public override void Run(Dictionary <String, Parameter> RunParams)
        {
            List <string> targets = Proccessing.GetTargets(RunParams);

            if (targets.Count > 0)
            {
                foreach (string target in targets)
                {
                    string computer = target;
                    try
                    {
                        if (computer == null)
                        {
                            computer = "localhost";
                        }
                        List <string>           printedUsers = new List <string>();
                        List <Net.LoggedOnUser> users        = Net.GetNetLoggedOnUsers(computer);
                        Printing.CmdOutputHeading($"Logged on users for {computer}");
                        foreach (Net.LoggedOnUser user in users)
                        {
                            if (!user.UserName.EndsWith("$") && !printedUsers.Contains(user.UserName))
                            {
                                Printing.CmdOutputItem($"User {user.UserName} is logged in from {user.ComputerName}");
                                printedUsers.Add(user.UserName);
                            }
                        }
                    }
                    catch
                    {
                        Printing.Error($"Could not get logged on users for {computer}");
                    }
                }
            }
        }
        public override void Run(Dictionary <String, Parameter> RunParams)
        {
            List <string> targets = Proccessing.GetTargets(RunParams);

            if (targets.Count > 0)
            {
                SharpSploitResultList <Network.PortScanResult> scan = Network.PortScan(targets, 445, true);
                foreach (Network.PortScanResult scanResult in scan)
                {
                    if (scanResult.IsOpen)
                    {
                        ServiceController serviceController = new ServiceController("Spooler", scanResult.ComputerName); try
                        {
                            serviceController.ServiceHandle.Close();
                            Printing.Success($"Admin access to {scanResult.ComputerName}");
                        }
                        catch
                        {
                            Printing.Error($"No access to {scanResult.ComputerName}");
                        }
                    }
                    else
                    {
                        Printing.Error($"Port {scanResult.Port} is not open on {scanResult.ComputerName}");
                    }
                }
            }
            else
            {
                Printing.Error("Need to specify a ComputerName or IPAddress");
            }
        }
Exemple #3
0
        public frmAddNewUser()
        {
            InitializeComponent();

            proccessing = new Proccessing();
            cboUserType.Items.AddRange(new object[] { "DTA Data Capture", "STE Site Agent / Engineer", "SPU Super User" });
            txtAddNewUserSurname.Focus();
        }
Exemple #4
0
        static void Main(string[] args)
        {
            // Register Commands.

            new Help();
            new Exit();

            new DcomExec();
            new DumpProcess();
            new FindLocalAdmin();
            new GetDomainComputer();
            new GetDomainGroup();
            new GetDomainUser();
            new GetLoggedOnUsers();
            new GetSystem();
            new ImpersonateProcess();
            new Kerberoast();
            new PowerShell();
            new RevToSelf();
            new WhoAmI();
            new WmiExec();

            Printing.StartUp();

            // Start Processing
            if (args.Length > 0)
            {
                Proccessing.UserInput(args);
            }
            else
            {
                while (true)
                {
                    Printing.Prompt();
                    string input = Console.ReadLine();
                    Proccessing.UserInput(input.Split(' '));
                }
            }
        }
Exemple #5
0
 public frmCaptureItems()
 {
     proccessing = new Proccessing();
     InitializeComponent();
 }
Exemple #6
0
 public frmLogin()
 {
     proccessing = new Proccessing();
     InitializeComponent();
 }