Beispiel #1
0
def install_dependencies():
    """
    Installs docker
    
    Reference: https://docs.docker.com/engine/installation/linux/docker-ce/debian/#install-docker-ce-1
    """
    with shared.suppress_stdout_stderr():
        installs = [
            "apt-transport-https", "ca-certificates", "curl",
            "software-properties-common"
        ]
        for item in installs:
            if (shared.is_installed(item)):
                pass
            else:
                shared.install_from_apt(item)

        # download key
        shared.download_from_http(
            "https://download.docker.com/linux/ubuntu/gpg")
        subprocess.call(["apt-key", "add", shared.INSTALL_DIR + "gpg"])

        # add to apt sources
        source_list = open("/etc/apt/sources.list.d/docker.list", "w")
        source_list.write(
            "deb [arch=amd64] https://download.docker.com/linux/debian wheezy stable\n"
        )
        source_list.close()

        #install docker
        subprocess.call(["apt-get", "update"])
        subprocess.call(["apt-get", "-y", "install", "docker-ce"])
Beispiel #2
0
def install():
    #create rubberducky dir and download duckencoder.jar
    rubberducky_dir = shared.INSTALL_DIR + "rubberducky/"
    if not os.path.exists(rubberducky_dir):
        os.makedirs(rubberducky_dir)
        shared.download_from_http(
            "https://github.com/hak5darren/USB-Rubber-Ducky/raw/master/duckencoder.jar"
        )
        os.rename(shared.INSTALL_DIR + "duckencoder.jar",
                  rubberducky_dir + "duckencoder.jar")
Beispiel #3
0
def install():
    # install java
    if os.path.isfile("/etc/apt/sources.list.d/sublime-text.list"):
        print "sublime-text already in apt sources."
        subprocess.call(["apt-get", "update"])
        shared.install_from_apt("sublime-text")
    else: # add sources and then install java
        source_list = open("/etc/apt/sources.list.d/sublime-text.list", "w")
        source_list.write("deb https://download.sublimetext.com/ apt/stable/\n")
        source_list.close()
        shared.download_from_http("https://download.sublimetext.com/sublimehq-pub.gpg")
        subprocess.call(["apt-key", "add", shared.INSTALL_DIR + "sublimehq-pub.gpg"])
        subprocess.call(["apt-get", "update"])
        shared.install_from_apt("sublime-text")
Beispiel #4
0
def install():
    if (os.path.exists(shared.INSTALL_DIR + "PowerSploit-dev")):
        pass
    else:
        shared.download_from_http(
            "https://github.com/PowerShellMafia/PowerSploit/archive/dev.zip")
        shared.unpack(shared.INSTALL_DIR + "dev.zip")
    if (os.path.exists(shared.INSTALL_DIR + "PowerUpSQL")):
        pass
    else:
        subprocess.call([
            "git", "clone", "https://github.com/NetSPI/PowerUpSQL.git",
            shared.INSTALL_DIR + "PowerUpSQL"
        ])
Beispiel #5
0
def install():
    #create cheatsheet dir
    if not os.path.exists(CHEATSHEET_DIR):
        os.makedirs(CHEATSHEET_DIR)

    cheatsheets = ["https://github.com/HarmJ0y/CheatSheets/raw/master/Beacon.pdf", "https://github.com/HarmJ0y/CheatSheets/raw/master/Empire.pdf", "https://github.com/HarmJ0y/CheatSheets/raw/master/PowerSploit.pdf", "https://github.com/HarmJ0y/CheatSheets/raw/master/PowerUp.pdf", "https://github.com/HarmJ0y/CheatSheets/raw/master/PowerView.pdf"]

    for item in cheatsheets:
        filename = item.split('/')[-1]
        if(os.path.exists(CHEATSHEET_DIR + filename)):
            pass
        else:
            shared.download_from_http(item)
            os.rename(shared.INSTALL_DIR + filename, CHEATSHEET_DIR + filename)

    if(os.path.exists(CHEATSHEET_DIR + "PowerUpSQL")):
        pass
    else:
        subprocess.call(["git", "clone", "https://github.com/NetSPI/PowerUpSQL.wiki.git", CHEATSHEET_DIR + "PowerUpSQL"])