Get the Whitepaper called Exploit Command Injection Router via reverse firmware technique.
You can download it from the following link: https://packetstormsecurity.com/files/download/158230/router-inject.pdf
Source: https://packetstormsecurity.com/files/158230/Exploit-Command-Injection-Router-Via-Reverse-Firmware-Technique.html

