Skip to content

Instantly share code, notes, and snippets.

@sillydadddy
Created August 11, 2020 22:38
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sillydadddy/b1726c8e8ce281d55b82d4e2a1a610e8 to your computer and use it in GitHub Desktop.
Save sillydadddy/b1726c8e8ce281d55b82d4e2a1a610e8 to your computer and use it in GitHub Desktop.
Amass lua scripts
name = "assetfinder"
type = "ext"
function vertical(ctx, domain)
print("in asset finder")
local cmd = outputdir(ctx) .. "assetfinder --subs-only " .. domain
local data = assert(io.popen(cmd))
for line in data:lines() do
newname(ctx, line)
end
data:close()
end
name = "subfinder"
type = "ext"
function vertical(ctx, domain)
print("in sub finder")
local cmd = outputdir(ctx) .. "subfinder -d " .. domain
local data = assert(io.popen(cmd))
for line in data:lines() do
newname(ctx, line)
end
data:close()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment