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

Maybe just some Warning! #9

Closed
Indeserpen opened this issue Nov 2, 2016 · 5 comments
Closed

Maybe just some Warning! #9

Indeserpen opened this issue Nov 2, 2016 · 5 comments

Comments

@Indeserpen
Copy link

Hello!

First amazing script, lately got more familiar with it, and now use almost in every security assesment! It helps me to get very clear insight of web application and makes job more easy! Have some ideas and functions what maybe could be added! When ready gonna let you know you!

Second thing i noticed that on large scale crawl, I,m getting this error: Database karta.db initialized, crawl started with 10 threads
[==== ] 966 of 7928 pages processed in 67 minutes Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/share/htcap/core/crawl/crawler_thread.py", line 62, in run
self.crawl()
File "/usr/share/htcap/core/crawl/crawler_thread.py", line 212, in crawl
probe = self.send_probe(request, errors)
File "/usr/share/htcap/core/crawl/crawler_thread.py", line 161, in send_probe
probeArray = self.load_probe_json(jsn)
File "/usr/share/htcap/core/crawl/crawler_thread.py", line 99, in load_probe_json
return json.loads(jsn)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 367, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 4 column 1 - line 4 column 249 (char 58 - 306)
Maybe its just my system warning! I,m Using Kali Linux but its highly modified and build up for me and maybe because of this!

It seems that there is no impact on work flow, it continues crawling and after when working on database there is no error!

Anyways good script and good luck developing it!

@segment-srl
Copy link
Collaborator

Hello!
Many thanks for your feedback! I'm always looking for good advices from users, so please feel free to contact me for any feature request, advice ecc.. !

About the warning, I believe that the json returned from phantomjs contains some garbage so the parser just rises an alert. I'm trying to figure out why it happens.

Btw I just pushed some changes so maybe the problem got fixed...

@GuilloOme
Copy link
Contributor

It seems to be the same error as the one in #11

@GuilloOme
Copy link
Contributor

@Indeserpen, what version of PhantomJS do you run in your Kali? Is it the one from the repo?

@segment-srl
Copy link
Collaborator

This issue is related to phantomjs build on some linux distros. Using the binary from the officail website should fix the problem.
Since phantomjs is no more supported, htcap is now moving to headless chrome so issue similar to this one won't be fixed.

@Tren
Copy link

Tren commented Jul 31, 2017

Ok wait for htcap update!

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

4 participants