malvads / sqlmc

Official Kali Linux tool to check all urls of a domain for SQL injections :)
https://www.kali.org/tools/sqlmc/
GNU Affero General Public License v3.0
236 stars 33 forks source link

Issue when using -d 2 #6

Closed noukin80 closed 3 months ago

noukin80 commented 3 months ago

Hi, when trying to run the program on my Kali linux I'm getting the following error:

File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/myuser/.local/lib/python3.11/site-packages/sqlmc/lib/scanner.py", line 60, in scan await asyncio.gather(*tasks) File "/home/myuser/.local/lib/python3.11/site-packages/sqlmc/lib/scanner.py", line 74, in scan_single_link await self.scan(href, depth - 1) File "/home/myuser/.local/lib/python3.11/site-packages/sqlmc/lib/scanner.py", line 45, in scan html = await self.fetch_html(url) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/myuser/.local/lib/python3.11/site-packages/sqlmc/lib/scanner.py", line 39, in fetch_html return await response.text() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/aiohttp/client_reqrep.py", line 1147, in text return self._body.decode( # type: ignore[no-any-return,union-attr] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 10: invalid continuation byte

Any way to solve it? Thank you

malvads commented 3 months ago

Hi!, are you using the pip version or you are compiling it from the repo?

malvads commented 3 months ago

Also a official release for Kali Linux is on the way https://bugs.kali.org/view.php?id=8750

noukin80 commented 3 months ago

Hi, I used the pip version using the following command: pip3 install sqlmc

malvads commented 3 months ago

Sorry for the response taking so much time, the pip version is outdated, i need to reupload again, you can try to build tehe program using the setup.py (1.1.0 this version has some fixes about the issue you are relating here.

Also the official kali linux (dev) release is done and you can use it on it

Let me know

noukin80 commented 3 months ago

No Problem, i have used the setup.py already and its sorted ;) Thank you

noukin80 commented 3 months ago

.

malvads commented 3 months ago

good to know :)