public static UInt64 Run(string FilePath) { var r = new r2pipe.DllR2Pipe(); r.RunCommand("o " + FilePath); r.RunCommand("aaa"); var address = GetPrivateAddressInternal(ref r); Console.WriteLine(address); r.Dispose(); return(address); }
static JObject[] emitCommandArray(ref r2pipe.DllR2Pipe r, string cmd) { var reply = r.RunCommand(cmd); JObject[] parsed = JsonConvert.DeserializeObject <JObject[]>(reply); return(parsed); }
static void emitCommandVoid(ref r2pipe.DllR2Pipe r, string cmd) { r.RunCommand(cmd); }
static JObject emitCommandObject(ref r2pipe.DllR2Pipe r, string cmd) { var reply = r.RunCommand(cmd); return(JsonConvert.DeserializeObject <JObject>(reply)); }