Unverified Commit c9deb216 authored by Hardik Zinzuvadiya's avatar Hardik Zinzuvadiya Committed by GitHub
Browse files

Merge pull request #387 from cclauss/patch-3

Use Python os.makedirs() instead of os.makedir()
parents 64a46031 84bd8407
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -102,8 +102,7 @@ if __name__ == "__main__":

            with open(fpath) as f:
                archive = f.readline()
                if not os.path.exists(archive):
                    os.mkdir(archive)
                os.mkdirs(archive, exist_ok=True)
                os.chdir(archive)
                AllTools().show_options()

+4 −1
Original line number Diff line number Diff line
# coding=utf-8
import contextlib
import os
import subprocess

@@ -48,6 +49,8 @@ class Faceshell(HackingTool):
    def run(self):
        name = input("Enter Username >> ")
        wordlist = input("Enter Wordlist >> ")
        # Ignore a FileNotFoundError if we are already in the Brute_Force directory
        with contextlib.suppress(FileNotFoundError):
            os.chdir("Brute_Force")
        subprocess.run(
            ["python3", "Brute_Force.py", "-f", f"{name}", "-l", f"{wordlist}"])