Advertisement
Dgame321

Untitled

Oct 3rd, 2019
5,919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. using System.Drawing;
  2. using System.Data;
  3. using System.Diagnostics;
  4. using System.Windows.Forms;
  5. using Microsoft.VisualBasic;
  6. using System.Collections.Generic;
  7. using System.Collections;
  8. using System;
  9. using System.Text.RegularExpressions;
  10. using System.Text;
  11. using System.Net;
  12. using System.Runtime.CompilerServices;
  13. using Microsoft.VisualBasic.CompilerServices;
  14.  
  15. namespace Combo_Leecher
  16. {
  17. public partial class Form1
  18. {
  19. private void Button1_Click(object sender, EventArgs e)
  20. {
  21. using (var X = new WebClient())
  22. {
  23. X.Encoding = Encoding.UTF8;
  24. X.DownloadDataCompleted += complete;
  25. X.DownloadDataAsync(new Uri("https://www.bing.com/search?q=site:pastebin.com+" + txtkey.Text));
  26. }
  27. }
  28.  
  29. private void complete(object sender, DownloadDataCompletedEventArgs e)
  30. {
  31. string RS = new UTF8Encoding().GetString(e.Result);
  32. var M = Regex.Matches(RS, @"(https:\/\/pastebin.com\/\w+)");
  33. st.Text = "Status : founded Links : " + Conversions.ToString(M.Count);
  34. for (int i = 0, loopTo = M.Count - 1; i <= loopTo; i++)
  35. {
  36. using (var X = new WebClient())
  37. {
  38. X.DownloadStringCompleted += complete2;
  39. X.DownloadStringAsync(new Uri(M[i].Value));
  40. }
  41. }
  42. }
  43. private void complete2(object sender, DownloadStringCompletedEventArgs e)
  44. {
  45. foreach (Match I in new Regex(@"[a-zA-Z0-9._%+-]+@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}:(?:[a-zA-Z0-9]{5,})").Matches(e.Result))
  46. Result.AppendText(I.Groups[0].Value + Constants.vbCrLf);
  47. }
  48.  
  49. private void txtkey_TextChanged(object sender, EventArgs e)
  50. {
  51. }
  52.  
  53. private void Result_TextChanged(object sender, EventArgs e)
  54. {
  55. }
  56.  
  57. private void Label1_Click(object sender, EventArgs e)
  58. {
  59. }
  60.  
  61. private void st_Click(object sender, EventArgs e)
  62. {
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement