Skip to content

Instantly share code, notes, and snippets.

View adityathebe's full-sized avatar
🏠
Working from home

Aditya Thebe adityathebe

🏠
Working from home
View GitHub Profile
@adityathebe
adityathebe / download-amass-bin.sh
Created January 16, 2021 06:26
Script to download amass binary
#!/bin/bash
tmp_dir='amass-temp-dir'
mkdir $temp_dir
cd $temp_dir
wget "https://github.com/OWASP/Amass/releases/download/v$1/amass_linux_amd64.zip"
unzip amass_linux_amd64.zip
rm amass_linux_amd64.zip
package main
import (
"fmt"
"net/http"
)
func handleNoCors(w http.ResponseWriter, req *http.Request) {
fmt.Println("Request received. Referer:", req.Header.Get("Referer"))
w.Write([]byte("Hello world!"))