Implementing -T for --graphql dumps (and using it in vuln-test to prevent CI timeouts)

This commit is contained in:
Miroslav Štampar 2026-11-12 16:14:55 +01:00
parent 2530de4c1f
commit ca698bb7ec
3 changed files with 6 additions and 2 deletions

View file

@ -1651,6 +1651,10 @@ def _enumerate(oracle):
conf.dumper.singleString("GraphQL database tables [%d]:\n%s" % (
len(tables), _grid(["table"], [[_] for _ in tables])))
# Note: honoring -T (as in case of regular SQL enumeration)
if conf.tbl:
tables = [_ for _ in tables if _.lower() in set(__.lower() for __ in conf.tbl.split(','))]
for table in tables:
parsed = _dumpTable(infer, dialect, table)
if not parsed: