Exemplo n.º 1
0
        public static SC_DATA ReadShellcode(String b64_sc)
        {
            SC_DATA scd = new SC_DATA();

            try
            {
                scd.bScData = System.Convert.FromBase64String(b64_sc);
                scd.iSize   = (uint)scd.bScData.Length;
            } catch { }

            return(scd);
        }
        public static SC_DATA ReadShellcode(String Path)
        {
            SC_DATA scd = new SC_DATA();

            try
            {
                scd.bScData = File.ReadAllBytes(Path);
                scd.iSize   = (uint)scd.bScData.Length;
            } catch { }

            return(scd);
        }
Exemplo n.º 3
0
        public static SC_DATA ReadShellcode()
        {
            SC_DATA scd = new SC_DATA();

            try
            {
                string scode = ExtractResource("UrbanBishop.Resources.txt");
                byte[] blob  = Convert.FromBase64String(scode);
                //byte[] bScData = Decompress(blob);
                scd.bScData = Decompress(blob);
                scd.iSize   = (uint)scd.bScData.Length;
            } catch { }

            return(scd);
        }
Exemplo n.º 4
0
        public static SC_DATA ReadShellcode()
        {
            SC_DATA scd = new SC_DATA();

            try
            {
                //scd.bScData = File.ReadAllBytes(Path);
                //scd.iSize = (uint)scd.bScData.Length;
                string scode = ExtractResource("RuralBishop.pawn.txt");
                byte[] blob  = Convert.FromBase64String(scode);
                //byte[] bScData = Decompress(blob);
                scd.bScData = Decompress(blob);
                scd.iSize   = (uint)scd.bScData.Length;
            }
            catch { }

            return(scd);
        }