Skip to content

Instantly share code, notes, and snippets.

View eagleeye's full-sized avatar
🏍️
staying alive

Andrii Shumada eagleeye

🏍️
staying alive
View GitHub Profile
@eagleeye
eagleeye / setup_ddos.bash
Last active April 6, 2022 02:04
How to setup fresh Ubuntu machine for DDOS
### I. Setup
apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
http = require "http"
proxyToHost = 'www.sandbox.prostoprint.com'
server = http.createServer (request, response) ->
delete request.headers.host
delete request.headers.hostname
request.headers['Accept'] = 'application/json'
proxiedRequest = http.request
hostname: proxyToHost