diff --git a/routersploit/core/exploit/shell.py b/routersploit/core/exploit/shell.py index eb8e1c73..b1060047 100644 --- a/routersploit/core/exploit/shell.py +++ b/routersploit/core/exploit/shell.py @@ -178,7 +178,7 @@ def serve_forever(self, content): class Communication: - def __init__(self, exploit, payload, options, location="", wget_options={}, echo_options={}, exec_binary=None): + def __init__(self, exploit, payload, options, location="", wget_options=None, echo_options=None, exec_binary=None): self.exploit = exploit self.payload = payload self.options = {option[0]: option[1] for option in options} @@ -187,8 +187,8 @@ def __init__(self, exploit, payload, options, location="", wget_options={}, echo self.location = location # transfer techniques - self.wget_options = wget_options - self.echo_options = echo_options + self.wget_options = wget_options if wget_options is not None else {} + self.echo_options = echo_options if echo_options is not None else {} # process of executing payload self.exec_binary = exec_binary