Skip to content

Commit

Permalink
Merge pull request #1440 from maurosoria/minor
Browse files Browse the repository at this point in the history
Minor change
  • Loading branch information
maurosoria authored Dec 18, 2024
2 parents aa0a731 + c4f15e7 commit 767fb19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions dirsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def main():

options.update(parse_options())

if options["session_file"]:
print("WARNING: Running an untrusted session file might lead to unwanted code execution!")
if input("[c]ontinue / [q]uit: ") != "c":
exit(1)

from lib.controller.controller import Controller

Controller()
Expand Down
5 changes: 0 additions & 5 deletions lib/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@
class Controller:
def __init__(self) -> None:
if options["session_file"]:
print("WARNING: Running an untrusted session file might lead to unwanted code execution!")
interface.in_line("[c]continue / [q]uit: ")
if input() != "c":
exit(1)

self._import(options["session_file"])
self.old_session = True
else:
Expand Down

0 comments on commit 767fb19

Please sign in to comment.