O'Reilly logo

Metasploit Penetration Testing Cookbook - Third Edition by Monika Agarwal, Abhinav Singh, Daniel Teixeira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. When we connect to the router using the CWMP default port 7547, we get the following answer:
  1. By using curl with the -v option for verbose, we can see the request made and the reply from the router:
root@kali:~# curl -v http://89.181.67.197:7547* Rebuilt URL to: http://89.181.67.197:7547/* Trying 89.181.67.197...* TCP_NODELAY set* Connected to 89.181.67.197 (89.181.67.197) port 7547 (#0)> GET / HTTP/1.1> Host: 89.181.67.197:7547> User-Agent: curl/7.56.1> Accept: */*> < HTTP/1.1 401 Unauthorized< Connection: Keep-Alive< WWW-Authenticate: Basic realm="HuaweiHomeGateway"< Content-Length: 0< * Connection #0 to host 89.181.67.197 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required