private Mangled getMangleSet(string pair,string type, char separator){ Mangled process = new Mangled(); process.varval="UD"; process.varvalmd5="UD"; process.varvalsha1="UD"; process.varvalbase64enc="UD"; process.varvalbase64dec="UD"; process.varname="UD"; process.varmd5="UD"; process.varsha1="UD"; process.varbase64enc="UD"; process.varbase64dec="UD"; try{ int sep=pair.IndexOf(separator.ToString()); string par=pair.Substring(0,sep); string val=pair.Substring(sep+1); process.varname=par; process.varmd5=GetMangle(par,0); process.varsha1=GetMangle(par,1); process.varbase64enc=GetMangle(par,2); process.varbase64dec=GetMangle(par,3); if (val.Length>0){ process.varval=val; process.varvalmd5=GetMangle(val,0); process.varvalsha1=GetMangle(val,1); process.varvalbase64enc=GetMangle(val,2); process.varvalbase64dec=GetMangle(val,3); } process.type=type; return (process); }catch{ return process; } }
private void btnMangleAddUserInput_Click(object sender, System.EventArgs e) { detailedRequest workreq = new detailedRequest(); Mangled workman = new Mangled(); workreq.header=""; workreq.action="UsrDef"; workreq.cookie=null; //this here is a 'hack'..hehehehe - see the delete code workreq.filename=txtMangleUserInput.Text; workreq.filetype=""; workreq.GETparameters=null; workreq.isSSL=false; workreq.port="0"; workreq.POSTparameters=null; workreq.URL="UsrDef"; workreq.host="UsrDef"; workreq.Processed=new ArrayList(); workman.type="UsrDef"; workman.varname="UsrDef"; workman.varval=txtMangleUserInput.Text; workman.varvalmd5=GetMangle(workman.varval,0); workman.varvalsha1=GetMangle(workman.varval,1); workman.varvalbase64dec=GetMangle(workman.varval,2); workman.varvalbase64enc=GetMangle(workman.varval,3); workreq.Processed.Add(workman); userMange_detailed_Requests.Add(workreq); lstMangleUserInput.Items.Add(txtMangleUserInput.Text); }
private void showeditor(string request){ int n_Tabs = 0; detailedRequest work = getHTTPdetails(request,"",false); is_reqeditor_open=true; try { reqeditor.Show(); reqeditor.Controls.Clear(); reqeditor.Left=locX; reqeditor.Top=locY; } catch { reqeditor = new reqEdit(); reqeditor.Show(); reqeditor.Controls.Clear(); reqeditor.Left=locX; reqeditor.Top=locY; } Mangled tool = new Mangled(); try { #region panels,action and url and submit button reqeditor.Closed+=new System.EventHandler(req_closed_event); reqeditor.AutoScale=true; reqeditor.BackColor=Color.DarkGray; reqeditor.Text="SURU Webproxy Request Editor"; reqeditor.KeyPress += new System.Windows.Forms.KeyPressEventHandler(reqeditor_keypress); reqeditor.Move +=new System.EventHandler(requesteditor_moved); Panel top_main_panel = new System.Windows.Forms.Panel(); //Top panel //top_main_panel.AutoScroll = true; top_main_panel.Dock = System.Windows.Forms.DockStyle.Top; top_main_panel.Size = new System.Drawing.Size(425, 72); top_main_panel.Location = new System.Drawing.Point(0, 0); top_main_panel.KeyPress += new System.Windows.Forms.KeyPressEventHandler(reqeditor_keypress); top_main_panel.TabIndex=n_Tabs; n_Tabs++; top_main_panel.TabStop = false; //Bottom panel Panel bottom_main_panel = new System.Windows.Forms.Panel(); bottom_main_panel.AutoScroll = true; bottom_main_panel.Dock = System.Windows.Forms.DockStyle.Bottom; bottom_main_panel.Size = new System.Drawing.Size(425, 100); bottom_main_panel.Location = new System.Drawing.Point(0, 305); bottom_main_panel.KeyPress += new System.Windows.Forms.KeyPressEventHandler(reqeditor_keypress); bottom_main_panel.TabIndex = 10000; bottom_main_panel.TabStop = false; //central main panel Panel ct_main_p = new System.Windows.Forms.Panel(); ct_main_p.AutoScroll = true; ct_main_p.Dock = System.Windows.Forms.DockStyle.Fill; ct_main_p.Location = new System.Drawing.Point(0, 72); ct_main_p.Size = new System.Drawing.Size(425, 233); ct_main_p.TabIndex = n_Tabs; n_Tabs++; ct_main_p.TabStop = false; ct_main_p.Enter +=new System.EventHandler(reqEntered); ct_main_p.Leave+=new System.EventHandler(reqLeft); //splitter System.Windows.Forms.Splitter spl = new Splitter(); spl.Dock = System.Windows.Forms.DockStyle.Bottom; spl.Name = "splitter1"; spl.Size = new System.Drawing.Size(417, 3); spl.TabIndex = n_Tabs; n_Tabs++; spl.TabStop = false; spl.BackColor=Color.Gainsboro; reqeditor.Controls.Add(spl); reqeditor.BringToFront(); ToolTip toolTip1 = new System.Windows.Forms.ToolTip(); toolTip1.AutomaticDelay = 1000; toolTip1.AutoPopDelay = 10000; toolTip1.InitialDelay = 1000; toolTip1.ReshowDelay = 20; int panelsize=225; if (work.cookie.Count>0){panelsize+=50+(26*work.cookie.Count);} if (work.POSTparameters.Count>0){panelsize+=50+(26*work.POSTparameters.Count);} if (work.GETparameters.Count>0){panelsize+=50+(26*work.GETparameters.Count);} if (work.isXML || work.isMultiPart){panelsize+=200;} if (panelsize>600) { reqeditor.Size=new System.Drawing.Size(580,600); // panel1.Size = new System.Drawing.Size(580,600); } else { reqeditor.Size=new System.Drawing.Size(560,panelsize); // panel1.Size = new System.Drawing.Size(560,panelsize); } //add the panels reqeditor.Controls.Add(ct_main_p); reqeditor.Controls.Add(bottom_main_panel); reqeditor.Controls.Add(top_main_panel); int pos=5; #region submit button System.Windows.Forms.Button but = new DotNetSkin.SkinControls.SkinButton(); System.Windows.Forms.Button butraw = new DotNetSkin.SkinControls.SkinButtonYellow(); but.Location=new System.Drawing.Point(5,pos); but.Size=new Size(260,21); but.Text="Browse request"; but.ForeColor=Color.Black; but.BackColor=Color.DarkGray; but.FlatStyle=FlatStyle.Popup; but.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); but.Click += new System.EventHandler(reqEditClicked); but.TabIndex = n_Tabs; n_Tabs++; but.TabStop = true; top_main_panel.Controls.Add(but); reqeditor.AcceptButton=but; butraw.Location=new System.Drawing.Point(270,pos); butraw.Size=new Size(260,21); butraw.Text="Send raw request"; butraw.ForeColor=Color.Firebrick; butraw.BackColor=Color.DarkGray; butraw.FlatStyle=FlatStyle.Popup; butraw.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); butraw.Click += new System.EventHandler(reqEditClickedRaw); butraw.TabIndex = n_Tabs; n_Tabs++; butraw.TabStop=true; top_main_panel.Controls.Add(butraw); #endregion pos=pos+25; action_textbox = new TextBox(); action_textbox.Location = new Point(5,pos); action_textbox.BorderStyle=BorderStyle.FixedSingle; action_textbox.Text=work.action; action_textbox.Size = new Size(80,21); action_textbox.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); action_textbox.TabIndex = n_Tabs; n_Tabs++; action_textbox.TabStop=true; top_main_panel.Controls.Add(action_textbox); URL_textbox = new TextBox(); URL_textbox.ForeColor=Color.WhiteSmoke; URL_textbox.BackColor=Color.FromArgb(100,100,100); URL_textbox.Location = new Point(90,pos); URL_textbox.Size= new Size(458,21); URL_textbox.Text=work.URL; URL_textbox.BorderStyle=BorderStyle.FixedSingle; URL_textbox.TabIndex=n_Tabs; n_Tabs++; URL_textbox.TabStop=true; URL_textbox.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); top_main_panel.Controls.Add(URL_textbox); int y=0; #endregion //ok now the fun starts.... #region POSTs POSTparameters_amount=0; if (work.POSTparameters.Count>0) { y=0; //check if its XML if (work.isXML==true) { int n_curtab = 3999; //create the panel System.Windows.Forms.Panel se_ch_p= new System.Windows.Forms.Panel(); System.Windows.Forms.Panel se_p_name= new System.Windows.Forms.Panel(); System.Windows.Forms.Panel se_p= new System.Windows.Forms.Panel(); se_p.TabIndex = n_curtab; n_curtab--; se_p.TabStop=false; se_p.Controls.Add(POST_textBoxes[y]); se_p.Controls.Add(se_ch_p); se_ch_p.Dock = System.Windows.Forms.DockStyle.Left; se_ch_p.Location = new System.Drawing.Point(0, 0); se_ch_p.Size = new System.Drawing.Size(25, 200); se_ch_p.TabIndex = n_Tabs; n_Tabs++; POST_chk[y] = new DotNetSkin.SkinControls.SkinCheckBox(); POST_chk[y].Location = new Point(5,pos+1); POST_chk[y].FlatStyle=FlatStyle.Standard; POST_chk[y].CheckState=CheckState.Checked; POST_chk[y].Text=""; POST_chk[y].Size = new System.Drawing.Size(20, 20); POST_chk[y].TabIndex=n_Tabs; n_Tabs++; POST_chk[y].TabStop=true; se_ch_p.Controls.Add(POST_chk[y]); POSTparameters_amount=-1; POST_textBoxes[y] = new TextBox(); POST_textBoxes[y].Multiline=true; POST_textBoxes[y].WordWrap=false; POST_textBoxes[y].ScrollBars=ScrollBars.Both; POST_textBoxes[y].ForeColor=Color.Black; POST_textBoxes[y].Dock=DockStyle.Fill; POST_textBoxes[y].BackColor=Color.Khaki; POST_textBoxes[y].BorderStyle=BorderStyle.FixedSingle; POST_textBoxes[y].TabIndex = n_Tabs; n_Tabs++; POST_textBoxes[y].TabStop = true; string XMLstuff = (string)work.POSTparameters[0]; POST_textBoxes[y].Text = XMLstuff.Replace("<","\r\n<").TrimStart('\r','\n'); //add to main panel //se_p.Location = new System.Drawing.Point(0, pos); se_p.Dock = System.Windows.Forms.DockStyle.Top; se_p.Size = new System.Drawing.Size(425, 200); //se_p.TabIndex = y+9; //add panel to the main section ct_main_p.Controls.Add(se_p); pos+=200; } if (work.isMultiPart==true) { int n_curtab = 3999; //create the panel System.Windows.Forms.Panel se_ch_p= new System.Windows.Forms.Panel(); System.Windows.Forms.Panel se_p_name= new System.Windows.Forms.Panel(); //add to main panel System.Windows.Forms.Panel se_p= new System.Windows.Forms.Panel(); se_p.TabIndex=n_curtab; n_curtab--; se_p.TabStop=false; se_p.Controls.Add(POST_textBoxes[y]); se_p.Controls.Add(se_ch_p); se_ch_p.Dock = System.Windows.Forms.DockStyle.Left; se_ch_p.Location = new System.Drawing.Point(0, 0); se_ch_p.Size = new System.Drawing.Size(25, 200); se_ch_p.TabIndex = n_Tabs; n_Tabs++; se_ch_p.TabStop =false; POST_chk[y] = new DotNetSkin.SkinControls.SkinCheckBox(); POST_chk[y].Location = new Point(5,pos+1); POST_chk[y].FlatStyle=FlatStyle.Standard; POST_chk[y].CheckState=CheckState.Checked; POST_chk[y].Text=""; POST_chk[y].Size = new System.Drawing.Size(20, 20); POST_chk[y].TabIndex=n_Tabs; n_Tabs++; POST_chk[y].TabStop=true; se_ch_p.Controls.Add(POST_chk[y]); POSTparameters_amount=-2; POST_textBoxes[y] = new TextBox(); POST_textBoxes[y].Multiline=true; POST_textBoxes[y].WordWrap=false; POST_textBoxes[y].Dock=DockStyle.Fill; POST_textBoxes[y].ScrollBars=ScrollBars.Both; POST_textBoxes[y].ForeColor=Color.DimGray; POST_textBoxes[y].Size = new System.Drawing.Size(510, 200); POST_textBoxes[y].BackColor=Color.Gainsboro; POST_textBoxes[y].BorderStyle=BorderStyle.FixedSingle; string Multistuff = (string)work.POSTparameters[0]; POST_textBoxes[y].Text = Multistuff; POST_textBoxes[y].TabIndex=n_Tabs; n_Tabs++; POST_textBoxes[y].TabStop = true; //se_p.Location = new System.Drawing.Point(0, pos); se_p.Dock = System.Windows.Forms.DockStyle.Top; se_p.Size = new System.Drawing.Size(425, 200); //se_p.TabIndex = y+9; //add panel to the main section ct_main_p.Controls.Add(se_p); pos+=200; } if (work.isMultiPart==false && work.isXML==false) { int n_curtab = 3999; //int z_tab = 0; //z_tab = work.POSTparameters.Count; //just normal POST foreach(string item in work.POSTparameters) { #region panel definitions System.Windows.Forms.Panel se_ch_p= new System.Windows.Forms.Panel(); System.Windows.Forms.Panel se_p_name= new System.Windows.Forms.Panel(); System.Windows.Forms.Splitter se_s_nv = new System.Windows.Forms.Splitter(); System.Windows.Forms.Panel se_p_value = new System.Windows.Forms.Panel(); //add to the single entry panel.. System.Windows.Forms.Panel se_p= new System.Windows.Forms.Panel(); se_p.Controls.Add(se_p_value); se_p.Controls.Add(se_s_nv); se_p.Controls.Add(se_p_name); se_p.Controls.Add(se_ch_p); se_p.TabIndex = n_curtab; n_curtab--; se_p.TabStop = false; se_ch_p.Dock = System.Windows.Forms.DockStyle.Left; se_ch_p.Location = new System.Drawing.Point(0, 0); se_ch_p.Size = new System.Drawing.Size(25, 24); se_ch_p.TabIndex = n_Tabs; n_Tabs++; se_p_name.Dock = System.Windows.Forms.DockStyle.Left; se_p_name.Location = new System.Drawing.Point(48, 0); se_p_name.Size = new System.Drawing.Size(120, 24); se_p_name.TabIndex = n_Tabs; n_Tabs++; se_p_name.TabStop=false; se_s_nv.Location = new System.Drawing.Point(168, 0); se_s_nv.Size = new System.Drawing.Size(3, 24); se_s_nv.TabIndex = n_Tabs; n_Tabs++; se_s_nv.TabStop = false; se_p_value.Dock = System.Windows.Forms.DockStyle.Fill; se_p_value.Location = new System.Drawing.Point(171, 0); se_p_value.Size = new System.Drawing.Size(253, 24); se_p_value.TabIndex = n_Tabs; n_Tabs++; se_p_value.TabStop=false; #endregion POST_chk[y] = new DotNetSkin.SkinControls.SkinCheckBox(); POST_chk[y].FlatStyle=FlatStyle.Standard; POST_chk[y].Location = new Point(5,2); POST_chk[y].CheckState=CheckState.Checked; POST_chk[y].Text=""; POST_chk[y].Size = new System.Drawing.Size(20, 20); POST_chk[y].TabIndex = n_Tabs; n_Tabs++; POST_chk[y].TabStop=true; string[] parts = item.Split(txtKeyValueSeparator.Text[0]); POST_comboBoxes[y] = new ComboBox(); POST_comboBoxes[y].Size = new System.Drawing.Size(335, 21); POST_comboBoxes[y].BackColor=Color.Cornsilk; POST_comboBoxes[y].Dock=DockStyle.Fill; se_ch_p.Controls.Add(POST_chk[y]); string itemadd=string.Empty; if (parts.Length>0) { for (int u=1; u<parts.Length; u++) { tool = new Mangled(); tool = (Mangled)work.Processed[y+work.GETparameters.Count+work.cookie.Count]; toolTip1.SetToolTip(POST_comboBoxes[y],"MD5: "+tool.varvalmd5+"\r\nSHA1: "+tool.varvalsha1+"\r\nB64dec:"+tool.varvalbase64dec+"\r\nB64enc:"+tool.varvalbase64enc); //itemadd += convertFromHex(parts[u])+"="; //lets see if we shouldnt encode POSTS itemadd += parts[u]+"="; } //chop off only the LAST = itemadd=itemadd.Substring(0,itemadd.Length-1); } else { itemadd = ""; } POST_comboBoxes[y].Text=itemadd; POST_comboBoxes[y].Items.Add(itemadd); POST_comboBoxes[y].Items.Add("FUZZCTRL"); POST_comboBoxes[y].Items.Add("-v--shortcut to FuzzDB--v--"); POST_comboBoxes[y].SelectedIndex=0; //add the fuzzing strings foreach (string itemcmb in cmbCustom.Items) { POST_comboBoxes[y].Items.Add("FZ: "+itemcmb); } POST_textBoxes[y] = new TextBox(); POST_textBoxes[y].BorderStyle=BorderStyle.FixedSingle; POST_textBoxes[y].Size = new System.Drawing.Size(180, 20); POST_textBoxes[y].BackColor=Color.Cornsilk; POST_textBoxes[y].Dock=DockStyle.Fill; POST_textBoxes[y].Text = parts[0]; POST_textBoxes[y].TabIndex = n_Tabs; n_Tabs++; POST_textBoxes[y].TabStop=true; se_p_name.Controls.Add(POST_textBoxes[y]); POST_comboBoxes[y].TabIndex = n_Tabs; n_Tabs++; POST_comboBoxes[y].TabStop = true; se_p_value.Controls.Add(POST_comboBoxes[y]); //se_p.Location = new System.Drawing.Point(0, pos); se_p.Dock = System.Windows.Forms.DockStyle.Top; se_p.Size = new System.Drawing.Size(425, 24); //add panel to the main section ct_main_p.Controls.Add(se_p); y++; POSTparameters_amount++; } } #region label System.Windows.Forms.Panel se_l = new System.Windows.Forms.Panel(); se_l.TabIndex = n_Tabs; n_Tabs++; se_l.TabStop = false; Label label_post = new Label(); label_post.Text="POST"; if (work.isXML) { label_post.Text+=" (XML)"; } if (work.isMultiPart) { label_post.Text+=" (Multipart)"; } label_post.Size = new Size(192, 21); label_post.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); label_post.Location= new Point(25,2); se_l.Controls.Add(label_post); se_l.Dock = System.Windows.Forms.DockStyle.Top; se_l.Size = new System.Drawing.Size(425, 24); //add panel to the main section ct_main_p.Controls.Add(se_l); #endregion } #endregion #region cookies cookie_amount=0; if (work.cookie.Count>0) { int n_curtab = 2999; y=0; foreach(string item in work.cookie) { #region panel definitions System.Windows.Forms.Panel se_ch_p= new System.Windows.Forms.Panel(); System.Windows.Forms.Panel se_p_name= new System.Windows.Forms.Panel(); System.Windows.Forms.Splitter se_s_nv = new System.Windows.Forms.Splitter(); System.Windows.Forms.Panel se_p_value = new System.Windows.Forms.Panel(); //add to the single entry panel.. System.Windows.Forms.Panel se_p= new System.Windows.Forms.Panel(); se_p.Dock = System.Windows.Forms.DockStyle.Top; se_p.Size = new System.Drawing.Size(425, 24); se_p.Controls.Add(se_p_value); se_p.Controls.Add(se_s_nv); se_p.Controls.Add(se_p_name); se_p.Controls.Add(se_ch_p); se_p.TabIndex=n_curtab; n_curtab--; se_p.TabStop = false; se_ch_p.Dock = System.Windows.Forms.DockStyle.Left; se_ch_p.Location = new System.Drawing.Point(0, 0); se_ch_p.Size = new System.Drawing.Size(25, 24); se_ch_p.TabIndex = n_Tabs; n_Tabs++; se_ch_p.TabStop = false; se_p_name.Dock = System.Windows.Forms.DockStyle.Left; se_p_name.Location = new System.Drawing.Point(48, 0); se_p_name.Size = new System.Drawing.Size(120, 24); se_p_name.TabIndex = n_Tabs; n_Tabs++; se_p_name.TabStop=false; se_s_nv.Location = new System.Drawing.Point(168, 0); se_s_nv.Size = new System.Drawing.Size(3, 24); se_s_nv.TabIndex = n_Tabs; n_Tabs++; se_s_nv.TabStop = false; se_p_value.Dock = System.Windows.Forms.DockStyle.Fill; se_p_value.Location = new System.Drawing.Point(171, 0); se_p_value.Size = new System.Drawing.Size(253, 24); se_p_value.TabIndex = n_Tabs; n_Tabs++; se_p_value.TabStop = false; // se_p.SuspendLayout(); ct_main_p.Controls.Add(se_p); #endregion cookie_chk[y] = new DotNetSkin.SkinControls.SkinCheckBox(); cookie_chk[y].FlatStyle=FlatStyle.Standard; cookie_chk[y].Location = new Point(5,2); cookie_chk[y].CheckState=CheckState.Checked; cookie_chk[y].Text=""; cookie_chk[y].Size = new System.Drawing.Size(20, 20); cookie_chk[y].TabIndex=n_Tabs; n_Tabs++; cookie_chk[y].TabStop=true; se_ch_p.Controls.Add(cookie_chk[y]); string[] parts = item.Split(txtCookieKeyValueSeparator.Text[0]); cookie_comboBoxes[y] = new ComboBox(); cookie_comboBoxes[y].Dock=DockStyle.Fill; cookie_comboBoxes[y].Dock=DockStyle.Fill; cookie_comboBoxes[y].Size = new System.Drawing.Size(335, 21); cookie_comboBoxes[y].TabIndex = 0; cookie_comboBoxes[y].BackColor=Color.Tan; cookie_comboBoxes[y].Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); string itemadd=string.Empty; if (parts.Length>0) { for (int u=1; u<parts.Length; u++) { tool = new Mangled(); tool = (Mangled)work.Processed[y+work.GETparameters.Count]; toolTip1.SetToolTip(cookie_comboBoxes[y],"MD5: "+tool.varvalmd5+"\r\nSHA1: "+tool.varvalsha1+"\r\nB64dec:"+tool.varvalbase64dec+"\r\nB64enc:"+tool.varvalbase64enc); itemadd += convertFromHex(parts[u])+"="; } itemadd=itemadd.Substring(0,itemadd.Length-1); } else { itemadd = ""; } cookie_comboBoxes[y].Items.Add(itemadd); cookie_comboBoxes[y].Items.Add("FUZZCTRL"); cookie_comboBoxes[y].Items.Add("-v--shortcut to FuzzDB--v--"); //add the fuzzing strings foreach (string itemcmb in cmbCustom.Items) { cookie_comboBoxes[y].Items.Add("FZ: "+itemcmb); } cookie_comboBoxes[y].Text=itemadd; //se_p_value.Controls.Add(cookie_comboBoxes[y]); cookie_textBoxes[y] = new TextBox(); cookie_textBoxes[y].BorderStyle=BorderStyle.FixedSingle; cookie_textBoxes[y].BackColor=Color.Tan; cookie_textBoxes[y].Dock=DockStyle.Fill; cookie_textBoxes[y].Size = new System.Drawing.Size(180, 20); cookie_textBoxes[y].TabIndex = 17; cookie_textBoxes[y].Text = convertFromHex(parts[0]); cookie_textBoxes[y].Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); cookie_textBoxes[y].TabIndex = n_Tabs; n_Tabs++; cookie_textBoxes[y].TabStop =true; se_p_name.Controls.Add(cookie_textBoxes[y]); cookie_comboBoxes[y].TabIndex = n_Tabs; n_Tabs++; cookie_comboBoxes[y].TabStop = true; se_p_value.Controls.Add(cookie_comboBoxes[y]); y++; cookie_amount++; } #region label System.Windows.Forms.Panel se_l = new System.Windows.Forms.Panel(); se_l.TabIndex = n_Tabs; n_Tabs++; se_l.TabStop = false; Label label_cookie = new Label(); label_cookie.Text="Cookies"; label_cookie.Size = new Size(192, 21); label_cookie.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); label_cookie.Location= new Point(25,2); label_cookie.TabIndex = n_Tabs; n_Tabs++; se_l.Controls.Add(label_cookie); se_l.Dock = System.Windows.Forms.DockStyle.Top; se_l.Size = new System.Drawing.Size(425, 24); //add panel to the main section ct_main_p.Controls.Add(se_l); #endregion } #endregion #region GETs GETparameters_amount=0; if (work.GETparameters.Count>0) { int n_curtab = 1999; pos+=30; //GETs y=0; pos=0; foreach(string item in work.GETparameters) { //all the panel defs #region panel definitions System.Windows.Forms.Panel se_ch_p= new System.Windows.Forms.Panel(); System.Windows.Forms.Panel se_p_name= new System.Windows.Forms.Panel(); System.Windows.Forms.Splitter se_s_nv = new System.Windows.Forms.Splitter(); System.Windows.Forms.Panel se_p_value = new System.Windows.Forms.Panel(); //add to the single entry panel.. System.Windows.Forms.Panel se_p= new System.Windows.Forms.Panel(); se_p.TabIndex=n_curtab; n_curtab--; se_p.TabStop=false; se_ch_p.Dock = System.Windows.Forms.DockStyle.Left; se_ch_p.Location = new System.Drawing.Point(0, 0); se_ch_p.Size = new System.Drawing.Size(25, 24); se_ch_p.TabIndex = n_Tabs; n_Tabs++; se_ch_p.TabStop=false; se_p_name.Dock = System.Windows.Forms.DockStyle.Left; se_p_name.Location = new System.Drawing.Point(48, 0); se_p_name.Size = new System.Drawing.Size(120, 24); se_p_name.TabIndex = n_Tabs; n_Tabs++; se_p_name.TabStop=false; se_s_nv.Location = new System.Drawing.Point(168, 0); se_s_nv.Size = new System.Drawing.Size(3, 24); se_s_nv.TabIndex = n_Tabs; n_Tabs++; se_s_nv.TabStop = false; se_p_value.Dock = System.Windows.Forms.DockStyle.Fill; se_p_value.Location = new System.Drawing.Point(171, 0); se_p_value.Size = new System.Drawing.Size(253, 24); se_p_value.TabIndex = n_Tabs; n_Tabs++; se_p_value.TabStop=false; #endregion string[] parts = item.Split(txtKeyValueSeparator.Text[0]); GET_comboBoxes[y] = new ComboBox(); GET_comboBoxes[y].Size = new System.Drawing.Size(335, 21); GET_comboBoxes[y].TabIndex = 36; GET_comboBoxes[y].Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); GET_comboBoxes[y].BackColor=Color.LightGray; GET_comboBoxes[y].Dock=DockStyle.Fill; GET_chk[y] = new DotNetSkin.SkinControls.SkinCheckBox(); GET_chk[y].Location = new Point(5,2); GET_chk[y].FlatStyle=FlatStyle.Standard; GET_chk[y].CheckState=CheckState.Checked; GET_chk[y].Text=""; GET_chk[y].Size = new System.Drawing.Size(20, 20); GET_chk[y].TabIndex=n_Tabs; n_Tabs++; GET_chk[y].TabStop=true; se_ch_p.Controls.Add(GET_chk[y]); string itemadd=string.Empty; if (parts.Length>1) { for (int u=1; u<parts.Length; u++) { itemadd += convertFromHex(parts[u])+"="; tool = new Mangled(); tool = (Mangled)work.Processed[y]; toolTip1.SetToolTip(GET_comboBoxes[y],"MD5: "+tool.varvalmd5+"\r\nSHA1: "+tool.varvalsha1+"\r\nB64dec:"+tool.varvalbase64dec+"\r\nB64enc:"+tool.varvalbase64enc); } itemadd=itemadd.Substring(0,itemadd.Length-1); } else { itemadd = ""; //toolTip1.SetToolTip(GET_comboBoxes[y],""); } GET_comboBoxes[y].Text=itemadd; GET_comboBoxes[y].Items.Add(itemadd); GET_comboBoxes[y].Items.Add("FUZZCTRL"); GET_comboBoxes[y].Items.Add("-v--shortcut to FuzzDB--v--"); //add the fuzzing strings foreach (string itemcmb in cmbCustom.Items) { GET_comboBoxes[y].Items.Add("FZ: "+itemcmb); } GET_textBoxes[y] = new TextBox(); GET_textBoxes[y].BorderStyle=BorderStyle.FixedSingle; GET_textBoxes[y].Size = new System.Drawing.Size(180, 20); GET_textBoxes[y].TabIndex = 17; GET_textBoxes[y].BackColor=Color.LightGray; GET_textBoxes[y].Dock=DockStyle.Fill; GET_textBoxes[y].Text = convertFromHex(parts[0]); GET_textBoxes[y].Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); GET_textBoxes[y].TabIndex=n_Tabs; n_Tabs++; GET_textBoxes[y].TabStop=true; se_p_name.Controls.Add(GET_textBoxes[y]); GET_comboBoxes[y].TabIndex=n_Tabs; n_Tabs++; GET_comboBoxes[y].TabStop = true; se_p_value.Controls.Add(GET_comboBoxes[y]); se_p.Controls.Add(se_p_value); se_p.Controls.Add(se_s_nv); se_p.Controls.Add(se_p_name); se_p.Controls.Add(se_ch_p); se_p.Dock = System.Windows.Forms.DockStyle.Top; se_p.Size = new System.Drawing.Size(425, 24); //add panel to the main section ct_main_p.Controls.Add(se_p); y++; GETparameters_amount++; pos+=24; } #region label System.Windows.Forms.Panel se_l = new System.Windows.Forms.Panel(); se_l.TabIndex = n_Tabs; n_Tabs++; se_l.TabStop = false; Label label_get = new Label(); label_get.Text="GET parameters"; label_get.Size = new Size(192, 21); label_get.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); label_get.Location= new Point(25,2); label_get.TabIndex = n_Tabs; n_Tabs++; se_l.Controls.Add(label_get); se_l.Dock = System.Windows.Forms.DockStyle.Top; se_l.Size = new System.Drawing.Size(425, 24); //add panel to the main section ct_main_p.Controls.Add(se_l); #endregion } #endregion #region headers and button header_textbox = new TextBox(); header_textbox.Multiline=true; header_textbox.BorderStyle=BorderStyle.FixedSingle; header_textbox.Dock=DockStyle.Fill; header_textbox.ScrollBars=ScrollBars.Both; header_textbox.Size=new Size(545,100); header_textbox.ForeColor=Color.DarkSlateGray; header_textbox.Text=work.header; header_textbox.WordWrap=false; header_textbox.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); header_textbox.TabIndex=n_Tabs; n_Tabs++; header_textbox.TabStop = true; bottom_main_panel.Controls.Add(header_textbox); #region label System.Windows.Forms.Panel se_h = new System.Windows.Forms.Panel(); se_h.TabIndex = n_Tabs; n_Tabs++; se_h.TabStop=false; Label label_hdr = new Label(); label_hdr.Text="The rest of the header:"; label_hdr.Size = new Size(192, 21); label_hdr.Font = new System.Drawing.Font("MS Reference Sans Serif", 7.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); label_hdr.Location= new Point(25,2); label_hdr.TabIndex = n_Tabs; n_Tabs++; se_h.Controls.Add(label_hdr); se_h.Dock = System.Windows.Forms.DockStyle.Top; se_h.Size = new System.Drawing.Size(425, 24); //add panel to the main section bottom_main_panel.Controls.Add(se_h); #endregion #endregion } catch {} reqeditor.SetTextSelect(); //this.Focus(); }