Skip to content

Commit

Permalink
Save changes
Browse files Browse the repository at this point in the history
  • Loading branch information
n3rada committed Oct 30, 2024
1 parent 429fbd5 commit 1dde01a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
toboggan = "toboggan.cli:console"
toboggan = "toboggan.console:run"
4 changes: 2 additions & 2 deletions toboggan/__main__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env python3

# Local library imports
from toboggan import cli
from toboggan import console


def main() -> None:
cli.console()
console.run()


if __name__ == "__main__":
Expand Down
11 changes: 6 additions & 5 deletions toboggan/cli.py → toboggan/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def banner() -> None:
banner = rf"""
banner = r"""
_____ _
/__ \___ | |__ ___ __ _ __ _ __ _ _ __
/ /\/ _ \| '_ \ / _ \ / _` |/ _` |/ _` | '_ \
Expand All @@ -23,7 +23,7 @@ def banner() -> None:
print(banner)


def console() -> None:
def run() -> None:
parser = argparse.ArgumentParser(
prog="toboggan",
add_help=True,
Expand Down Expand Up @@ -121,8 +121,9 @@ def console() -> None:

# Check for the presence of '-i' when '-s' or '-r' is specified
if (args.session or args.read_interval) and not args.interactive:
parser.error("[Toboggan] The -s and -r arguments require the -i (interactive) argument.")

parser.error(
"[Toboggan] The -s and -r arguments require the -i (interactive) argument."
)

password_param = None
password_content = None
Expand Down Expand Up @@ -162,7 +163,7 @@ def console() -> None:
executor_instance = executor.Executor(module=module_instance)

if args.clear_commands:
print(f"[Toboggan] Clear text mode activated.")
print("[Toboggan] Clear text mode activated.")
executor_instance.obfuscation = False

# You can instanciate a target that implement the Executor
Expand Down

0 comments on commit 1dde01a

Please sign in to comment.