mtd -r write openwrt-19.07.4-<hw>-squashfs-factory.img linux
replace dd-wrt with openwrt
Reply
mtd -r write openwrt-19.07.4-<hw>-squashfs-factory.img linux
curl -T openwrt-18.06.4-brcm47xx-mips74k-asus-rt-n66u-squashfs.trx tftp://192.168.1.1
log into router via ssh
opkg update opkg install tcpdump tcpdump -i eth1 -l -vvv dst port 53
save dump
tcpdump -i eth1 -l -vvv dst port 53 >> /tmp/dns.dump grep -E 'A\?' /tmp/dns.dump |sed -e 's/^.*A? //' -e 's/ .*//'|sort -u
live dns view
tcpdump -lvi any "udp port 53" 2>/dev/null | grep -E 'A\?' | awk '{print $(NF-1)}'
ssh into the box
ssh 192.168.1.1 -lroot
download image
cd /tmp wget http://downloads.lede-project.org/releases/17.01.2/targets/ar71xx/generic/lede-17.01.2-ar71xx-generic-wzr-hp-g300nh-squashfs-sysupgrade.bin
upgrade
sysupgrade -c image.bin
sysupgrade -v image.bin
apt install net-tools
ifconfig eth0 192.168.11.2 arp -s 192.168.11.1 02:aa:bb:cc:dd:1a
curl -T openwrt-19.07.4-ar71xx-generic-wzr-hp-g300nh-squashfs-tftp.bin tftp://192.168.11.1
reset all settings:
mount_root mtd -r erase rootfs_data reboot -f
specific config:
rm /etc/config/whatever config_generate