Unverified Commit a4e0390f by Marcin Bury Committed by GitHub

Check if the app is run in python3 (#438)

parent 9944047e
......@@ -131,7 +131,7 @@ def shell(exploit, architecture="", method="", payloads=None, **params):
elf_binary = payload.generate_elf(data)
communication = Communication(exploit, elf_binary, options, **params)
if communication.wget() is False:
print_error("Exploit failed to transfer payload")
print_error("Exploit failed to transfer payload")
continue
elif method == "echo":
......
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import sys
if sys.version_info.major < 3:
print("RouterSploit supports only Python3. Rerun application in Python3 environment.")
exit(0)
import logging.handlers
from routersploit.interpreter import RoutersploitInterpreter
log_handler = logging.handlers.RotatingFileHandler(filename="routersploit.log", maxBytes=500000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment