Hi,
I cannot be sure “Open Scanner Protocol” is the right place to ask this question. If it doesn’t please let me know where I should put it…
I have some headaches about credentials which includes special characters. Specifically, if I have a character “ş” in the password I cannot complete the scan successfully.
This is the error I have:
Jul 08 06:38:51 gsm ospd-openvas[20858]: OSPD - openvas: INFO: (ospd.ospd) 67270254-a6fb-4c1b-b436-67b620254ed7: Scan started.
Jul 08 06:38:51 gsm ospd-openvas[20861]: OSPD - openvas: ERROR: (ospd.ospd) While scanning 192.168.41.5:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ospd/ospd.py", line 796, in parallel_scan
ret = self.exec_scan(scan_id, target)
File "/usr/lib/python3/dist-packages/ospd_openvas/daemon.py", line 1457, in exec_scan
'internal/%s/scanprefs' % openvas_scan_id, cred_prefs
File "/usr/lib/python3/dist-packages/ospd_openvas/db.py", line 322, in add_single_item
ctx.rpush(name, *set(values))
File "/usr/lib/python3/dist-packages/redis/client.py", line 1666, in rpush
return self.execute_command('RPUSH', name, *values)
File "/usr/lib/python3/dist-packages/redis/client.py", line 774, in execute_command
connection.send_command(*args)
File "/usr/lib/python3/dist-packages/redis/connection.py", line 620, in send_command
self.send_packed_command(self.pack_command(*args))
File "/usr/lib/python3/dist-packages/redis/connection.py", line 663, in pack_command
for arg in imap(self.encoder.encode, args):
File "/usr/lib/python3/dist-packages/redis/connection.py", line 127, in encode
value = value.encode(self.encoding, self.encoding_errors)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u015f' in position 66: ordinal not in range(256)
Jul 08 06:38:53 gsm ospd-openvas[20858]: OSPD - openvas: INFO: (ospd.ospd) 67270254-a6fb-4c1b-b436-67b620254ed7: Scan finished.