Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Drawing;
- using System.Data;
- using System.Diagnostics;
- using System.Windows.Forms;
- using Microsoft.VisualBasic;
- using System.Collections.Generic;
- using System.Collections;
- using System;
- using System.Text.RegularExpressions;
- using System.Text;
- using System.Net;
- using System.Runtime.CompilerServices;
- using Microsoft.VisualBasic.CompilerServices;
- namespace Combo_Leecher
- {
- public partial class Form1
- {
- private void Button1_Click(object sender, EventArgs e)
- {
- using (var X = new WebClient())
- {
- X.Encoding = Encoding.UTF8;
- X.DownloadDataCompleted += complete;
- X.DownloadDataAsync(new Uri("https://www.bing.com/search?q=site:pastebin.com+" + txtkey.Text));
- }
- }
- private void complete(object sender, DownloadDataCompletedEventArgs e)
- {
- string RS = new UTF8Encoding().GetString(e.Result);
- var M = Regex.Matches(RS, @"(https:\/\/pastebin.com\/\w+)");
- st.Text = "Status : founded Links : " + Conversions.ToString(M.Count);
- for (int i = 0, loopTo = M.Count - 1; i <= loopTo; i++)
- {
- using (var X = new WebClient())
- {
- X.DownloadStringCompleted += complete2;
- X.DownloadStringAsync(new Uri(M[i].Value));
- }
- }
- }
- private void complete2(object sender, DownloadStringCompletedEventArgs e)
- {
- 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))
- Result.AppendText(I.Groups[0].Value + Constants.vbCrLf);
- }
- private void txtkey_TextChanged(object sender, EventArgs e)
- {
- }
- private void Result_TextChanged(object sender, EventArgs e)
- {
- }
- private void Label1_Click(object sender, EventArgs e)
- {
- }
- private void st_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement