For a small git helper script, based on this blog post, I'd like to be able to "discover" in which Git hosting app, a given remote URL (user@git.domain.tld:namespace/project.git
) points to (e.g. GitLab CE/EE, Gitea, GHE, etc).
Using curl --head
I found a wide range of "some identifying strings" to "none". So, that seems inaccurate, if fed into a heuristic. Going by the page body may provide more data for the heuristic, but seems equally crude.
Is there a more elegant or standardised way to find the app type? Something like a "server_agent"?
I understand that for security reasons, detailed info like the app version, will likely not be served. Also, I noticed that in Shodan, there is no "product" search for those apps. Does that mean it's fundamentally not possible to reliably identify them without HTML parsing?