def __init__(self, agent, proxy, redirect, timeout, url, cookie): self.url = url self.cookie = cookie self.output = output.Output() self.request = request.Request(agent=agent, proxy=proxy, redirect=redirect, timeout=timeout)
Services.register("output", Output()) Services.register( "request_factory", Request(url=self.url, agent=args.user_agent, proxy=args.proxy, redirect=args.redirect, timeout=args.timeout)) # Display target and scan starting time self.bn.preamble(self.url) # Run the fingerprint modules self.ma.fingerprints(args.fingerprint, args.user_agent, args.proxy, args.redirect, args.timeout, self.url, args.cookie) # Run the crawler to discover urls discovered_urls = self.ma.crawler(self.url, args.user_agent) # Run the attack modules on discovered urls self.ma.attacks(args.attack, self.url, discovered_urls) if __name__ == "__main__": try: Sitadel().main() except KeyboardInterrupt: sys.exit( output.Output().error('Interruption by the user, Quitting...'))
), ) # Display target and scan starting time self.bn.preamble(self.url) # Run the fingerprint modules self.ma.fingerprints( args.fingerprint, args.user_agent, args.proxy, args.redirect, args.timeout, self.url, args.cookie, ) # Run the crawler to discover urls discovered_urls = self.ma.crawler(self.url, args.user_agent) # Run the attack modules on discovered urls self.ma.attacks(args.attack, self.url, discovered_urls) if __name__ == "__main__": try: Sitadel().main() except KeyboardInterrupt: sys.exit( output.Output().error("Interruption by the user, Quitting..."))
self.bn.preamble(self.url) # Run the fingerprint modules self.ma.fingerprints(args.fingerprint, args.user_agent, args.proxy, args.redirect, args.timeout, self.url, args.cookie) # Run the crawler to discover urls discovered_urls = self.ma.crawler(self.url, args.user_agent) # Run the attack modules self.ma.attacks(args.attack, self.url, discovered_urls) def target(self, url): try: u = urlparse(url) if u.scheme and u.netloc: return u.geturl() else: raise ValueError( 'Url not valid, please try with a valid target url!') except ValueError as e: print(e) sys.exit(2) if __name__ == "__main__": try: Linguini().main() except KeyboardInterrupt: sys.exit(output.Output().error('Keyboard Interrupt by User!!'))