Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 1.25 KB

File metadata and controls

70 lines (50 loc) · 1.25 KB

Miscellaneous


Table of Contents


Simple Webserver

  • Python
python3 -m http.server 9090

# Deprecated, but still sometimes an option
python2 -m SimpleHTTPServer 9090
  • Php
# Use -t to specify webroot
php -S 0.0.0.0:9090
  • Perl
# Module HTTP::Server::Brick needed
perl -MHTTP::Server::Brick -e '$s=HTTP::Server::Brick->new(port=>9090); $s->mount("/"=>{path=>"."}); $s->start'
  • Ruby
ruby -run -ehttpd . -p9090

Simple SMTP Server

  • Python
# Add -c DebuggingServer for discard msg
python3 -m smtpd -n 0.0.0.0:25

Simple SMB Server

  • Python
# Needy options: -smb2support -user USER -password PASS
# https://raw.githubusercontent.com/SecureAuthCorp/impacket/master/examples/smbserver.py
python3 smbserver.py SHARENAME .

# If impacket stuff is installed
impacket-smbserver SHARENAME .

Simple WebDAV Server

  • Python
# Maybe install package python-wsgidav/python3-wsgidav or similar, otherwise use pip/pip3 install wsgidav
wsgidav --host=0.0.0.0 --port=80 --auth=anonymous --root /directory