This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before usage make sure to have a working mail setup. | |
# If you are not sure what that means and you run Ubuntu just run "apt install mailutils" and | |
# choose following settings (be sure to replace example.com with your domain): | |
# General type of mail configuration?: Internet Site | |
# System mail name: example.com | |
# Root and postmaster mail recipient: username | |
# Other destinations to accept mail for: $myhostname, example.com, mail.example.com, localhost.example.com, localhost | |
# Force synchronous updates on mail queue?: No | |
# Local networks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
To run this: python3 httpPostSplitter.py <port> | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import requests | |
# Hosts to which the post will be forwarded | |
receiver = [ |