Beispiel #1
0
def show():
    shrts.clscprilo()
    print("""

    #############################################################
    #                   Lockdoor Framework                      #
    #  A Penetration Testing framework with CyberSec Resources  #
    #############################################################
    #    -- Version: v2.2.4 15/08/2020                          #
    #    -- Developer: Sofiane Hamlaoui                         #
    #    -- Thanks: No One                                      #
    #############################################################

                        \033[94m-[!]-Description-[!]-\033[91m
   LockDoor is a Framework aimed at helping penetration testers,
   bug bounty hunters And cyber security engineers.
   This tool is designed for Debian/Ubuntu/ArchLinux based
   distributions to create a similar and familiar distribution
   for Penetration Testing. But containing the favorite and the most used tools by
   Pentesters.
   As pentesters, most of us has his personal ' /pentest/ ' directory so this
   Framework is helping you to build a perfect one.
    """)
    shrts.oktocont()
    main.menu()
Beispiel #2
0
def wtpp():
    shrts.clscprilo()
    print("\033[91mHere is the list of the files :\033[90m")
    print("\033[92m")
    os.system("     find " + shrts.getinstalldir() + "/WALK -type f")
    print("\033[90m")
    shrts.spc()
    shrts.oktocont()
    main.menu()
def psafrt():
    shrts.clscprilo()
    print("\033[91mHere is the list of the files :\033[90m")
    print("\033[92m")
    os.system("     find " + shrts.getinstalldir() +
              "/REPORT/TEMPLATES/ -type f")
    print("\033[90m")
    shrts.spc()
    shrts.oktocont()
    main.menu()
Beispiel #4
0
def theHarvester():
    theHarvester.title = "theHarvester : E-mails, subdomains and names Harvester "
    tool_dir = "/INFO-GATH/Tools/theHarvester"
    if os.path.exists('/usr/local/bin/theHarvester'):
        shrts.prilogspc()
        os.system("git clone https://github.com/laramies/theHarvester.git " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + theHarvester.title + "\033[90m")
        shrts.spc()
        target = input("Select a Target : ")
        shrts.spc()
        print("Cheatsheets that can help you with this :")
        shrts.spc()
        print("\033[92m" + shrts.getinstalldir() +
              '/PASSWORD/wordlists/others/names.txt \033[90m')
        shrts.spc()
        shrts.oktocont()
        target = " -d " + target
        shrts.spc()
        print(""" Sources :
            baidu, bing, bingapi, censys, crtsh, dnsdumpster,
            dogpile, duckduckgo, exalead, github-code, google,
            hunter, intelx, linkedin, netcraft, securityTrails,
            threatcrowd, trello, twitter, vhost, virustotal, yahoo
            """)
        shrts.spc()
        source = input("Select a Soruce (Ex : bing,google,baidu) : ")
        shrts.prilogspc()
        os.system("theHarvester" + target + " -l 500 -b " + source)
        shrts.okinf()
    else:
        shrts.prilogspc()
        print("\033[92m           " + theHarvester.title + "\033[90m")
        shrts.spc()
        print("\033[91mDownloading ...\033[0m")
        shrts.spc()
        os.system("git clone https://github.com/laramies/theHarvester.git " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + theHarvester.title + "\033[90m")
        shrts.spc()
        shrts.prilogspc()
        print("\033[91mInstalling ...\033[0m.")
        shrts.spc()
        os.system("cd " + shrts.getinstalldir() + tool_dir +
                  " && pip3 install -r " + shrts.getinstalldir() + tool_dir +
                  "/requirements.txt" + null)
        os.system("cd " + shrts.getinstalldir() + tool_dir + " && python3 " +
                  shrts.getinstalldir() + tool_dir + "/setup.py install" +
                  null)
        os.system("ln -s /usr/bin/theHarvester /usr/local/bin/theHarvester")
        print("You can now use " + "\033[91m" + theHarvester.title +
              "\033[90m" + " from Lockdoor [\033[92m Lockdoor \033[90m ]")
        shrts.okinf()
Beispiel #5
0
def lockdoor():
    shrts.clr()
    shrts.printlogo()
    shrts.spc()
    choiceupdate = input("        \033[92m[Confirmation]\033[90m\033[94m You want to update Lockdoor and all tools ? (Y / N) : \033[90m")
    if not choiceupdate in no:
        print("\033[92mUpdating Lockdoor...\033[90m")
        shrts.spc()
        os.system('pip install --upgrade lockdoor')
        shrts.spc()
        shrts.oktocont()
        print("\033[92mUpdating The Tools...\033[90m")
        shrts.spc()
        os.system('sudo find ' + shrts.getinstalldir() + ' -type d -name .git -exec sh -c "cd \"{}\"/../ && git pull --ff-only origin master" \;')
        shrts.clr()
        main.menu()
Beispiel #6
0
def XSStrike():
    XSStrike.title = "XSStrike : The Most advanced XSS scanner."
    tool_dir = "/WEB/Tools/XSStrike"
    if os.path.exists('/usr/local/bin/XSStrike'):
        shrts.prilogspc()
        os.system("git clone  https://github.com/s0md3v/XSStrike.git " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + XSStrike.title + "\033[90m")
        shrts.spc()
        shrts.spc()
        print("\033[92mCheatsheets that can help you with this :")
        shrts.spc()
        os.system("find " + shrts.getinstalldir() +
                  "/WEB/CHEATSHEETS/ -type f | grep xss")
        print("\033[90m")
        shrts.spc()
        shrts.oktocont()
        os.system("XSStrike")
        shrts.okwe()
    else:
        shrts.prilogspc()
        print("\033[92m           " + XSStrike.title + "\033[90m")
        shrts.spc()
        print("\033[91mDownloading ...\033[0m")
        shrts.spc()
        os.system("git clone https://github.com/s0md3v/XSStrike.git " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + XSStrike.title + "\033[90m")
        shrts.spc()
        shrts.prilogspc()
        print("\033[91mInstalling ...\033[0m.")
        shrts.spc()
        os.system("cd " + shrts.getinstalldir() + tool_dir +
                  " && pip3 install -r " + shrts.getinstalldir() + tool_dir +
                  "/requirements.txt" + null)
        os.system("""echo "#!/bin/bash" > /usr/local/bin/XSStrike""")
        os.system(
            """echo "#Dev : Sofiane Hamlaoui" >> /usr/local/bin/XSStrike""")
        os.system("echo python3 " + shrts.getinstalldir() + tool_dir +
                  "/xsstrike.py >> /usr/local/bin/XSStrike")
        os.system("chmod +x /usr/local/bin/XSStrike")
        shrts.spc()
        print("You can now use " + "\033[91m" + XSStrike.title + "\033[90m" +
              " from Lockdoor [\033[92m Lockdoor \033[90m ]")
        shrts.okwe()
Beispiel #7
0
def BruteXSS():
    BruteXSS.title = "BruteXSS :  BruteXSS is a tool to find XSS vulnerabilities in web application "
    tool_dir = "/WEB/Tools/BruteXSS"
    if os.path.exists('/usr/local/bin/BruteXSS'):
        shrts.prilogspc()
        os.system("git clone https://github.com/rajeshmajumdar/BruteXSS " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + BruteXSS.title + "\033[90m")
        shrts.spc()
        print("\033[92mCheatsheets that can help you with this :")
        shrts.spc()
        os.system("find " + shrts.getinstalldir() +
                  "/WEB/CHEATSHEETS/ -type f | grep xss")
        print("\033[90m")
        shrts.spc()
        shrts.oktocont()
        os.system("BruteXSS")
        shrts.okwe()
    else:
        shrts.prilogspc()
        print("\033[92m           " + BruteXSS.title + "\033[90m")
        shrts.spc()
        print("\033[91mDownloading ...\033[0m")
        shrts.spc()
        os.system("git clone https://github.com/rajeshmajumdar/BruteXSS " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + BruteXSS.title + "\033[90m")
        shrts.spc()
        shrts.prilogspc()
        print("\033[91mInstalling ...\033[0m.")
        shrts.spc()
        os.system("""echo "#!/bin/bash" > /usr/local/bin/BruteXSS""")
        os.system(
            """echo "#Dev : Sofiane Hamlaoui" >> /usr/local/bin/BruteXSS""")
        os.system("echo python2 " + shrts.getinstalldir() + tool_dir +
                  "/brutexss.py >> /usr/local/bin/BruteXSS")
        os.system("chmod +x /usr/local/bin/BruteXSS")
        print(("You can now use " + "\033[91m" + BruteXSS.title + "\033[90m" +
               " from Lockdoor [\033[92m Lockdoor \033[90m ]"))
        shrts.okwe()