mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Extract raw remote URLs in http-git.
This commit is contained in:
@@ -227,6 +227,11 @@ function action(host, port)
|
||||
if ok(".git/config") then
|
||||
local config = replies[".git/config"].body
|
||||
|
||||
-- Try to extract URLs of all remotes.
|
||||
for url in string.gmatch(config, "\n%s*url%s*=%s*(%S*/%S*)") do
|
||||
out:insert("Remote: " .. url)
|
||||
end
|
||||
|
||||
-- These are some popular / well-known Git hosting services and/or hosting services
|
||||
-- that allow deployment via 'git push'
|
||||
local popular_remotes = {
|
||||
|
||||
Reference in New Issue
Block a user