Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Commit

Permalink
release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekultek committed Oct 30, 2016
1 parent 2b2d3cc commit 8cfa12e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions whitewidow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,11 @@ def vulnerability_check
FORMAT.info("#{OPTIONS[:run]} runs completed successfully.")
when OPTIONS[:spider]
begin
spider = BlackWidow::RecursiveSpider.new(OPTIONS[:spider])
link_arr = spider.pull_links
data = spider.follow_links(link_arr)
arr = SPIDER_BOT.pull_links(OPTIONS[:spider])
SPIDER_BOT.follow_links(arr)
FORMAT.info("Found a total of #{File.open("tmp/blackwidow_log.txt").readlines.size} links. Running them as file..")
system("ruby whitewidow.rb --banner -f tmp/blackwidow_log.txt")
File.truncate("tmp/blackwidow_log.txt", 0)
rescue *SPIDER_ERRORS
FORMAT.err("#{OPTIONS.spider} encountered an error, skipping..")
end
Expand Down

0 comments on commit 8cfa12e

Please sign in to comment.