# 1. Footprinting IoT and OT devices

## 1. Gather Information using Online Footprinting Tools

The information regarding the target IoT and OT devices can be acquired using various online sources such as Whois domain lookup, advanced Google hacking, and Shodan search engine. The gathered information can be used to scan the devices for vulnerabilities and further exploit them to launch attacks.

> In this Lab, we will focus on performing footprinting on the MQTT protocol, which is a machine-to-machine (M2M)/“Internet of Things” connectivity protocol. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.

{% embed url="<https://www.whois.com/whois>" %}

{% embed url="<https://www.oasis-open.org/>" %}
Oasis is an organization that has published the MQTT v5.0 standard, which represents a significant leap in the refinement and capability of the messaging protocol that already powers IoT
{% endembed %}

You can perform whois analysis on OASIS website who have actually developed the MQTT protocol.

<figure><img src="/files/2Yf2cWPTC9CJzs2qifVu" alt=""><figcaption></figcaption></figure>

Whois lookup reveals available information on a hostname, IP address, or domain.

You can look for dorks related to IoT devices on google hacking database.

{% embed url="<https://www.exploit-db.com/google-hacking-database>" %}

<figure><img src="/files/O5CUga45NUw1VTJukfXJ" alt=""><figcaption></figcaption></figure>

Using SCADA as a search query

```
"login" intitle:"scada login"
 intitle:"index of" scada
```

You can also use Shodan to footprint IoT devices.

{% embed url="<https://account.shodan.io/login>" %}

Port 1833 is default MQTT port

```
port:1833

Search for Modbus-enabled ICS/SCADA systems:
port:502

Search for SCADA systems using PLC name:
“Schneider Electric”

Search for SCADA systems using geolocation:
SCADA Country:"US"
```

<figure><img src="/files/igiO7B0pjNAiLuRddurZ" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/pg-7M0UbCLA>" %}
IoT OSINT complete tutorial
{% endembed %}

{% embed url="<https://www.udemy.com/course/ethical-hacker-practical/?referralCode=289CF01CF51246BCAD6C>" %}
CEHv13 Prep Course
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ceh-practical.cavementech.com/module-18.-iot-and-ot-hacking/1.-footprinting-iot-and-ot-devices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
