Advertisement
TVT618

XXEinjector Options

Jul 28th, 2018
1,663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. --host Mandatory - our IP address for reverse connections. (--host=192.168.0.2)
  2. --file Mandatory - file containing valid HTTP request with xml. You can also mark with "XXEINJECT" a point where DTD should be injected. (--file=/tmp/req.txt)
  3. --path Mandatory if enumerating directories - Path to enumerate. (--path=/etc)
  4. --brute Mandatory if bruteforcing files - File with paths to bruteforce. (--brute=/tmp/brute.txt)
  5. --logger Log results only. Do not send requests. HTTP logger looks for "p" parameter with results.
  6.  
  7. --rhost Remote host's IP address or domain name. Use this argument only for requests without Host header. (--rhost=192.168.0.3)
  8. --rport Remote host's TCP port. Use this argument only for requests without Host header and for non-default values. (--rport=8080)
  9.  
  10. --oob Out of Band exploitation method. FTP is default. FTP can be used in any application. HTTP can be used for bruteforcing and enumeration through directory listing in Java < 1.7 applications. Gopher can only be used in Java < 1.7 applications. (--oob=http/ftp/gopher)
  11. --direct Use direct exploitation instead of out of band. Unique mark should be specified as a value for this argument. This mark specifies where results of XXE start and end. Specify --xml to see how XML in request file should look like. (--direct=UNIQUEMARK)
  12. --cdata Improve direct exploitation with CDATA. Data is retrieved directly, however OOB is used to construct CDATA payload. Specify --cdata-xml to see how request should look like in this technique.
  13. --2ndfile File containing valid HTTP request used in second order exploitation. (--2ndfile=/tmp/2ndreq.txt)
  14. --phpfilter Use PHP filter to base64 encode target file before sending.
  15. --netdoc Use netdoc protocol instead of file (Java).
  16. --enumports Enumerating unfiltered ports for reverse connection. Specify value "all" to enumerate all TCP ports. (--enumports=21,22,80,443,445)
  17.  
  18. --hashes Steals Windows hash of the user that runs an application.
  19. --expect Uses PHP expect extension to execute arbitrary system command. Best works with HTTP and PHP filter. (--expect=ls)
  20. --upload Uploads specified file using Java jar schema into temp file. (--upload=/tmp/upload.txt)
  21. --xslt Tests for XSLT injection.
  22.  
  23. --ssl Use SSL.
  24. --proxy Proxy to use. (--proxy=127.0.0.1:8080)
  25. --httpport Set custom HTTP port. (--httpport=80)
  26. --ftpport Set custom FTP port. (--ftpport=21)
  27. --gopherport Set custom gopher port. (--gopherport=70)
  28. --jarport Set custom port for uploading files using jar. (--jarport=1337)
  29. --xsltport Set custom port for XSLT injection test. (--xsltport=1337)
  30.  
  31. --test This mode shows request with injected payload and quits. Used to verify correctness of request without sending it to a server.
  32. --urlencode URL encode injected DTD. This is default for URI.
  33. --nodtd If you want to put DTD in request by yourself. Specify "--dtd" to show how DTD should look like.
  34. --output Output file for bruteforcing and logger mode. By default it logs to brute.log in current directory. (--output=/tmp/out.txt)
  35. --timeout Timeout for receiving file/directory content. (--timeout=20)
  36. --contimeout Timeout for closing connection with server. This is used to prevent DoS condition. (--contimeout=20)
  37. --fast Skip asking what to enumerate. Prone to false-positives.
  38. --verbose Show verbose messages.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement