Current section

Files

Jump to
sobelow lib sobelow dos.ex
Raw

lib/sobelow/dos.ex

defmodule Sobelow.DOS do
@submodules [Sobelow.DOS.StringToAtom,
Sobelow.DOS.ListToAtom,
Sobelow.DOS.BinToAtom]
use Sobelow.FindingType
def get_vulns(fun, filename, _web_root, skip_mods \\ []) do
path = Path.expand(filename, "")
|> String.replace_prefix("/", "")
allowed = @submodules -- (Sobelow.get_ignored() ++ skip_mods)
Enum.each allowed, fn mod ->
apply(mod, :run, [fun, path])
end
end
end