This is a script to act as a redirector or proxy that just sends all traffic received to the specified endpoint.
This was developed to be used as a way to create a C2 channel at ease for Azure Apps in use for subdomain takeover type vulnerabilities.
This code is published for educational purposes and reference only.
https://vincentyiu.co.uk/red-team/attack-infrastructure/azure-apps-for-command-and-control