aliasrobotics / aztarna

aztarna, a footprinting tool for robots.
https://aliasrobotics.com
GNU General Public License v3.0
89 stars 27 forks source link

Including industrial routers #15

Closed ahcorde closed 5 years ago

ahcorde commented 5 years ago

This is a WIP PR.

I'm looking for industrial routers. This first iteration is lto ook for eWON routes.

We probably need to rework a little bit this tool. The initial aim of this tool was to focus only in ROS fingerprinting. But we need to extend this tool to make it more useful including for example industrial routers or other middlewares.

Tomorrow we can discuss how to extend it

DO NOT MERGE

vmayoral commented 5 years ago

Looks pretty good to me! Can you provide a command line dump of how does it look to use your extension?

ahcorde commented 5 years ago

Just for the records:

eWon credentials (user/password): adm/adm -> http://80.11.165.82:81

🍭

vmayoral commented 5 years ago

Wow! Any robot behind the router?

El El dom, 4 nov 2018 a las 22:08, Alejandro Hernández Cordero < notifications@github.com> escribió:

Just for the records:

eWon credentials (user/password): adm/adm -> http://80.11.165.82:81

🍭

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/aliasrobotics/aztarna/pull/15#issuecomment-435706470, or mute the thread https://github.com/notifications/unsubscribe-auth/ABT8DmV9z0GPWeUHyVXjKU-A58CGGkH-ks5ur1dogaJpZM4YNdUO .

ahcorde commented 5 years ago

No in this one. I guess this is a SCADA system

captura de pantalla 2018-11-04 a las 22 26 51

I'm trying to enter in the routes with the default credendials and trying to get something else automatically. Not as easy as I was expecting.

ahcorde commented 5 years ago

Moxa routes includes a web form to login into the router. I don't know how to do it with python code.

By the way I didn't find any of these kind of routers that have default credentials:

User: admin Pass: moxa

vmayoral commented 5 years ago

This is pretty great, I'm testing different things. Can you merge it and work in master?

ahcorde commented 5 years ago

I prefer to work in this branch. I just merged with master

vmayoral commented 5 years ago

Ok, I will be making some changes in master then. You'll need to pull and rebase at the end.

ahcorde commented 5 years ago

Westermo routers:

user: admin pass: westermo

ahcorde commented 5 years ago

Not all westermo routers are returning in the header field WWW-authenticate which is need it to detect this kind of routers.

ideas?

I tried several westermo routers and all of them were using default credentials.

LanderU commented 5 years ago

Moxa routes includes a web form to login into the router. I don't know how to do it with python code.

Maybe using GET and POST methods?

XabierPB commented 5 years ago

Why is the www-authenticate header necessary to detect them?

ahcorde commented 5 years ago

The header should looks like this:

HTTP/1.1 401 Unauthorized
Server: GoAhead-Webs
Date: Wed Nov 21 15:19:38 2018
WWW-Authenticate: Basic realm="Westermo MRD-455"
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html

But some of them are not returning this field with aiohttp

ahcorde commented 5 years ago

Thanks @XabierPB and @olaldiko . Fixed

XabierPB commented 5 years ago

Hummm you are right. I think that is because the web server is using a more modern authentication type, which does not include that header field. Could you provide a sample of the "bad" header pls?:

PD: Basic auth is b-passable!

ahcorde commented 5 years ago

this IP for example: 80.27.6.40

XabierPB commented 5 years ago

header

vmayoral commented 5 years ago

@ahcorde if we're pushing this, we need it merged. Can you please give it a try?