Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sockets require bytes to be sent. #1

Open
W1ntrMut3 opened this issue Nov 5, 2022 · 1 comment
Open

Sockets require bytes to be sent. #1

W1ntrMut3 opened this issue Nov 5, 2022 · 1 comment

Comments

@W1ntrMut3
Copy link

Hi there! Thanks for the great tool. I found that it did not initially work until I edited the sock.send blocks to send bytes instead of str.

Ie:

sock.send(bytes(self._from(), 'UTF-8'))

Also python finds an inconsistency in tabs vs spaces in the print('[+] Exploited. Check your listener') statement.

Again thank you for this nifty tool.

@DenShaKun
Copy link

Yep, correct. I had the same issue as well.

In order to fix those two issues, you need two steps.

  1. For the inconsistency in tabs vs spaces issue, just use VScode and go to view-->command palette and then type "Convert Indentation to Spaces" then press enter. The IDE will do it for you.

  2. For the bytes issue, you will have to change all of the lines with "sock.sent(self.XXXX())" to "sock.send(bytes(self.XXXX(), 'UTF-8'))"

I have tested myself, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants