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

tilde_enum crash #35

Open
cclements opened this issue Feb 19, 2017 · 5 comments
Open

tilde_enum crash #35

cclements opened this issue Feb 19, 2017 · 5 comments
Assignees
Labels

Comments

@cclements
Copy link

tilde_enum.py` --no-check-certificate -u https://sometarget -d ../fuzzdb/discovery/predictable-filepaths/filename-dirname-bruteforce/raft-large-directories.txt -w ../fuzzdb/discovery/predictable-filepaths/filename-dirname-bruteforce/raft-large-files.txt
[-]  Testing with dummy file request https://sometarget/B9s35gaJQh.htm
[-]    URLNotThere -> HTTP Code: 404, Response Length: 1245
[-]  Testing with user-submitted https://sometarget
[-]    URLUser -> HTTP Code: 200, Response Length: 4027
[+]  The server is reporting that it is IIS (Microsoft-IIS/7.0).
[+]  The server is vulnerable to the tilde enumeration vulnerability (IIS/5|6.x)..
[-]  Finished doing the 8.3 enumeration for /.
[-]  Now starting the word guessing using word list calls
Traceback (most recent call last):
  File "tilde_enum.py", line 669, in <module>
    if __name__ == "__main__": main()
  File "tilde_enum.py", line 522, in main
    performLookups(findings, url_good)
  File "tilde_enum.py", line 375, in performLookups
    test_response_length = url_response.headers['Content-Length']
  File "/usr/lib/python2.7/rfc822.py", line 393, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'
@WebBreacher WebBreacher self-assigned this Feb 19, 2017
@WebBreacher
Copy link
Owner

WebBreacher commented Feb 19, 2017

Hello and thank you for using this script. Pasting your error in here is a great first step...but I need more information if I'm going to assist you. Here are some questions to start our conversation out. Please feel free to add more questions/answers if you feel the responses might be helpful.

  1. Are the word list files specified in your command line actually in the ../directory?
  2. Do you have permission to read the word list files specified in your command line?
  3. Could you re-run the command with the -v flag set and paste that content?

Thanks!

@WebBreacher
Copy link
Owner

Actually, I've tried to reproduce your error and am finding that, when the extension passed in via the word list is "aspx" or "aspx." then I get this same response. Can you confirm this?

@cclements
Copy link
Author

Sure enough:

[*]  Found file: (Size 4062) https://sometarget/searchresult.aspx.aspx.aspx
[+]  URL: https://sometarget/searchresult.aspx.aspx.cs  -> RESPONSE: 404
[+]  URL: https://sometarget/searchresult.aspx.aspx.designer.cs  -> RESPONSE: 404
[+]  URL: https://sometarget/searchresult.aspx.aspx.resx  -> RESPONSE: 404
[+]  URL: https://sometarget/searchresult.aspx.aspx.vb  -> RESPONSE: 404
[+]  URL: https://sometarget/searchresult.aspx.aspxx  -> RESPONSE: 404
[+]  URL: https://sometarget/searchresult.aspx.aspy  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp_  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp_files  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp-  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp.asp  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp.bak  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp.html  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp.lck  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp.old  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp1  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asp2  -> RESPONSE: 404
[+]  URL: https://sometarget/search..aspdonotuse  -> RESPONSE: 404
[+]  URL: https://sometarget/search..aspg  -> RESPONSE: 404
[+]  URL: https://sometarget/search..aspl  -> RESPONSE: 404
[+]  URL: https://sometarget/search..aspp  -> RESPONSE: 404
[+]  URL: https://sometarget/search..asps  -> RESPONSE: 404
Traceback (most recent call last):
  File "tilde_enum.py", line 669, in <module>
    if __name__ == "__main__": main()
  File "tilde_enum.py", line 522, in main
    performLookups(findings, url_good)
  File "tilde_enum.py", line 375, in performLookups
    test_response_length = url_response.headers['Content-Length']
  File "/usr/lib/python2.7/rfc822.py", line 393, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'

@WebBreacher
Copy link
Owner

Still working on this. I think there is something wrong with the getWebServerResponse() response processing as for the ASPX and some other extensions, the server is not returning expected response but instead an object. As I said, I'm working on this.

@darkmatter1505
Copy link
Contributor

darkmatter1505 commented Feb 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants