-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add windows-specific installers for some tools
- Loading branch information
Showing
18 changed files
with
175 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from typing import Optional, Union | ||
|
||
from rich.style import Style | ||
|
||
from fsociety.console import console | ||
from fsociety.core.config import get_config | ||
|
||
# Config | ||
config = get_config() | ||
|
||
|
||
def errorhandle(error: Exception, style: Optional[Union[str, Style]] = "red") -> None: | ||
console.print(str(error), style=style) | ||
if config.getboolean("fsociety", "development"): | ||
console.print_exception() | ||
input("Press [Enter/Return] to return to menu... ") | ||
return | ||
|
||
|
||
def doexcept(error: Exception, style: Optional[Union[str, Style]] = "red") -> None: | ||
try: | ||
raise error | ||
except Exception as e: | ||
errorhandle(e, style=style) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,6 @@ def run(self): | |
|
||
def cli(): | ||
tools_cli(__name__, __tools__, links=False) | ||
|
||
|
||
__name__ = "utilities" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .cli import __tools__, cli | ||
|
||
__all__ = ["cli", "__tools__"] + [str(tool) for tool in __tools__] | ||
__all__ = ["cli", "__tools__", "__name__"] + [str(tool) for tool in __tools__] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ | |
|
||
def cli(): | ||
tools_cli(__name__, __tools__) | ||
|
||
|
||
__name__ = "information_gathering" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .cli import __tools__, cli | ||
|
||
__all__ = ["cli", "__tools__"] + [str(tool) for tool in __tools__] | ||
__all__ = ["cli", "__tools__", "__name__"] + [str(tool) for tool in __tools__] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ | |
|
||
def cli(): | ||
tools_cli(__name__, __tools__) | ||
|
||
|
||
__name__ = "networking" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .cli import __tools__, cli | ||
|
||
__all__ = ["cli", "__tools__"] + [str(tool) for tool in __tools__] | ||
__all__ = ["cli", "__tools__", "__name__"] + [str(tool) for tool in __tools__] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ | |
|
||
def cli(): | ||
tools_cli(__name__, __tools__) | ||
|
||
|
||
__name__ = "obfuscation" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .cli import __tools__, cli | ||
|
||
__all__ = ["cli", "__tools__"] + [str(tool) for tool in __tools__] | ||
__all__ = ["cli", "__tools__", "__name__"] + [str(tool) for tool in __tools__] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ | |
|
||
def cli(): | ||
tools_cli(__name__, __tools__) | ||
|
||
|
||
__name__ = "passwords" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .cli import __tools__, cli | ||
|
||
__all__ = ["cli", "__tools__"] + [str(tool) for tool in __tools__] | ||
__all__ = ["cli", "__tools__", "__name__"] + [str(tool) for tool in __tools__] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ | |
|
||
def cli(): | ||
tools_cli(__name__, __tools__) | ||
|
||
|
||
__name__ = "web_apps" |