Skip to content

Fix Python 3 compatibility and runtime errors#16

Open
senpai80085 wants to merge 2 commits intoTarlogicSecurity:masterfrom
senpai80085:fix/python3-compatibility
Open

Fix Python 3 compatibility and runtime errors#16
senpai80085 wants to merge 2 commits intoTarlogicSecurity:masterfrom
senpai80085:fix/python3-compatibility

Conversation

@senpai80085
Copy link

Summary

This PR fixes Python 3 compatibility issues in chankro.py that prevent the tool
from running on modern systems.

Changes

  • Converted Python 2 print statements to Python 3 syntax
  • Fixed inconsistent indentation (tabs vs spaces)
  • Replaced bare except statements with IOError handling
  • Corrected bytes vs string handling for base64-encoded data
  • Preserved original exploit logic and CLI behavior

Testing

  • Python 3.11
  • Windows 11
  • Verified with:
    • python3 -m py_compile chankro.py
    • python3 chankro.py --help

@senpai80085
Copy link
Author

Summary

This PR fixes Python 3 compatibility issues in chankro.py that prevent the tool from running on modern systems.

Changes

  • Converted Python 2 print statements to Python 3 syntax
  • Fixed inconsistent indentation (tabs vs spaces)
  • Replaced bare except statements with IOError handling
  • Corrected bytes vs string handling for base64-encoded data
  • Preserved original exploit logic and CLI behavior

Testing

  • Python 3.11

  • Windows 11

  • Verified with:

    • python3 -m py_compile chankro.py
    • python3 chankro.py --help

Note:
There are older open PRs addressing Python 3 compatibility.
This PR focuses strictly on fixing runtime errors and Python 3
breakages while preserving original exploit logic and behavior.

No features were added and no payload logic was modified.
Tested on Python 3.11.

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

Successfully merging this pull request may close these issues.

1 participant