Skip to content

Instantly share code, notes, and snippets.

@dmatrixx
Forked from sillydadddy/assetfinder.ads
Created September 15, 2020 14:12
Show Gist options
  • Select an option

  • Save dmatrixx/ebba2ec501b6926fb0e49da58d5f15b1 to your computer and use it in GitHub Desktop.

Select an option

Save dmatrixx/ebba2ec501b6926fb0e49da58d5f15b1 to your computer and use it in GitHub Desktop.

Revisions

  1. @sillydadddy sillydadddy created this gist Aug 11, 2020.
    15 changes: 15 additions & 0 deletions assetfinder.ads
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@

    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

    13 changes: 13 additions & 0 deletions subfinder.ads
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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