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

Can't run this script #3

Open
5up3rc opened this issue Feb 14, 2017 · 4 comments
Open

Can't run this script #3

5up3rc opened this issue Feb 14, 2017 · 4 comments

Comments

@5up3rc
Copy link

5up3rc commented Feb 14, 2017

When i was test,there are a lot of error codes,Can you submit the code that can run to github?

@faizann24
Copy link
Owner

Please post the error.

@5up3rc
Copy link
Author

5up3rc commented Feb 14, 2017

  1. File "script.py", line 48, in
    bady = [1 for i in range(0,len(tempXssQueries))] #labels, 1 for malicious and 0 for clean
    NameError: name 'tempXssQueries' is not defined
    2.Traceback (most recent call last):
    File "script.py", line 42, in
    d = str(urllib.unquote(d).decode('utf8'))
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xc1 in position 11: invalid start byte
    3.Traceback (most recent call last):
    File "script.py", line 33, in
    d = str(urllib.unquote(d).decode('utf8')) #converting url encoded data to simple string
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)

run in python 2.7.12
Some syntax errors have been fixed
such as line 45 and no module os

@SmartAI
Copy link

SmartAI commented Feb 15, 2017

This problem was solved in my PR #1

@5up3rc
Copy link
Author

5up3rc commented Feb 15, 2017

thank you for your work :-) it's a great project

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

3 participants