def nmap(): nmap.title = "Nmap : the Network Mapper " tool_dir = "/INFO-GATH/Tools/nmap" if os.path.exists('/usr/bin/nmap'): shrts.prilogspc() print("\033[92m " + nmap.title + "\033[90m") shrts.spc() target = sanitize.bash_escape_restrictor(input("Select a Target : ")) shrts.spc() print("Cheatsheets that can help you with this :") shrts.spc() print("\033[92m" + shrts.getinstalldir() + '/INFO-GATH/CHEATSHEETS/Nmap-Cheat-Sheet.pdf \033[90m') shrts.popp() os.system("nmap " + target) shrts.okinf() else: shrts.prilogspc() print("\033[92m " + nmap.title + "\033[90m") shrts.spc() print("\033[91mDownloading ...\033[0m") shrts.spc() os.system("svn checkout https://svn.nmap.org/nmap/ " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + nmap.title + "\033[90m") shrts.spc() print("\033[91mInstalling ...\033[0m.") os.system("cd " + shrts.getinstalldir() + tool_dir + " && ./configure && make -j4 && make install && cd " + shrts.getinstalldir() + tool_dir + "/ncat && ./configure && make -j4 && make install") shrts.spc() print("You can now use " + "\033[91m" + nmap.title + "\033[90m" + " from Lockdoor [\033[92m Lockdoor \033[90m ]" ) shrts.okinf()
def dirsearch(): tool_dir = "/INFO-GATH/Tools/dirsearch" dirsearch.title = "DirSearch : Web path scanner " if os.path.exists('/usr/local/bin/DirSearch'): shrts.prilogspc() os.system("git clone https://github.com/maurosoria/dirsearch.git " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + dirsearch.title + "\033[90m") shrts.spc() choice = sanitize.bash_escape_restrictor(input("Select a Target : ")) extchoice = sanitize.bash_escape_restrictor(input("Select an extention (php,asp,aspx ..) : ")) shrts.spc() print("Cheatsheets that can help you with this :") shrts.spc() print("\033[92m" + shrts.getinstalldir() + '/INFO-GATH/CHEATSHEETS/file_enumeration.md \033[92m') shrts.popp() os.system("python3 " + shrts.getinstalldir() + tool_dir + "/dirsearch.py" + " -u " + choice + " -e " + extchoice) shrts.okinf() else: shrts.prilogspc() print("\033[92m " + dirsearch.title + "\033[90m") shrts.spc() print("\033[91mDownloading ...\033[0m") shrts.spc() os.system("git clone https://github.com/maurosoria/dirsearch.git " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + dirsearch.title + "\033[90m") shrts.spc() os.system("""echo "#!/bin/bash" > /usr/local/bin/DirSearch""") os.system("""echo "#Dev : Sofiane Hamlaoui" >> /usr/local/bin/DirSearch""") os.system("echo python3 " + shrts.getinstalldir() + tool_dir + "/dirsearch.py >> /usr/local/bin/DirSearch") os.system("chmod +x /usr/local/bin/DirSearch") print("You can now use " + "\033[91m" + dirsearch.title + "\033[90m" + " from Lockdoor [\033[92m Lockdoor \033[90m ]" ) shrts.okinf()
def sqlmap(): sqlmap.title = "SQLmap : Automatic SQL injection and database takeover tool " tool_dir = "/WEB/Tools/sqlmap" if os.path.exists('/usr/bin/sqlmap'): shrts.printlogo() os.system("git clone https://github.com/sqlmapproject/sqlmap " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + sqlmap.title + "\033[90m") shrts.spc() target = input("Select a Target : ") shrts.spc() print("Check the sqli cheatsheets to know more") shrts.spc() os.system("find " + shrts.getinstalldir() + "/WEB/CHEATSHEETS/ -type f | grep sqli") shrts.popp() os.system("sqlmap -u " + target) shrts.okwe() else: shrts.prilogspc() print("\033[92m " + sqlmap.title + "\033[90m") shrts.spc() print("\033[91mDownloading ...\033[0m") shrts.spc() os.system("git clone https://github.com/sqlmapproject/sqlmap " + shrts.getinstalldir() + tool_dir + null) shrts.prilogspc() print("\033[92m " + sqlmap.title + "\033[90m") shrts.spc() shrts.prilogspc() print("\033[91mInstalling ...\033[0m.") os.system("""echo "#!/bin/bash" > /usr/local/bin/sqlmap""") os.system( """echo "#Dev : Sofiane Hamlaoui" >> /usr/local/bin/sqlmap""") os.system("echo python3 " + shrts.getinstalldir() + tool_dir + "/sqlmap.py >> /usr/local/bin/sqlmap") os.system("chmod +x /usr/local/bin/sqlmap") shrts.spc() print(("You can now use " + "\033[91m" + sqlmap.title + "\033[90m" + " from Lockdoor [\033[92m Lockdoor \033[90m ]")) shrts.okwe()