Exemplo n.º 1
0
 public ScanWorker(ILogger <ScanWorker> logger, SecSoulService secSoulService, ShellService shellService,
                   IOptionsMonitor <PossibleScansOptions> scanOptions, VirusTotalScan virusTotalScan, NmapScan nmapScan, DirbScan dirbScan,
                   WebCrawlerService webCrawlerService, HashCheckScan hashCheckScan)
 {
     _logger            = logger;
     _secSoulService    = secSoulService;
     _shellService      = shellService;
     _possibleScans     = scanOptions.CurrentValue;
     _virusTotalScan    = virusTotalScan;
     _nmapScan          = nmapScan;
     _dirbScan          = dirbScan;
     _webCrawlerService = webCrawlerService;
     _hashCheckScan     = hashCheckScan;
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            // initialize our settings
            var uriToStart      = new Uri("https://mialkin.com/");
            var directoryToSave = new DirectoryInfo(@"C:\web-crawler-results\");

            // initialize WebCrawlerService
            var options        = new WebCrawlerOptions(uriToStart, directoryToSave);
            var crawlerService = new WebCrawlerService(options);

            // go for it!
            crawlerService.Execute();

            Console.ReadLine();
        }
        public void SetUp()
        {
            _sut = new WebCrawlerService(new TestWebPageDownloader(), new SimpleWebPageParser());

            _siteMap = _sut.CrawlWebSite("http://www.testwebsite.com/");
        }
        public void TestFixtureSetUp()
        {
            _sut = new WebCrawlerService();

            _siteMap = _sut.CrawlWebSite("http://wiprodigital.com/");
        }
Exemplo n.º 5
0
 public WebCrawlerServiceTest()
 {
     _service = new WebCrawlerService();
 }