Skip to content

Commit

Permalink
Move warning to dirsearch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shelld3v committed Nov 13, 2024
1 parent f1a1d30 commit c4f15e7
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 c4f15e7

Please sign in to comment.