Skip to content

Instantly share code, notes, and snippets.

@viyatb
Created November 28, 2017 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viyatb/0e990923086a2dea70df0674e782f5c4 to your computer and use it in GitHub Desktop.
Save viyatb/0e990923086a2dea70df0674e782f5c4 to your computer and use it in GitHub Desktop.
owtf
SELECT COUNT(DISTINCT v.id) FROM vulns v JOIN command_register_vuln crv ON crv.vuln_id = v.id JOIN command_register cr ON crv.command_register_id = cr.id JOIN plugin_outputs po ON cr.plugin_output_id = po.id WHERE po.target_id=1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment