|
| 1 | +Attack Surface Detector CLI |
| 2 | +https://github.com/secdec/attack-surface-detector-cli |
| 3 | + |
| 4 | +A tool to detect endpoints from source code. Can output these endpoints in multiple JSON formats, |
| 5 | +or output to the console (by default) to inspect the quality and coverage of the detected endpoints. |
| 6 | + |
| 7 | +Usage: |
| 8 | + java -jar attack-surface-detector-cli.jar <source-code-path> [flags] |
| 9 | + |
| 10 | +Flags: |
| 11 | + -debug -- Print debug information during endpoint detection |
| 12 | + |
| 13 | + -simple -- Print only endpoint detection summary, without the full list |
| 14 | + of detected endpoints |
| 15 | + |
| 16 | + -path-list-file=<PATH> -- Detect endpoints from all source code paths listed in the given file |
| 17 | + |
| 18 | + -defaultFramework=<FRAMEWORK> -- Parse the source code using the given framework type |
| 19 | + Available values: |
| 20 | + DETECT : Attempt to automatically detect the framework |
| 21 | + JSP : Java JSP/Servlets |
| 22 | + SPRING_MVC : Java Spring MVC |
| 23 | + STRUTS : Java Struts |
| 24 | + DOT_NET_MVC : ASP.NET MVC/WebAPI |
| 25 | + DOT_NET_WEB_FORMS : ASP.NET Web Forms |
| 26 | + PYTHON : Django |
| 27 | + Rails : Ruby on Rails |
| 28 | + |
| 29 | + -help -- Displays this message |
| 30 | + |
| 31 | +[JSON Output] |
| 32 | + -json -- Print only simple-format JSON to the console |
| 33 | + Simple-format JSON uses a common format for all generated endpoints |
| 34 | + regardless of framework. |
| 35 | + |
| 36 | + -full-json -- Print full JSON information to the console |
| 37 | + Full-format JSON uses unique data formats depending on the framework |
| 38 | + that declared the endpoints. Should be used with the |
| 39 | + astam-correlator.threadfix-ham module available on Maven. |
| 40 | + |
| 41 | + -output-file=<PATH> -- Writes generated JSON to the specified file path. |
| 42 | + Must be used with the -json or -full-json flags; otherwise, has no effect. |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | +[Quality Testing] |
| 47 | + -validation-server=<BASE_URL> -- Run HTTP requests against the detected endpoints relative to the |
| 48 | + given BASE_URL; ie http://localhost:8080/mywebapp |
| 49 | + |
| 50 | + -validation-server-auth=<CREDS> -- Use the given HTTP headers when validating endpoints against |
| 51 | + a test server. Takes the format: "HEADER=VALUE;HEADER=VALUE;..." |
| 52 | + Must be used with the -validation-server flag; otherwise, has |
| 53 | + no effect. |
0 commit comments