Upload file to DLink DSL-6740U routers I used this to run static tcpdump (also uploaded to this project)
telnet 192.168.1.1
Authenticate, and then
sh
On router telnet:
cat > /tmp/httpd.conf
Paste content of httpd.conf (verify line endings)
On router telnet:
busybox httpd -c /tmp/httpd.conf -h /tmp -p 8081
On router telnet:
cat > /tmp/uploader.cgi
Paste content of uploader.cgi (verify line endings), and then
chmod +x /tmp/uploader.cgi
python uploader.py <FILE>
On router telnet:
/tmp/uploaded_file
On router telnet:
ps
Look for the second httpd pid (there's no grep sadly..), and then
kill <8081 httpd pid>
/tmp/uploaded_file -ni br0 "not tcp port 23"