Skip to content

Instantly share code, notes, and snippets.

@YagamiShadow
Forked from sillydadddy/assetfinder.ads
Created October 19, 2021 14:41
Show Gist options
  • Select an option

  • Save YagamiShadow/b1a2e7badbfa6d3e927e49d60ca23eb8 to your computer and use it in GitHub Desktop.

Select an option

Save YagamiShadow/b1a2e7badbfa6d3e927e49d60ca23eb8 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