xGHOSTSECx

Commands For wget

Jul 5th, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.31 KB | None | 0 0
  1. ┌─[04:07:09]─────[Sebastian@GhostSec]───[87]
  2. |
  3. └─[urlcrazy]──►wget --help
  4. GNU Wget 1.21.1, a non-interactive network retriever.
  5. Usage: wget [OPTION]... [URL]...
  6.  
  7. Mandatory arguments to long options are mandatory for short options too.
  8.  
  9. Startup:
  10. -V, --version display the version of Wget and exit
  11. -h, --help print this help
  12. -b, --background go to background after startup
  13. -e, --execute=COMMAND execute a `.wgetrc'-style command
  14.  
  15. Logging and input file:
  16. -o, --output-file=FILE log messages to FILE
  17. -a, --append-output=FILE append messages to FILE
  18. -d, --debug print lots of debugging information
  19. -q, --quiet quiet (no output)
  20. -v, --verbose be verbose (this is the default)
  21. -nv, --no-verbose turn off verboseness, without being quiet
  22. --report-speed=TYPE output bandwidth as TYPE. TYPE can be bits
  23. -i, --input-file=FILE download URLs found in local or external FILE
  24. -F, --force-html treat input file as HTML
  25. -B, --base=URL resolves HTML input-file links (-i -F)
  26. relative to URL
  27. --config=FILE specify config file to use
  28. --no-config do not read any config file
  29. --rejected-log=FILE log reasons for URL rejection to FILE
  30.  
  31. Download:
  32. -t, --tries=NUMBER set number of retries to NUMBER (0 unlimits)
  33. --retry-connrefused retry even if connection is refused
  34. --retry-on-http-error=ERRORS comma-separated list of HTTP errors to retry
  35. -O, --output-document=FILE write documents to FILE
  36. -nc, --no-clobber skip downloads that would download to
  37. existing files (overwriting them)
  38. --no-netrc don't try to obtain credentials from .netrc
  39. -c, --continue resume getting a partially-downloaded file
  40. --start-pos=OFFSET start downloading from zero-based position OFFSET
  41. --progress=TYPE select progress gauge type
  42. --show-progress display the progress bar in any verbosity mode
  43. -N, --timestamping don't re-retrieve files unless newer than
  44. local
  45. --no-if-modified-since don't use conditional if-modified-since get
  46. requests in timestamping mode
  47. --no-use-server-timestamps don't set the local file's timestamp by
  48. the one on the server
  49. -S, --server-response print server response
  50. --spider don't download anything
  51. -T, --timeout=SECONDS set all timeout values to SECONDS
  52. --dns-timeout=SECS set the DNS lookup timeout to SECS
  53. --connect-timeout=SECS set the connect timeout to SECS
  54. --read-timeout=SECS set the read timeout to SECS
  55. -w, --wait=SECONDS wait SECONDS between retrievals
  56. (applies if more then 1 URL is to be retrieved)
  57. --waitretry=SECONDS wait 1..SECONDS between retries of a retrieval
  58. (applies if more then 1 URL is to be retrieved)
  59. --random-wait wait from 0.5*WAIT...1.5*WAIT secs between retrievals
  60. (applies if more then 1 URL is to be retrieved)
  61. --no-proxy explicitly turn off proxy
  62. -Q, --quota=NUMBER set retrieval quota to NUMBER
  63. --bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host
  64. --limit-rate=RATE limit download rate to RATE
  65. --no-dns-cache disable caching DNS lookups
  66. --restrict-file-names=OS restrict chars in file names to ones OS allows
  67. --ignore-case ignore case when matching files/directories
  68. -4, --inet4-only connect only to IPv4 addresses
  69. -6, --inet6-only connect only to IPv6 addresses
  70. --prefer-family=FAMILY connect first to addresses of specified family,
  71. one of IPv6, IPv4, or none
  72. --user=USER set both ftp and http user to USER
  73. --password=PASS set both ftp and http password to PASS
  74. --ask-password prompt for passwords
  75. --use-askpass=COMMAND specify credential handler for requesting
  76. username and password. If no COMMAND is
  77. specified the WGET_ASKPASS or the SSH_ASKPASS
  78. environment variable is used.
  79. --no-iri turn off IRI support
  80. --local-encoding=ENC use ENC as the local encoding for IRIs
  81. --remote-encoding=ENC use ENC as the default remote encoding
  82. --unlink remove file before clobber
  83. --xattr turn on storage of metadata in extended file attributes
  84.  
  85. Directories:
  86. -nd, --no-directories don't create directories
  87. -x, --force-directories force creation of directories
  88. -nH, --no-host-directories don't create host directories
  89. --protocol-directories use protocol name in directories
  90. -P, --directory-prefix=PREFIX save files to PREFIX/..
  91. --cut-dirs=NUMBER ignore NUMBER remote directory components
  92.  
  93. HTTP options:
  94. --http-user=USER set http user to USER
  95. --http-password=PASS set http password to PASS
  96. --no-cache disallow server-cached data
  97. --default-page=NAME change the default page name (normally
  98. this is 'index.html'.)
  99. -E, --adjust-extension save HTML/CSS documents with proper extensions
  100. --ignore-length ignore 'Content-Length' header field
  101. --header=STRING insert STRING among the headers
  102. --compression=TYPE choose compression, one of auto, gzip and none. (default: none)
  103. --max-redirect maximum redirections allowed per page
  104. --proxy-user=USER set USER as proxy username
  105. --proxy-password=PASS set PASS as proxy password
  106. --referer=URL include 'Referer: URL' header in HTTP request
  107. --save-headers save the HTTP headers to file
  108. -U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION
  109. --no-http-keep-alive disable HTTP keep-alive (persistent connections)
  110. --no-cookies don't use cookies
  111. --load-cookies=FILE load cookies from FILE before session
  112. --save-cookies=FILE save cookies to FILE after session
  113. --keep-session-cookies load and save session (non-permanent) cookies
  114. --post-data=STRING use the POST method; send STRING as the data
  115. --post-file=FILE use the POST method; send contents of FILE
  116. --method=HTTPMethod use method "HTTPMethod" in the request
  117. --body-data=STRING send STRING as data. --method MUST be set
  118. --body-file=FILE send contents of FILE. --method MUST be set
  119. --content-disposition honor the Content-Disposition header when
  120. choosing local file names (EXPERIMENTAL)
  121. --content-on-error output the received content on server errors
  122. --auth-no-challenge send Basic HTTP authentication information
  123. without first waiting for the server's
  124. challenge
  125.  
  126. HTTPS (SSL/TLS) options:
  127. --secure-protocol=PR choose secure protocol, one of auto, SSLv2,
  128. SSLv3, TLSv1, TLSv1_1, TLSv1_2 and PFS
  129. --https-only only follow secure HTTPS links
  130. --no-check-certificate don't validate the server's certificate
  131. --certificate=FILE client certificate file
  132. --certificate-type=TYPE client certificate type, PEM or DER
  133. --private-key=FILE private key file
  134. --private-key-type=TYPE private key type, PEM or DER
  135. --ca-certificate=FILE file with the bundle of CAs
  136. --ca-directory=DIR directory where hash list of CAs is stored
  137. --crl-file=FILE file with bundle of CRLs
  138. --pinnedpubkey=FILE/HASHES Public key (PEM/DER) file, or any number
  139. of base64 encoded sha256 hashes preceded by
  140. 'sha256//' and separated by ';', to verify
  141. peer against
  142. --random-file=FILE file with random data for seeding the SSL PRNG
  143.  
  144. --ciphers=STR Set the priority string (GnuTLS) or cipher list string (OpenSSL) directly.
  145. Use with care. This option overrides --secure-protocol.
  146. The format and syntax of this string depend on the specific SSL/TLS engine.
  147. HSTS options:
  148. --no-hsts disable HSTS
  149. --hsts-file path of HSTS database (will override default)
  150.  
  151. FTP options:
  152. --ftp-user=USER set ftp user to USER
  153. --ftp-password=PASS set ftp password to PASS
  154. --no-remove-listing don't remove '.listing' files
  155. --no-glob turn off FTP file name globbing
  156. --no-passive-ftp disable the "passive" transfer mode
  157. --preserve-permissions preserve remote file permissions
  158. --retr-symlinks when recursing, get linked-to files (not dir)
  159.  
  160. FTPS options:
  161. --ftps-implicit use implicit FTPS (default port is 990)
  162. --ftps-resume-ssl resume the SSL/TLS session started in the control connection when
  163. opening a data connection
  164. --ftps-clear-data-connection cipher the control channel only; all the data will be in plaintext
  165. --ftps-fallback-to-ftp fall back to FTP if FTPS is not supported in the target server
  166. WARC options:
  167. --warc-file=FILENAME save request/response data to a .warc.gz file
  168. --warc-header=STRING insert STRING into the warcinfo record
  169. --warc-max-size=NUMBER set maximum size of WARC files to NUMBER
  170. --warc-cdx write CDX index files
  171. --warc-dedup=FILENAME do not store records listed in this CDX file
  172. --no-warc-compression do not compress WARC files with GZIP
  173. --no-warc-digests do not calculate SHA1 digests
  174. --no-warc-keep-log do not store the log file in a WARC record
  175. --warc-tempdir=DIRECTORY location for temporary files created by the
  176. WARC writer
  177.  
  178. Recursive download:
  179. -r, --recursive specify recursive download
  180. -l, --level=NUMBER maximum recursion depth (inf or 0 for infinite)
  181. --delete-after delete files locally after downloading them
  182. -k, --convert-links make links in downloaded HTML or CSS point to
  183. local files
  184. --convert-file-only convert the file part of the URLs only (usually known as the basename)
  185. --backups=N before writing file X, rotate up to N backup files
  186. -K, --backup-converted before converting file X, back up as X.orig
  187. -m, --mirror shortcut for -N -r -l inf --no-remove-listing
  188. -p, --page-requisites get all images, etc. needed to display HTML page
  189. --strict-comments turn on strict (SGML) handling of HTML comments
  190.  
  191. Recursive accept/reject:
  192. -A, --accept=LIST comma-separated list of accepted extensions
  193. -R, --reject=LIST comma-separated list of rejected extensions
  194. --accept-regex=REGEX regex matching accepted URLs
  195. --reject-regex=REGEX regex matching rejected URLs
  196. --regex-type=TYPE regex type (posix|pcre)
  197. -D, --domains=LIST comma-separated list of accepted domains
  198. --exclude-domains=LIST comma-separated list of rejected domains
  199. --follow-ftp follow FTP links from HTML documents
  200. --follow-tags=LIST comma-separated list of followed HTML tags
  201. --ignore-tags=LIST comma-separated list of ignored HTML tags
  202. -H, --span-hosts go to foreign hosts when recursive
  203. -L, --relative follow relative links only
  204. -I, --include-directories=LIST list of allowed directories
  205. --trust-server-names use the name specified by the redirection
  206. URL's last component
  207. -X, --exclude-directories=LIST list of excluded directories
  208. -np, --no-parent don't ascend to the parent directory
  209.  
  210. Email bug reports, questions, discussions to <bug-wget@gnu.org>
  211. and/or open issues at https://savannah.gnu.org/bugs/?func=additem&group=wget.
Add Comment
Please, Sign In to add comment