public webbrowser_container_form(R2PIPE_WRAPPER r2pw, GuiControl control) { this.r2pw = r2pw; this.control = control; MenuHandle = GetSystemMenu((System.IntPtr) this.Handle, false); InsertMenu(MenuHandle, 5, MF_BYPOSITION | MF_SEPARATOR, 0, string.Empty); InsertMenu(MenuHandle, 6, MF_BYPOSITION, MENU_SYNCHRONIZE, "Synchronize"); InsertMenu(MenuHandle, 7, MF_BYPOSITION, MENU_ALLWAYSONTOP, "Always on top"); InitializeComponent(); }
public decoratorParam(string controlName, string columName, string value, string decoratorName, object json_row, List <string> cols, ListViewItem listviewItem, R2PIPE_WRAPPER r2wp) { this.controlName = controlName; this.columnName = columName; this.value = value; this.decoratorName = decoratorName; this.json_row = json_row; this.cols = cols; this.listviewItem = listviewItem; this.r2wp = r2wp; }
private void Form1_Load(object sender, EventArgs e) { rconfig = new RConfig(); UpdateGUI(); CheckR2path(); r2pw = new R2PIPE_WRAPPER(rconfig, this); //add controls r2pw.add_control("output", txtOutput); r2pw.add_control("dissasembly", webBrowser1); r2pw.add_control("strings_listview", lstStrings); r2pw.add_control("functions_listview", listView1); r2pw.add_control("imports_listview", lstImports); r2pw.add_control("sections_listview", lstSections); r2pw.add_control("hexview", webBrowser2); r2pw.add_control("r2help", webBrowser3); //add and assign "decorators" r2pw.add_decorator("num2hex", num2hex, new List <string>() { "offset", "vaddr", "paddr", "plt" }); r2pw.add_decorator("dec_b64", dec_b64, new List <string>() { "string" }); //add menu options and function callbacks r2pw.add_menucmd("&View", "Functions", "aaa;aflj", mainMenu); r2pw.add_menucmd("&View", "File info", "iIj", mainMenu); r2pw.add_menucmd("&View", "File version", "iV", mainMenu); r2pw.add_menucmd("&View", "Strings", "izj", mainMenu); r2pw.add_menucmd("&View", "Strings", "izj", mainMenu); r2pw.add_menucmd("&View", "Libraries", "ilj", mainMenu); r2pw.add_menucmd("&View", "Symbols", "isj", mainMenu); r2pw.add_menucmd("&View", "Relocs", "irj", mainMenu); r2pw.add_menucmd("&View", "Entropy", "p=", mainMenu); r2pw.add_menucmd("&View", "Entry Point", "pdfj @ entry0", mainMenu); r2pw.add_menucmd("&View", "List all RBin plugins loaded", "iL", mainMenu); r2pw.add_menucmd("r2", "Strings", "i?", mainMenu); r2pw.add_menucmd("r2", "Print help", "p?", mainMenu); r2pw.add_menucmd("r2", "Version", "?V", mainMenu); //add menu function callbacks r2pw.add_menufcn("&Gui", "Update gui", "*", UpdateGUI, mainMenu); r2pw.add_menufcn("&Gui", "Enum registry vars", "*", dumpGuiVars, mainMenu); r2pw.add_menufcn("Recent", "", rconfig.lastFileName, LoadFile, mainMenu); //add shell options r2pw.add_shellopt("radare2", guiPrompt_callback); r2pw.add_shellopt("javascript", guiPrompt_callback); //new auto-generated tabs r2pw.add_control_tab("version ( ?V )", "#todo"); r2pw.add_control_tab("xrefs ( axtj )", "#todo"); //load some example file //LoadFile(@"c:\windows\SysWOW64\notepad.exe"); LoadFile("-"); }
public r2html(R2PIPE_WRAPPER r2pw) { this.r2pw = r2pw; WriteTmpFile("r2pipe.css", "body{background:#fff;color:#000080;font-weight:bold;}\r\n" + ".r2code{font-family:Fixedsys;}\r\n" + ".comment{color:green;}\r\n" + ".address{color:black;}\r\n" + ".number{color:green;}\r\n" + ".hexb{color:blue;}\r\n" ); }
private void Form1_Load(object sender, EventArgs e) { rconfig = new RConfig(); CheckR2path(); r2pw = new R2PIPE_WRAPPER(rconfig); //assign controls r2pw.add_control("dissasembly", webBrowser1); r2pw.add_control("strings", txtStrings); r2pw.add_control("output", txtOutput); r2pw.add_control("functions_listview", listView1); r2pw.add_control("imports_listview", lstImports); r2pw.add_control("hexview", webBrowser2); //assign menu optrions r2pw.add_menucmd("View", "Functions", "afl", mainMenu); //load some example file LoadFile(@"c:\windows\SysWOW64\notepad.exe"); }
public r2html(R2PIPE_WRAPPER r2pw) { this.r2pw = r2pw; string bg_color = "#fff"; string background = string.Format( @"{0}/../../media/sf2_original_low_bright.jpg", r2pw.rconfig.guiPath); background = background.Replace(@"\", "/"); background = ""; //use config readFile("r2pipe.css"); //r2pipe css temporary hardcoded WriteTmpFile("r2pipe.css", "body{background:" + bg_color + " url('file:///" + background + "');color:#000080;font-weight:bold;background-repeat: repeat;" + "background-attachment: fixed;}\r\n" + ".r2code{line-height: 1.1em;white-space:pre;font-family: Consolas, Menlo, 'Bitstream Vera Sans Mono', monospace, 'Powerline Symbols';font-size:12px;cursor:arrow;font-weight:bold;}\r\n" + ".comment{color:green;}\r\n" + ".address, .shorted_address{color:black;}\r\n" + ".address:hover{text-decoration:underline;}\r\n" + ".shorted_address:hover{text-decoration:underline;background:#ee0}\r\n" + ".number{color:green;}\r\n" + ".hexb{color:blue;}\r\n" ); WriteTmpFile("r2pipe_high.css", "body{background:#000 url('file:///" + background + "');color:#ff0;font-weight:bold;background-repeat: repeat;" + "background-attachment: fixed;}\r\n" + ".r2code_s{font-family:Fixedsys;color:black;position:absolute;left:2px;top:2px;font-weight:bold;}\r\n" + ".r2code{font-family:Fixedsys;position:absolute;left:0;top:0;padding:0;cursor:arrow;}\r\n" + ".comment{color:#0f0;}\r\n" + ".address, .shorted_address{color:#fff;}\r\n" + ".address:hover{text-decoration:underline;}\r\n" + ".number{color:#0f0;}\r\n" + ".hexb{color:#aaf;}\r\n" ); }
private void Form1_Load(object sender, EventArgs e) { rconfig = new RConfig(); UpdateGUI(); CheckR2path(); r2pw = new R2PIPE_WRAPPER(rconfig, this); //assign controls r2pw.add_control("output", txtOutput); r2pw.add_control("dissasembly", webBrowser1); r2pw.add_control("strings_listview", lstStrings); r2pw.add_control("functions_listview", listView1); r2pw.add_control("imports_listview", lstImports); r2pw.add_control("sections_listview", lstSections); r2pw.add_control("hexview", webBrowser2); r2pw.add_control("r2help", webBrowser3); //assign menu optrions r2pw.add_menucmd("View", "Functions", "afl", mainMenu); r2pw.add_menucmd("View", "File info", "iI", mainMenu); r2pw.add_menufcn("Gui", "Enum registry vars", "*", dumpGuiVars, mainMenu); r2pw.add_menufcn("Gui", "Update gui", "*", UpdateGUI, mainMenu); //load some example file LoadFile(@"c:\windows\SysWOW64\notepad.exe"); }
public r2html(R2PIPE_WRAPPER r2pw) { this.r2pw = r2pw; }
public GuiControls(R2PIPE_WRAPPER r2pw) { this.r2pw = r2pw; controls = new List <GuiControl>(); }
public r2html(R2PIPE_WRAPPER r2pw) { this.r2pw = r2pw; this.addresses = new List <string>(); }
public convertFrm(R2PIPE_WRAPPER r2pw) { this.r2pw = r2pw; InitializeComponent(); }