Ejemplo n.º 1
0
def setup():
    child = cmd_stat.gitclone(url_dir, git_repo, cmd_dir)
    if child != 0:
        return child

    dock_cat.cmd_cat(cmd_bin, 'cd ', cmd_dir, cmd_src)

    os.chdir(cmd_dir)
    print styles.ColorFormat.BLUE + "Running ./setup..." + styles.ColorFormat.RESET
    cmd_stat.exitcode('./setup.py')
    # Needs to be run first time to agree the license
    # And create '/etc/setoolkit/':
    print styles.ColorFormat.BLUE + "Running 'sudo ./setoolkit' for the first time (needed for configuration)..." + styles.ColorFormat.RESET
    cmd_stat.exitcode(cmd_src)

    print styles.ColorFormat.BLUE + "Connecting the Metasploit-framework to Social-engineer-toolkit"
    print "by adding METASPLOIT_PATH to /etc/setoolkit/set.config."
    print "Please type your root password:" + styles.ColorFormat.RESET

    sudo = 'sudo'
    find = 'METASPLOIT_PATH=.*'
    change = 'METASPLOIT_PATH=\/usr\/local\/share\/metasploit-framework'
    find1 = 'SENDMAIL=OFF'
    change1 = 'SENDMAIL=ON'
    filepath = '/etc/setoolkit/set.config'

    child = cmd_stat.find_and_change(sudo, find, change, filepath)
    child = cmd_stat.find_and_change(sudo, find1, change1, filepath)
    return child
Ejemplo n.º 2
0
def app_dock():
    dock_cat.cmd_cat(cmd_bin, '', '', cmd_src)
    cmd_stat.symlink(burp_jar, cmd_app)
    dock_cat.dock('others', icns_path, burp_jar)
Ejemplo n.º 3
0
def app_dock():
    dock_cat.dock('apps', '', cmd_app)
    dock_cat.cmd_cat(cmd_bin, '', '', cmd_src)
Ejemplo n.º 4
0
def app_dock():
    dock_cat.cmd_cat(cmd_app, '', '', cmd_src)
    child = dock_cat.dock('others', icns_path, cmd_app)
    return child
Ejemplo n.º 5
0
def app_dock():
    dock_cat.cmd_cat(cmd_app_arm, "", "", cmd_src_arm)
    dock_cat.dock("others", icns_path_arm, cmd_app_arm)
    dock_cat.cmd_cat(cmd_app, "", "", cmd_src)
    dock_cat.dock("others", icns_path, cmd_app)
Ejemplo n.º 6
0
def app_dock():
    dock_cat.cmd_cat(cmd_app, 'cd ', cmd_dir, cmd_src)
    dock_cat.dock('others', icns_path, cmd_app)