private void _btnStartFolder_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(folderBrowser.SelectedPath)) { _lblDir.Text = "Select a dir, dork"; return; } string[] files = Directory.GetFiles(folderBrowser.SelectedPath, "*.txt", SearchOption.AllDirectories); _resultAction = new Action <IRequest>(Write); _pageCounterAction = new Action(UpdateSiteCount); FileSaver.FileName = "SocialiteFindings-" + DateTime.Now.ToString("MM-dd-yyyy-hh-mm-ss") + ".txt"; foreach (string file in files) { string[] lines = File.ReadAllLines(file); foreach (string line in lines) { if (String.IsNullOrEmpty(line)) { continue; } CrawlerContext.Initialize(); CrawlerContext.LightMode = true; CrawlerContext.Depth = 4; CrawlerContext.SetURL(line); Crawler.CrawlSite(_resultAction, _pageCounterAction); } } }
private void Form1_Load(object sender, EventArgs e) { _radBrute.Checked = true; CrawlerContext.Initialize(); _pnlPortsSelect.Visible = false; _txtURL.Text = "blackdoorsec.net"; _chkScreenshot.Enabled = false; }
private void Form1_Load(object sender, EventArgs e) { CrawlerContext.Initialize(); CrawlerContext.LightMode = true; _txtURL.Text = "https://www.buzzfeed.com";//"http://www.algolia.com/press";// foreach (string domain in Common.CommonDomainData.Select(x => x.DomainName)) { _lstTarget.Items.Add(domain); } }