Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #157394
    Diego PérezDiego Pérez
    Moderator

    Hi!
    I don’t have the codes, just follow the instructions in the course to be able to make it work with python 3, the error you are getting is covered in the lecture.

    Greetings!
    Diego

    #160839
    icare90
    Participant

    Hello Diego,
    The full lecture is based on python2.
    I didn’t manage to fix the code to make it work with python3.
    Still this object type issue for the serialization.

    Your help would be welcome.
    And more generally speaking, a course updated for python3 would be a plus.

    def reliable_send(self, data):
    json_data = json.dumps(data).encode()
    self.connection.send(json_data)

    def reliable_receive(self):
    json_data =””
    while True:
    try:
    json_data = json_data + self.connection.recv(1024).decode()
    return json.loads(json_data)
    except ValueError:
    continue

    def execute_remotely(self, command):
    self.reliable_send(command)
    return self.reliable_receive()

    #161229
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Where is the error being showed? In the listener or backdoor? Can you share a screenshot of it? Also share some screenshots of the code because it doesn’t have any indentation.

    Greetings!
    Diego

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Privacy Overview
ZSecurity logo featuring a stylized red letter Z

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

3rd Party Cookies

This website uses Google Analytics and Linkedin to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookies enabled helps us to improve our website.