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

πŸ”§ UPDATED ~ obfu.py ~ Improved Encoding Handling, Error Handling, and Parameter Parsing, and BANNER! #26

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

WildWestCyberSecurity
Copy link

WAF_obfu_tool_Contribution

This PR enhances the paramEncode function and CLI behavior with the following improvements:

Key Enhancements:

βœ… Encoding Validation & Error Handling:

  • Added proper validation for encoding types, preventing crashes due to invalid charsets.
  • Implemented IBM_ENCODING_MAP for better charset mapping.
  • Used errors="replace" to handle encoding errors gracefully.

βœ… Safer Parameter Parsing:

  • Improved key-value parsing by using split("=", 1) to prevent breaking on multiple = characters in values.
  • Fixed incorrect logic in if '=' and '&' in params: condition.

βœ… CLI Behavior Improvements:

  • Improved argument parsing structure for clarity and maintainability.

πŸ’‘ Credit to: Wild West CyberSecurity & Tequila_Ninja for contributions!


Testing & Verification:

  • βœ… Successfully tested with various encoding types (utf-8, ibm037, utf-16).
  • βœ… Ensured proper error handling for unsupported encodings.
  • βœ… Verified correct behavior for URL encoding/decoding edge cases.

Ready for review and merge! πŸš€

Added encodings to help :D
Updated info menu!
Made script more convenient to use plus add some cool ascii art!
added notes
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