User Tools

Site Tools

tools:wget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:wget [2024/11/18 02:30] – [How to Use Wget] Humphrey Boa-Garttools:wget [2025/10/11 11:46] (current) Humphrey Boa-Gart
Line 3: Line 3:
 **Wget** is a [[tools:bash|command line]] utility for downloading things from the internet. It is very simple to use: you feed a URL to the ''wget'' command, and it downloads it. It can download pretty much anything that your web browser can, only faster and with less overhead. Because it runs in the terminal, you can also use it on remote machines to download things where there is no browser or GUI. **Wget** is a [[tools:bash|command line]] utility for downloading things from the internet. It is very simple to use: you feed a URL to the ''wget'' command, and it downloads it. It can download pretty much anything that your web browser can, only faster and with less overhead. Because it runs in the terminal, you can also use it on remote machines to download things where there is no browser or GUI.
  
-However, its simplicity belies its incredible versatility. As the [[anonymous:insurgency-wiki|Insurgency Wiki]] once said, it is //"the /i/nsurgent's Swiss army knife"//. It can do all sorts of things out of the box or with minor additional scripting, including but not limited to:+However, its simplicity belies its incredible versatility. As the [[site:insurgency-wiki|Insurgency Wiki]] once said, it is //"the /i/nsurgent's Swiss army knife"//. It can do all sorts of things out of the box or with minor additional scripting, including but not limited to:
  
   * Recursive downloads and unattended/background downloads.   * Recursive downloads and unattended/background downloads.
Line 10: Line 10:
   * Download web pages for local [[diy:archival]] or later viewing.   * Download web pages for local [[diy:archival]] or later viewing.
   * Download whole web sites and automatically convert the links to work offline as well.   * Download whole web sites and automatically convert the links to work offline as well.
-  * Downloading through proxies.+  * Downloading through proxies and [[diy:user-agent-spoofing#wget|spoofed User-Agents]]
   * Forum flooding and [[tactics:ddos|DDOS attacks]].   * Forum flooding and [[tactics:ddos|DDOS attacks]].
   * It also can be run [[wp>Headless_software|headless]] if you so desire.   * It also can be run [[wp>Headless_software|headless]] if you so desire.
Line 26: Line 26:
  
   wget <target url here>   wget <target url here>
 +
 +
 +==== Rename Downloaded Files ====
 +
 +To save the file you are downloading under a new name, use the ''-O'' flag:
 +
 +  wget -O newfilename.zip https://domain.com/oldfilename.zip
 +
 +
 +==== Download Multiple Files ====
 +
 +To provide Wget with a list of files to download, create a TXT file with one target per line, then run Wget with the ''-i'' flag:
 +
 +  wget -i /path/to/txtfile.txt
 +
 +
 +==== Download Whole Sites ====
 +
 +Use the following flags to have Wget crawl and download an entire site:
 +
 +  wget -mpEk <target url here>
 +
 +
  
  
Line 34: Line 57:
   wget ftp://user:password@host/path   wget ftp://user:password@host/path
    
 +If the FTP server is running on a non-standard port, you can specify it like this:
 +
 +  wget ftp://user:password@host:port/path
 +
 +
  
 ==== Wget with Proxies ==== ==== Wget with Proxies ====
Line 44: Line 72:
 ===== Weaponized Wget ===== ===== Weaponized Wget =====
  
-[[anonymous:anonops|AnonOps]] has devised several ways to deploy Wget **offensively**. Some of these methods are outlined below:+[[anonymous:anonops|AnonOps]] has devised several ways to deploy Wget **offensively**. Some of these methods are outlined below //(more methods coming eventually)//:
  
  
Line 63: Line 91:
 ===== Further Documentation ===== ===== Further Documentation =====
  
-Run ''wget -h'' or ''man wget'' to bring up more information about Wget in your terminal.+Run ''wget -h'' or ''man wget'' to bring up more information about Wget's available options in your terminal.
  
 Or visit the [[https://www.gnu.org/software/wget/manual/wget.html|official site]] for even more detailed information.  Or visit the [[https://www.gnu.org/software/wget/manual/wget.html|official site]] for even more detailed information. 
tools/wget.1731897005.txt.gz · Last modified: (external edit)

Find this page online at: https://bestpoint.institute/tools/wget