Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions routersploit/core/exploit/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand Down