Skip to content

GuyLewin/DSL-6740UFileUpload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSL-6740U File Upload

Upload file to DLink DSL-6740U routers I used this to run static tcpdump (also uploaded to this project)

The steps for uploading a file

Log in and get shell

telnet 192.168.1.1

Authenticate, and then

sh

Upload temp httpd configuration

On router telnet:

cat > /tmp/httpd.conf

Paste content of httpd.conf (verify line endings)

Run temp httpd configuration on port 8081

On router telnet:

busybox httpd -c /tmp/httpd.conf -h /tmp -p 8081

Upload uploader CGI

On router telnet:

cat > /tmp/uploader.cgi

Paste content of uploader.cgi (verify line endings), and then

chmod +x /tmp/uploader.cgi

Upload file

python uploader.py <FILE>

Use the file

On router telnet:

/tmp/uploaded_file

When you're done - don't leave the httpd open!

On router telnet:

ps

Look for the second httpd pid (there's no grep sadly..), and then

kill <8081 httpd pid>

For sniffing with tcpdump

/tmp/uploaded_file -ni br0 "not tcp port 23"

About

Upload files to DLink DSL-6740 router

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published