Skip to content

Commit 767fb19

Browse files
authored
Merge pull request #1440 from maurosoria/minor
Minor change
2 parents aa0a731 + c4f15e7 commit 767fb19

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dirsearch.py

+5
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def main():
6666

6767
options.update(parse_options())
6868

69+
if options["session_file"]:
70+
print("WARNING: Running an untrusted session file might lead to unwanted code execution!")
71+
if input("[c]ontinue / [q]uit: ") != "c":
72+
exit(1)
73+
6974
from lib.controller.controller import Controller
7075

7176
Controller()

lib/controller/controller.py

-5
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@
7272
class Controller:
7373
def __init__(self) -> None:
7474
if options["session_file"]:
75-
print("WARNING: Running an untrusted session file might lead to unwanted code execution!")
76-
interface.in_line("[c]continue / [q]uit: ")
77-
if input() != "c":
78-
exit(1)
79-
8075
self._import(options["session_file"])
8176
self.old_session = True
8277
else:

0 commit comments

Comments
 (0)