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

runtime error #4

Closed
aligrt opened this issue Nov 5, 2018 · 4 comments
Closed

runtime error #4

aligrt opened this issue Nov 5, 2018 · 4 comments

Comments

@aligrt
Copy link

aligrt commented Nov 5, 2018

CMSmap Version: v1.0
OS Information: Kali Linux 2018.3

Following error received while scanning target, some can help please to resolve the issue.

[I] CMS Detection: WordPress
Traceback (most recent call last):
File "/root/CMSmap/cmsmap/lib/requester.py", line 31, in request
self.response = urllib.request.urlopen(self.req)
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/http/client.py", line 546, in _get_chunk_left
chunk_left = self._read_next_chunk_size()
File "/usr/lib/python3.6/http/client.py", line 513, in _read_next_chunk_size
return int(line, 16)
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/http/client.py", line 563, in _readall_chunked
chunk_left = self._get_chunk_left()
File "/usr/lib/python3.6/http/client.py", line 548, in _get_chunk_left
raise IncompleteRead(b'')
http.client.IncompleteRead: IncompleteRead(0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "cmsmap.py", line 25, in
main()
File "/root/CMSmap/cmsmap/main.py", line 174, in main
scanner.RunScanner()
File "/root/CMSmap/cmsmap/lib/scanner.py", line 40, in RunScanner
self.ForceCMSType()
File "/root/CMSmap/cmsmap/lib/scanner.py", line 49, in ForceCMSType
wpscan.WPrun()
File "/root/CMSmap/cmsmap/lib/wpscan.py", line 48, in WPrun
self.WPConfigFiles()
File "/root/CMSmap/cmsmap/lib/wpscan.py", line 125, in WPConfigFiles
requester.request(self.url + "/wp-config" + file, data=None)
File "/root/CMSmap/cmsmap/lib/requester.py", line 38, in request
self.htmltext = e.read().decode('utf-8', 'ignore')
File "/usr/lib/python3.6/tempfile.py", line 624, in func_wrapper
return func(*args, **kwargs)
File "/usr/lib/python3.6/http/client.py", line 456, in read
return self._readall_chunked()
File "/usr/lib/python3.6/http/client.py", line 570, in _readall_chunked
raise IncompleteRead(b''.join(value))
http.client.IncompleteRead: IncompleteRead(1245 bytes read)

@m7x
Copy link
Contributor

m7x commented Nov 5, 2018

It's difficult to for me to replicate the issue. It seems that website stopped to respond. Can you please provide more info such as the version of CMS that you were testing?

@m7x
Copy link
Contributor

m7x commented Nov 10, 2018

Close because no response.

@m7x m7x closed this as completed Nov 10, 2018
@faysal725
Copy link

when i tried to do a scan. I am getting this. can anyone help me
Traceback (most recent call last):
File "./cmsmap.py", line 25, in
main()
File "/root/Desktop/CMSmap/cmsmap/main.py", line 84, in main
initializer.threads = int(args.threads)
ValueError: invalid literal for int() with base 10: 'http://testphp.vulnweb.com/

@m7x
Copy link
Contributor

m7x commented Dec 12, 2018

Hi. You need to provide more info. Which system are you scanning from? Kali? Are you running the latest version? Are Exploit-db, WordPress, Joomla and Moodle git repos updated?

You have tried to scan a non-CMS website so CMSmap should return the following:

[ERROR] CMS detection failed :(
[ERROR] Use -f to force CMSmap to scan (W)ordpress, (J)oomla or (D)rupal

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