def run(self): os.chdir(self.full_path) user_url = input("\nEnter a url to scan: ").strip() args = list() if confirm("Do you want to clone the site?"): args.append("--clone") if confirm("Do you want to use wayback?"): args.append("--wayback") args_str = " ".join(args) return os.system(f"python3 photon.py --url {user_url} {args_str}")
def run(self): os.chdir(self.full_path) user_url = input("\nEnter a url to scan: ").strip() args = list() if confirm("Do you want to crawl?"): args.append("--crawl") if confirm("Do you want to find hidden parameters?"): args.append("--params") args_str = " ".join(args) return os.system(f"python3 xsstrike.py --url {user_url} {args_str}")
def run(self): os.chdir(self.full_path) set_readline([]) user_domain = input("\nEnter a domain to scan: ").strip() arg = "--basic" if confirm("\nDo you want to crawl? [default=No]"): arg = "--crawl" return os.system(f"python3 hydrarecon.py {arg} -d {user_domain}")
def run(self): os.chdir(self.full_path) user_url = input("\nEnter a url to scan: ").strip() user_args = str() if confirm("\nDo you want to add any extra args?"): os.system("python3 sqlmap.py --help") user_args = input("\nEnter any extra args: ").strip() return os.system(f"python3 sqlmap.py -u {user_url} {user_args}")
def install(self, no_confirm=False, clone=True): if no_confirm or not confirm( f"\nDo you want to install https://github.com/{self.path}?"): print("Cancelled") return if clone: self.clone() if self.install_options: if clone: os.chdir(self.full_path) else: os.chdir(INSTALL_DIR) install = self.install_options if isinstance(install, dict): if "pip" in install.keys(): packages = install.get("pip") if isinstance(packages, list): message = "Do you want to install these packages?" packages_str = " ".join(packages) command = f"pip install {packages_str}" elif isinstance(packages, str): requirements_txt = os.path.join( self.full_path, "requirements.txt") message = f"Do you want to install these packages from {requirements_txt}?" command = f"pip install -r {requirements_txt}" print_pip_deps(packages) if not confirm(message): raise InstallError("User Cancelled") elif config.get("fsociety", "os") == "macos" and "brew" in install.keys( ) and which("brew"): brew_opts = install.get("brew") command = f"brew {brew_opts}" elif "linux" in install.keys() or "windows" in install.keys( ) or "macs" in install.keys(): command = install.get(config.get("fsociety", "os"), install.get("linux")) else: command = install os.system(command)
def run(self): os.chdir(self.full_path) wordlists_path = os.path.join(self.full_path, "wordlists") set_readline([]) user_query = input("\nEnter a search query: ").strip() set_readline([ f for f in os.listdir(os.path.join(self.full_path, "wordlists")) if os.path.isfile( os.path.join(os.path.join(self.full_path, "wordlists"), f)) ]) user_keywords = input( "\nEnter a keywords path [default=keywords.txt]: ").strip() if not user_keywords: user_keywords = "keywords.txt" keywords_path = os.path.join(wordlists_path, user_keywords) if confirm("\nDo you want to add a GitHub token?"): github_token = input("\nEnter a GitHub token: ").strip() os.environ["GITHUB_TOKENS"] = f"['{github_token}']" return os.system( f"python3 gitGraber.py -k {keywords_path} -q {user_query}")