You've already forked hackingtool
mirror of
https://github.com/Z4nzu/hackingtool.git
synced 2025-07-11 14:30:25 +02:00
Ignore a FileNotFoundError if we are already in the Brute_Force directory
Fixes: #356
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
# 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}"])
|
||||
|
Reference in New Issue
Block a user