Unverified Commit 84bd8407 authored by Christian Clauss's avatar Christian Clauss Committed by GitHub
Browse files

Ignore a FileNotFoundError if we are already in the Brute_Force directory

Fixes: #356
parent 9b900d87
Loading
Loading
Loading
Loading
+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}"])