Advertisement
LaPanthere

Bypass Hyperfilter (Shitty Method)

Jul 5th, 2013
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1.         private void bypassHF(string mainurl)
  2.         {
  3.             //global variable that you must create
  4.             // WebBrowser wb = new WebBrowser() { ScriptErrorsSuppressed = true };
  5.             Uri url = new Uri(mainurl);
  6.             wb.Url = url;
  7.             wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wb_doccom);
  8.         }
  9.         private void wb_doccom(object sender, WebBrowserDocumentCompletedEventArgs e)
  10.         {
  11.             string value = wb.Document.Cookie;
  12.             string[] separators = { "=" };
  13.             string[] words = value.Split(separators, StringSplitOptions.RemoveEmptyEntries);
  14.             string cvalue = Regex.Replace(words[1], @";.*", "");
  15.  
  16.             System.Net.Cookie c = new System.Net.Cookie { };
  17.             c.Name = words[0];
  18.             c.Value = cvalue;
  19.             c.Domain = wb.Url.Host;
  20.            
  21.             //reconfigure this to your liking
  22.             //textBox1.Text = c.ToString();
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement