1
0
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:
david
2012-07-26 06:00:47 +00:00
parent 8f907ae853
commit c367d03916

View File

@@ -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 = {