Esempio n. 1
0
        static void Main(string[] args)
        {
            string osName = System.Environment.OSVersion.ToString().Split(' ')[0];

            const string fileName = "r2pipe.dll";

            using (IR2Pipe pipe = new DllR2Pipe())
            {
                Console.WriteLine("Hello r2! " + pipe.RunCommand("?V"));

                pipe.RunCommand("o " + fileName);
                Console.WriteLine("Hello r2! " + pipe.RunCommand("pd 20"));
                /* no async support yet */
            }
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            var a = new DllR2Pipe();

            Console.WriteLine("-> {0}", a.RunCommand("?V"));
            a.Dispose();
        }