Skip to content

GS105Ev2 - Cannot Login #98

@Hannes1909

Description

@Hannes1909

Hi, i just booted up a brand new GS105Ev2 only to realize it does not have some monitoring features i guessed from a "smart" and "managed" switch in 2023 - I was about to return the switch when I stumbled upon your tool, great work, btw!

Sadly i cant seem to get a successful authentication via the python script:

  retrieve_interval: 20.0
  retries: 10
  host: "0.0.0.0"
  port: 9493
switches:
  - hostname: 192.168.178.10
    password: Admin123
~/  prosafe_exporter /config.yml -vvv
INFO:ProSafeExporter:Created retriever for host 192.168.178.10
INFO:ProSafeExporter:ProSafeExporter is listening on 0.0.0.0:9493 for request on /metrics endpoint (but you can also use any other path)
INFO:ProSafeExporter:Retrieving data from all devies
INFO:ProSafeExporter:Start retrieval for 192.168.178.10
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.178.10:80
DEBUG:urllib3.connectionpool:http://192.168.178.10:80 "GET /login.htm HTTP/1.1" 200 None
WARNING:ProSafeExporter:Your switch 192.168.178.10 uses an old firmware which sends your password unencrypted while retrieving data. Please conscider updating
DEBUG:urllib3.connectionpool:Resetting dropped connection: 192.168.178.10
DEBUG:urllib3.connectionpool:http://192.168.178.10:80 "POST /login.cgi HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Resetting dropped connection: 192.168.178.10
DEBUG:urllib3.connectionpool:http://192.168.178.10:80 "GET /switch_info.htm HTTP/1.1" 200 None
ERROR:ProSafeExporter:Login failed for 192.168.178.10
ERROR:ProSafeExporter:Failed to refrieve for host 192.168.178.10
INFO:ProSafeExporter:Retrieving done
^CINFO:ProSafeExporter:ProSafeExporter was stopped

When i perform the login manually via browser it works - at first i had set up another password, but figured maybe it was to long or complex, so i redacted it to "Admin123" which still only works for the Web-Login.

Thanks for any hints on this!
KR, Hannes

The switch is running the following firmware:

Bootloader Version | V1.6.0.2-VB
Firmware Version | V1.6.0.11

When I try to open the URLs in the verbose output in my browser it only results in blank pages (red bar only to censor bookmarks ;-) - the "login.cgi" page is working as expected in browser and shows the default login for the web GUI:
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions