Server
Public to the World
ngrok http <PORT>
ngrok tcp <PORT>
With tcp I can use the IP (nslookup
).
Python
python -m SimpleHTTPServer <PORT>
SMB
impacket-smbserver -smb2support <NAME_SHARE> <PATH>
You can add authentication with:
-user <USER> -password <PASS>
FTP
Allows anonymous authentication by default.
Download twisted:
sudo pip3 install twisted
Run:
sudo python3 -m twisted ftp -p 21 -r .
PHP
sudo php -S 0.0.0.0:<PORT>
File index.php
is the default.
Ruby
ruby -run -ehttpd . -p<PORT>
npm
Via Node Package Manager, the package manager for JavaScript Node.js
npm install http-server -g
Run:
http-server -p <PORT>
WebDAV
Download:
sudo pip3 install wsgidav cheroot
Run:
sudo wsgidav --host=0.0.0.0 --port=80 --root=<PATH> --auth=anonymous
Supporting collaborative content creation.
Last updated
Was this helpful?