def passsh(): shrts.clscprilo() print("\033[91mHere is the list of the files :\033[90m") print("\033[92m") os.system(" find " + shrts.getinstalldir() + "/PASSWORD/CHEATSHEETS -type f") print("\033[90m") shrts.okpa()
def dlrockyou(): shrts.printlogo() print("\033[91mDownloading ...\033[0m") shrts.spc() os.system( "wget -O " + shrts.getinstalldir() + "/PASSWORD/wordlists/rockyou.gz https://gitlab.com/kalilinux/packages/wordlists/raw/kali/master/rockyou.txt.gz" ) shrts.spc() print("\033[91mExtracting ...\033[0m") os.system("gunzip " + shrts.getinstalldir() + "/PASSWORD/wordlists/rockyou.gz") os.system("rm " + shrts.getinstalldir() + "/PASSWORD/wordlists/rockyou.txt.gz") shrts.spc() print( "Rockyou Password list downloaded successfully , you can use it from here " + shrts.getinstalldir() + "/PASSWORD/wordlists/") shrts.okpa()
def patator(): patator.title = "Patator : a multi-purpose brute-forcer, with a modular design and a flexible usage" tool_dir = "/PASSWORD/Tools/patator" if os.path.exists('/usr/local/bin/Patator'): shrts.prilogspc() os.system("git clone https://github.com/lanjelot/patator.git " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + patator.title + "\033[90m") shrts.spc() os.system("Patator") print( "You can always use Patator from Terminal [ \033[91mPatator\033[90m ]" ) shrts.okpa() else: shrts.prilogspc() print("\033[92m " + patator.title + "\033[90m") shrts.spc() print("\033[91mDownloading ...\033[0m") shrts.spc() os.system("git clone https://github.com/lanjelot/patator.git " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + patator.title + "\033[90m") shrts.spc() shrts.prilogspc() print("\033[91mInstalling ...\033[0m.") os.system("cd " + shrts.getinstalldir() + tool_dir + " && pip2 install -r requirements.txt" + null) os.system("python2 " + shrts.getinstalldir() + tool_dir + "/setup.py install" + null) os.system("""echo "#!/bin/bash" > /usr/local/bin/Patator""") os.system( """echo "#Dev : Sofiane Hamlaoui" >> /usr/local/bin/Patator""") os.system("echo python2 " + shrts.getinstalldir() + tool_dir + "/patator.py >> /usr/local/bin/Patator") os.system("chmod +x /usr/local/bin/Patator") shrts.prilogspc() print(("You can now use " + "\033[91m" + patator.title + "\033[90m" + " from Lockdoor [\033[92m Lockdoor \033[90m ]")) shrts.okpa()
def crunch(): crunch.title = "Crunch : a wordlist generator" tool_dir = "/PASSWORD/Tools/crunch" shrts.prilogspc() os.system("git clone https://github.com/crunchsec/crunch.git " + shrts.getinstalldir() + tool_dir + null) shrts.clr() shrts.prilogspc() print("\033[92m Crunch Downlaoded successfully \033[90m") shrts.spc() print("\033[92m Installig..... \033[90m") shrts.clr() shrts.spc() os.system("cd " + shrts.getinstalldir() + tool_dir + " && make -j4 && make install") shrts.spc() print("\033[92m Crunch Installed successfully \033[90m") shrts.spc() print("\033[92m use the command 'crunch' on terminal\033[90m") print( "\033[92m use 'man crunch to know more about the tool'\033[90m" ) shrts.okpa()
def Cewl(): Cewl.title = "Cewl : a Custom Word List Generator." tool_dir = "/PASSWORD/Tools/Cewl" if os.path.exists('/usr/local/bin/Cewl'): shrts.prilogspc() shrts.prilogspc() print("\033[92m " + Cewl.title + "\033[90m") shrts.spc() os.system("Cewl -h") shrts.spc() print("Use Cewl from terminal [Cewl -h]") shrts.okpa() else: shrts.prilogspc() print("\033[92m " + Cewl.title + "\033[90m") shrts.spc() print("\033[91mDownloading ...\033[0m") shrts.spc() os.system("git clone https://github.com/digininja/CeWL.git " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + Cewl.title + "\033[90m") shrts.spc() shrts.prilogspc() print("\033[91mInstalling ...\033[0m.") shrts.spc() os.system("cd " + shrts.getinstalldir() + tool_dir + " && bundle install") os.system("""echo "#!/bin/bash" > /usr/local/bin/Cewl""") os.system("""echo "#Dev : Sofiane Hamlaoui" >> /usr/local/bin/Cewl""") os.system("echo ruby " + shrts.getinstalldir() + tool_dir + "/cewl.rb >> /usr/local/bin/Cewl") os.system("chmod +x /usr/local/bin/Cewl") shrts.spc() print(("You can now use " + "\033[91m" + Cewl.title + "\033[90m" + " from Lockdoor [\033[92m Lockdoor \033[90m ]")) shrts.okpa()