Skip to content

fix: make ping.py compatible with Python 3#16

Open
fazalpsinfo-cmyk wants to merge 1 commit into
samuel:masterfrom
fazalpsinfo-cmyk:fix/python3-compat
Open

fix: make ping.py compatible with Python 3#16
fazalpsinfo-cmyk wants to merge 1 commit into
samuel:masterfrom
fazalpsinfo-cmyk:fix/python3-compat

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Problem

The script uses deprecated Python 2 constructs like xrange, print statement syntax, and tuple unpacking in except blocks, causing syntax errors and crashes under Python 3.

Fix

Updated imports, print syntax, raw data byte conversions, and exception clauses to make the code fully compatible with Python 3.

Disclosure

Found and fixed by Muhamed Fazal PS — independent security researcher.
Support my open source security work: https://buymeacoffee.com/muhamedfazalps

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