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

[Bug] => UnicodeEncodeError: 'charmap' codec can't encode character '\uff3c' #24

Closed
4 tasks done
iDuronto opened this issue Jan 7, 2019 · 0 comments · Fixed by #25
Closed
4 tasks done

[Bug] => UnicodeEncodeError: 'charmap' codec can't encode character '\uff3c' #24

iDuronto opened this issue Jan 7, 2019 · 0 comments · Fixed by #25
Assignees
Labels
bug Something isn't working resolved The error or issue is resolved!

Comments

@iDuronto
Copy link
Contributor

iDuronto commented Jan 7, 2019

Describe the bug

This is a UnicodeEncodeError bug caused due to improper usage of unicode and ascii characters.

Command You Used

$ python3 xsrfprobe.py -u http://xxxxxxx.xxx/csrf/

Full Stack Trace Error

     _____       _____       _____      _____       _____
  __|__   |_  __|___  |_  __|___  |_  _|____ |_   _|____ |_  _____   _____  ______  ______
 \  `  /    ||   ___|   ||  _  _|   ||   ___|  | |   _  |  ||  _ ,' /     \|  _   )|   ___|
  >   <     | `-.`-.    ||     \    ||   ___|  | |    __|  ||     \ |  -  || |_  { |   ___|
Traceback (most recent call last):
  File "xsrfprobe.py", line 13, in <module>
    main.Engine()  # start the Scanner Engine ;)
  File "C:\Users\user\Videos\Captures\xsrfprobe\core\main.py", line 68, in Engine
    banner()  # Print the banner
  File "C:\Users\user\Videos\Captures\xsrfprobe\core\banner.py", line 29, in banner
    print(color.RED+' /__/__\   '+color.ORANGE+'_|'+color.RED+'|______|  '+color.ORANGE+'_|'+color.RED+'|__|\__\ '+color.ORANGE+' _|'+color.RED+'|___|   '+color.ORANGE+' _|'+color.RED+' |___|   '+color.ORANGE+' _|'+color.RED+'|__|\__\\uff3c____/|______)|______| ')
  File "C:\Python37\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\uff3c' in position 68: character maps to <undefined>

Potential cause or fix

Use only ASCII characters. I'll help you out with a PR.

Environment:

  • OS: Windows 10
  • Python version: v3.7

Some Questions

  • I am using the latest version of XSFRProbe.
  • I installed the dependecies using pip3 instead of pip.
  • I have read the documentation before submitting this issue.
  • I have checked the other issues to see if someone reported this before.

Other stuff

[Something else you want the author to know?]

@iDuronto iDuronto changed the title [Bug] => UnicodeEncodeError: [Bug] => UnicodeEncodeError: 'charmap' codec can't encode character '\uff3c' Jan 7, 2019
0xInfection added a commit that referenced this issue Jan 7, 2019
@0xInfection 0xInfection added bug Something isn't working resolved The error or issue is resolved! labels Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved The error or issue is resolved!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants