aliasrobotics / aztarna

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

Error when valid ROScore is found #9

Closed LanderU closed 6 years ago

LanderU commented 6 years ago
lander@MacBook-Pro-de-Lander:~/github/zmap_results (master)$ aztarna -t ros -p 11311 -a 35.190.193.187
[-] Error connecting to host http://35.190.193.187:11311: 'NoneType' object has no attribute 'group'
    Not a ROS host

Node: /talker XMLRPCUri: http://:

     Published topics:
         * /chatter(Type: std_msgs/String)
         * /rosout(Type: rosgraph_msgs/Log)

     Subscribed topics:

     Services:
         * /talker/set_logger_level
         * /talker/get_loggers

Node: /rosout XMLRPCUri: http://:

     Published topics:
         * /rosout_agg(Type: rosgraph_msgs/Log)

     Subscribed topics:
         * /rosout(Type: rosgraph_msgs/Log)

     Services:
         * /rosout/get_loggers
         * /rosout/set_logger_level

     Communication 0:
         - Publishers:
            /talker XMLRPCUri: http://:
         - Topic: /chatter(Type: std_msgs/String)
         - Subscribers:

     Communication 1:
         - Publishers:
            /talker XMLRPCUri: http://:
         - Topic: /rosout(Type: rosgraph_msgs/Log)
         - Subscribers:
            /rosout XMLRPCUri: http://:

     Communication 2:
         - Publishers:
            /rosout XMLRPCUri: http://:
         - Topic: /rosout_agg(Type: rosgraph_msgs/Log)
         - Subscribers:

Thanks @abilbaotm

XabierPB commented 6 years ago

is 35.190.193.187 still up @LanderU @abilbaotm ? I can't replicate the error on that exact host.

LanderU commented 6 years ago

Is working for me:

lander@MacBook-Pro-de-Lander:~$ date && aztarna -t ros -p 11311 -a 35.190.193.187
martes,  4 de septiembre de 2018, 11:23:33 CEST
[-] Error connecting to host http://35.190.193.187:11311: 'NoneType' object has no attribute 'group'
    Not a ROS host

Node: /talker XMLRPCUri: http://:

     Published topics:
         * /chatter(Type: std_msgs/String)
         * /rosout(Type: rosgraph_msgs/Log)

     Subscribed topics:

     Services:
         * /talker/set_logger_level
         * /talker/get_loggers

Node: /rostopic_14205_1535996049161 XMLRPCUri: http://:

     Published topics:
         * /rosout(Type: rosgraph_msgs/Log)

     Subscribed topics:

     Services:
         * /rostopic_14205_1535996049161/get_loggers
         * /rostopic_14205_1535996049161/set_logger_level

Node: /rosout XMLRPCUri: http://:

     Published topics:
         * /rosout_agg(Type: rosgraph_msgs/Log)

     Subscribed topics:
         * /rosout(Type: rosgraph_msgs/Log)

     Services:
         * /rosout/get_loggers
         * /rosout/set_logger_level

     Communication 0:
         - Publishers:
            /talker XMLRPCUri: http://:
         - Topic: /chatter(Type: std_msgs/String)
         - Subscribers:

     Communication 1:
         - Publishers:
            /talker XMLRPCUri: http://:
            /rostopic_14205_1535996049161 XMLRPCUri: http://:
         - Topic: /rosout(Type: rosgraph_msgs/Log)
         - Subscribers:
            /rosout XMLRPCUri: http://:

     Communication 2:
         - Publishers:
            /rosout XMLRPCUri: http://:
         - Topic: /rosout_agg(Type: rosgraph_msgs/Log)
         - Subscribers:
lander@MacBook-Pro-de-Lander:~$ ping 35.190.193.187
PING 35.190.193.187 (35.190.193.187): 56 data bytes
64 bytes from 35.190.193.187: icmp_seq=0 ttl=52 time=33.088 ms
64 bytes from 35.190.193.187: icmp_seq=1 ttl=52 time=32.857 ms
XabierPB commented 6 years ago

I am a genius. I was setting the port 13311. Sorry :S

XabierPB commented 6 years ago

Fixed. The bug came from a '-' in the URL. Our regex didn't filter that character. So fixed.

XabierPB commented 6 years ago

PS: Thanks to @LanderU "the bug hunter"