#!/usr/bin/python3
''' search with extantion and not extantion'''
import sys
from termcolor import colored
try:
        website=str(sys.argv[1])
        if ("http" not in website) and ("https" not in website):
                website="http://"+website
        if not website[-1]=='/':
                website=website+'/'

        wordlist = ['/root/tools/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt',
                    '/root/tools/SecLists/Discovery/Web-Content/big.txt',
                    '/root/tools/SecLists/Discovery/Web-Content/raft-large-directories-lowercase.txt',""]

        for i in wordlist:
            g=colored(i.split('/')[-1],'red')
            if i:
                print("")
                print("@@@@@@@@@@@@ With The List "+g+" "+"@" *23)
                print("")
                print("ffuf -c -w " +i + " -fc 401  -u "+ website +"FUZZ")
                print("wfuzz -w " + i + "  --hc 404  -u " + website + "FUZZ")
                print("dirb " + website + " " + i)
                print("gobuster dir -u " + website + " -w " + i + "  --no-error")
                print("dirsearch  -u " + website + " -w " + i)

                print("")
                print("@@@@@@@@@@@@ With The List " + g + " And "+colored('Extension','yellow')+" @@@@@@@@@")
                print("")
                print("ffuf -c -w " +i + " -fc 401  -u "+ website +"FUZZ  -e '.asp,.aspx,.php,.txt,.exe,.html,.js,.sh'")
                print("wfuzz -w " + i + " -z list,txt-php-sh-bak-html-js-php.bak --hc 404  -u " + website + "FUZZ.FUZ2Z")
                print("dirb " + website + " " + i + " -X php,txt,sh,js,html,exe")
                print("gobuster dir -u " + website + " -w " + i + "  --no-error -x asp,aspx,php,txt,exe,html,js,sh")
                print("dirsearch  -u " + website + " -w " + i + " -e php,html,js,asp,aspx,txt,exe,sh")
            else:
                print("")
                print("@@@@@@@@@@@@ With The Default List @@@@@@@@@")
                print("")
                print("dirb " + website)
                print("dirsearch  -u " + website )

except:
        print("Enter website/IP")
