示例#1
0
def revsh():
    shrts.clscprilo()
    print("\033[91mHere is the list of the files :\033[90m")
    print("\033[92m")
    os.system("     find " + shrts.getinstalldir() +
              "/REVERSE/CHEATSHEETS/ -type f")
    print("\033[90m")
    shrts.okrev()
示例#2
0
def radar2():
    radar2.title = "Radar 2 : unix-like reverse engineering framework"
    tool_dir = "/REVERSE/Tools/radar2"
    shrts.prilogspc()
    os.system("git clone https://github.com/radare/radare2.git " +
              shrts.getinstalldir() + tool_dir + null)
    shrts.clscprilo()
    print("\033[92m           Radar2 Downlaoded successfully \033[90m")
    shrts.spc()
    print("\033[92m           Check " + shrts.getinstalldir() + tool_dir +
          " Folder\033[90m")
    shrts.okrev()
示例#3
0
def dllrunner():
    dllrunner.title = "Dllrunner : a smart DLL execution script for malware analysis"
    tool_dir = "/REVERSE/Tools/dllrunner"
    shrts.prilogspc()
    os.system("git clone https://github.com/Neo23x0/DLLRunner " +
              shrts.getinstalldir() + tool_dir + null)
    shrts.clr()
    shrts.prilogspc()
    print("\033[92m           Dllrunner Downlaoded successfully \033[90m")
    shrts.spc()
    print("\033[92m           Check " + shrts.getinstalldir() + tool_dir +
          " Folder\033[90m")
    shrts.okrev()
示例#4
0
def Dnspy():
    Dnspy.title = "Dnspy : reverses the bytes of a file"
    tool_dir = "/REVERSE/Tools/Dnspy"
    shrts.prilogspc()
    os.system("git clone https://github.com/0xd4d/dnSpy.git " +
              shrts.getinstalldir() + tool_dir + null)
    shrts.clr()
    shrts.prilogspc()
    print("\033[92m           Dnspy Downlaoded successfully \033[90m")
    shrts.spc()
    print("\033[92m           Check " + shrts.getinstalldir() + tool_dir +
          " Folder\033[90m")
    shrts.okrev()
示例#5
0
def mirror():
    mirror.title = "mirror : reverses the bytes of a file"
    tool_dir = "/REVERSE/Tools/mirror"
    shrts.prilogspc()
    os.system("git clone https://github.com/guelfoweb/mirror.git " +
              shrts.getinstalldir() + tool_dir + null)
    shrts.clr()
    shrts.prilogspc()
    print("\033[92m           Mirror Downlaoded successfully \033[90m")
    shrts.spc()
    print("\033[92m           Check " + shrts.getinstalldir() + tool_dir +
          " Folder\033[90m")
    shrts.okrev()
示例#6
0
def yara():
    yara.title = "YARA :  a tool to identify and classify malwares "
    tool_dir = "/REVERSE/Tools/yara"
    shrts.prilogspc()
    print("\033[92m           Installing \033[90m")
    shrts.spc()
    os.system("pip install yara-python")
    shrts.clr()
    shrts.prilogspc()
    print("\033[92m           YARA Downlaoded successfully \033[90m")
    shrts.spc()
    print(
        "\033[92m           Check YARA Docs to learn more about the tool\033[90m"
    )
    print("\033[92m           https://yara.readthedocs.io/en/latest/\033[90m")
    shrts.okrev()
示例#7
0
def angrio():
    angrio.title = "angrio : a python framework for analyzing binaries"
    tool_dir = "/REVERSE/Tools/angrio"
    shrts.prilogspc()
    print("\033[92m           Installing \033[90m")
    shrts.spc()
    os.system("pip install angr ")
    shrts.clr()
    shrts.prilogspc()
    print("\033[92m           Dnspy Downlaoded successfully \033[90m")
    shrts.spc()
    print(
        "\033[92m           Check Angr.io docs to learn more about the tool \033[90m"
    )
    print("\033[92m           https://github.com/angr/angr-doc \033[90m")
    shrts.okrev()
示例#8
0
def miasm():
    miasm.title = "miasm : Reverse engineering framework"
    tool_dir = "/REVERSE/Tools/miasm"
    shrts.prilogspc()
    os.system("git clone https://github.com/cea-sec/miasm.git " +
              shrts.getinstalldir() + tool_dir + null)
    shrts.prilogspc()
    os.system("cd " + shrts.getinstalldir() + tool_dir +
              " && python2 setup.py build")
    os.system("cd " + shrts.getinstalldir() + tool_dir +
              " && python2 setup.py install")
    shrts.spc()
    print("\033[92m           Miasm Downlaoded successfully \033[90m")
    shrts.spc()
    print("\033[92m           Check " + shrts.getinstalldir() + tool_dir +
          " Folder\033[90m")
    shrts.okrev()
示例#9
0
def virustotal():
    virustotal.title = "VirusTotal tools"
    tool_dir = "/REVERSE/Tools/virustotal"
    if os.path.exists('/usr/local/bin/virustotal'):
        shrts.prilogspc()
        os.system("git clone https://github.com/botherder/virustotal.git " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + virustotal.title + "\033[90m")
        shrts.spc()
        key = sanitize.bash_escape_restrictor(
            input("\033[92mEnter the Virtustoal Api  ? : \033[90m"))
        outp = sanitize.bash_escape_restrictor(
            input(
                "\033[92mEnter directory containing files to scan ? : \033[90m"
            ))
        os.system("python2 " + shrts.getinstalldir() + tool_dir +
                  "/vt.py --key " + key + " " + outp)
        shrts.okrev()
    else:
        shrts.prilogspc()
        print("\033[92m           " + virustotal.title + "\033[90m")
        shrts.spc()
        print("\033[91mDownloading ...\033[0m")
        shrts.spc()
        os.system("git clone  https://github.com/botherder/virustotal.git  " +
                  shrts.getinstalldir() + tool_dir + null)
        shrts.prilogspc()
        print("\033[92m           " + virustotal.title + "\033[90m")
        shrts.spc()
        shrts.prilogspc()
        print("\033[91mInstalling ...\033[0m.")
        shrts.spc()
        os.system("""echo "#!/bin/bash" > /usr/local/bin/virustotal""")
        os.system(
            """echo "#Dev : Sofiane Hamlaoui" >> /usr/local/bin/virustotal""")
        os.system("echo python2 " + shrts.getinstalldir() + tool_dir +
                  "/vt.py >> /usr/local/bin/virustotal")
        os.system("chmod +x /usr/local/bin/virustotal")
        print(("You can now use " + "\033[91m" + virustotal.title +
               "\033[90m" + " from Lockdoor [\033[92m Lockdoor \033[90m ]"))
        shrts.okrev()