Sha256: 3628b36b00307c4a212589387d413867fab2fc4eadacc88b76b03be2c3038401
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require 'socialinvestigator/client/net' module Socialinvestigator module CLI class Net < Thor desc "page_info URL", "Looks at a page to see what social links it finds" options [:noreverse, :debug] long_desc <<-PAGE_INFO page_info URL Looks at a page to see what social links it finds --noreverse skips the reverse ip lookup and associate whois call --debug prints out every fact that is discovered PAGE_INFO def page_info( url ) knowledge = client.get_knowledge( url, options[:noreverse], options[:debug] ) knowledge.print end desc "get_apps_json", "Download the apps.json file form Wappalyzer" def get_apps_json puts "Loading from https://raw.githubusercontent.com/ElbertF/Wappalyzer/master/share/apps.json" json_data = HTTParty.get "https://raw.githubusercontent.com/ElbertF/Wappalyzer/master/share/apps.json" Socialinvestigator::Config.config.apps_json= json_data puts "Saved" end private def client @client ||= Socialinvestigator::Client::NetClient.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialinvestigator-0.0.6 | lib/socialinvestigator/cli/net.rb |