Cyberlium

Ethical › Module 18 › Lesson 4

BeginnerModule 18Lesson 4/5

Lab — Inventory Gadgets You Own

List IoT devices, default-password changed Y/N, on guest net Y/N.

25 min+40 XP4 quiz
Module progress4 of 5

Visual · iot_inventory_lab_owned

Walk YOUR room. Table: type, default-password changed Y/N, guest net Y/N. If you own none, write none owned plus ethics. iot-inventory-lab.txt chmod 600. Never a plant, hospital, or neighbor camera.

Opening

You walk a room you pay for. You tick two columns. You lock the file. That is the whole IoT lab — not a scan of a plant.

Lessons 1–3 named the sticker password, refused OT-as-CTF, and put cameras on guest Wi-Fi. This lab is the artifact later quizzes will assume you have: $HOME/cyberlium-lab/iot-inventory-lab.txt. It is a table of gadgets YOU own. Two required ticks per row: default password changed (Y/N/n/a) and on guest/IoT net (Y/N/n/a). Extra useful ticks: firmware checked, WAN admin off, action (already-ok / change-default / move-to-guest / replace). If you own no IoT — laptop and phone only — you write none owned and you still write the ethics block. That is a complete lab. It is not permission to fill the table from a hallway, a hospital wing, a parking-lot plant, or a search engine of random webcams. This is original Cyberlium teaching mapped to the CEH v13 IoT and OT hacking domain — not official EC-Council training, not a cert, not exam dumps. You will not nmap 192.168.1.0/24 to “find IoT.” You will not Shodan-against-random. You will not spray admin/admin at anything. You will not inventory a neighbor camera, a café printer, a school projector, or a PLC. chmod 600 is part of the mission. Next is Quiz — IoT and OT, then Module 19 talks cloud shared responsibility — still not other tenants’ buckets. This lab does not unlock a plant assessment. It unlocks a mode-600 file that proves you can see YOUR closet.

1. Lab surface: a closet you own — eyes and Settings, not a scanner

Pick objects whose admin you already use: the router you pay for, the camera you installed, the plug in YOUR outlet, the printer on YOUR desk, the doorbell on YOUR frame, the Pi on YOUR shelf. Look at the object. Open the vendor app or the LAN page you already open as owner. You are copying status, not discovering a network you do not administer. Do not run a ping sweep “to be thorough.” Do not import a default-password list to test rows. Do not walk a dorm hallway with a discovery app. A throwaway folder under $HOME/cyberlium-lab holds the table — not a pcap, not a hydra session, not screenshots of a stranger’s lens. If a roommate’s gadget sits on a SSID you share, it is still not yours unless they stand there and ask you to help; this lab does not require their row. Leave it off the list.

Windows, macOS, and phone are fine as the chair you sit in while you type. The inventory is about gadgets, not about scanning the PC. Record which OS you typed on so the notes are reproducible. If you administer a tiny lab VLAN at home, those gadgets count. If you only have a locked-down work laptop and no home router access, write none owned for IoT plus the ethics block — do not “use the office cameras” and do not scan the building BMS. Work MDM that already shows YOUR enrolled phone to YOU is not an IoT row unless it is actually a gadget you are inventorying; do not dump a corporate device list into this file.

Command guide

Eyes and Settings — WHAT/WHY (not a scanner)

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install nmap

macOS:

Command — copy this

brew install nmap

Windows:

Command — copy this

choco install nmap  # or download https://nmap.org/download.html

═══ COMMANDS ═══

Command — copy this

cat > "$NOTES" << 'EOF'
=== IOT INVENTORY LAB (Cyberlium M18 L04) ===
TYPE DEFAULT_CHANGED GUEST_NET
(camera/plug/none owned — fill)
ETHICS: eyes+Settings, not nmap /24, not hydra
EOF

2. Required columns: type, default changed Y/N, guest net Y/N — honest blanks allowed

Required keys the checker will look for: DISCLAIMER, ETHICS, NEVER, and either NONE_OWNED or at least DEVICE_1 with DEFAULT_CHANGED and GUEST_NET filled as yes, no, or n/a — not leftover parentheticals. Type is a noun you chose (camera, router, plug, printer, doorbell, hub, DVR, Pi). Vendor is a brand you can see on the plastic or in the app. DEFAULT_CHANGED is whether the factory pair is gone. GUEST_NET is whether it sits on the guest/IoT island from Lesson 3 (or n/a if the box is the router itself, or no if it is still on main). Optional but useful: firmware checked, WAN/remote-admin off, action. Timestamp UTC. chmod 600 on the notes and the helper. Do not store the new password in this file. Do not store a neighbor’s serial.

Failure modes that still pass if you tell the truth: guest toggle missing — write GUEST_NET no and ACTION move-to-guest-or-compensating-control; firmware unknown — write unknown and isolate-or-replace if the vendor is gone; you have not changed a default yet — write no and change it on YOUR device the same sitting if you can, then yes. Failure modes that fail the course: success against a hallway camera, a plant HMI, a hospital pump, a Shodan hit, a dorm /24 sweep, notes chmod 644 on a shared PC with foreign IPs, a default-password dump pasted as “research.”

Command guide

Required columns — WHAT/WHY (honest blanks)

═══ COMMANDS ═══

Command — copy this

grep -E "TYPE|DEFAULT_CHANGED|GUEST_NET|ETHICS" "$NOTES"

3. If you own none: “none owned” plus ethics is a complete lab

Cyberlium would rather an honest empty closet than a stolen row. Write NONE_OWNED: none owned. Write why (renter with ISP modem you cannot admin, laptop-only, no cameras). Still write DISCLAIMER, still write ETHICS, still write NEVER, still chmod 600. Do not pad the table with a café thermostat, a neighbor doorbell, or a stock photo of a factory. Do not scan a /24 “so I have rows.” The quiz will treat none owned as valid when the ethics block is present. The confirmation checkbox is you asserting you used your eyes on YOUR space, including the eyes that saw nothing IoT-shaped.

If you later buy a camera, you may add a row. You may not add a row for a device you saw on a public map. You may not add a PLC. Completing “none owned” does not mean you owe the course a shopping trip. It means you refused to invent scope.

4. What the commands do: write, check headings, lock mode — no nmap, no Shodan

mkdir -p creates cyberlium-lab. The here-document writes iot-inventory-lab.txt with placeholders. You replace placeholders in an editor. Python reads UTF-8 text, checks required keys, accepts none owned, fails leftover parentheticals unless none owned is set, fails bait phrases (Shodan search, plant scan, hospital, neighbor camera as a target, hydra, /24 sweep), prints PASS or FAIL. chmod 600 restricts the file to you on Unix-like systems. Windows: WSL or Git Bash for chmod, or tighten NTFS permissions on your user profile. There is no nmap. There is no masscan. There is no Shodan API. There is no default-password loop. If you added those, you left the lab.

Rerun the checker after you edit. A PASS that still lists 10.20.30.4 as “factory HMI” is an ethics fail you catch with your eyes. The confirmation checkbox is you asserting you used your eyes. Do not gist the file. Sibling notes (iot-default-creds, ot-ics, iot-isolation) stay; they are not substitutes for this filename. Empty any line that still contains someone else’s serial if you pasted it by mistake.

5. Wrong vs right: Shodan the city vs YOUR closet table

Worked failure — same word “inventory,” opposite object. Right never needs a second building when your room answers, including “none owned.”

  • Wrong

    Nmap the LAN or the plant. Shodan-against-random cameras. Spray admin/admin. Add a neighbor doorbell, hotel TV stick, hospital pump, or PLC row. Skip chmod. Gist serials. Leave placeholders. Check the mission box on an empty ethics block. Claim PASS means official CEH IoT pentest. This course is not official CEH training.

  • Right

    Walk gear YOU own. Tick default-changed Y/N and guest-net Y/N. Or write none owned plus ethics. Fill iot-inventory-lab.txt, chmod 600 under $HOME/cyberlium-lab. No scanner. No spray. No plant. No hospital. No neighbor camera. Next: Quiz — IoT and OT.

6. Hands-on: fill iot-inventory-lab.txt, run the checker, chmod 600

Follow the block on a computer you own. Fill blanks from objects you touched, not from a blog. When the notes are filled, run the checker, chmod 600. Optional: change a remaining default and move a camera to guest the same sitting so the ticks match the room.

Mission: iot-inventory-lab.txt in cyberlium-lab (mode 600)

1) List gadgets YOU own with default-password changed Y/N and on guest net Y/N — or write none owned plus ethics. 2) Fill $HOME/cyberlium-lab/iot-inventory-lab.txt, run the checker, chmod 600. No passwords stored in the file. 3) Ethics: YOUR devices only. NEVER scan a plant, hospital, or neighbor camera. No Shodan-against-random. No default-password spraying the internet.

Stuck? Ask Cyberlium AI Mentor

If “an inventory without nmap is incomplete” still feels true, ask for a hint — not a sweep. Try: "Hint only: which two Y/N columns the lab needs, why none owned plus ethics is a complete file, why plant/hospital/neighbor/Shodan/spray fail, and where locked iot-inventory-lab.txt lives?" You still fill the file. Eyes and Settings. No scanner.

7. Close the loop: the table is the grade — stop; do not pad it with a city

A mode-600 file with honest rows or an honest none owned line is the whole lab. Ctrl+C nothing: you started no server. Do not leave a scanner running “in case I missed a plug.” Do not add a second sitting that Shodans webcams because two rows felt small. Re-run the checker after edits. World-writable 777 fails. You now have the household artifact Lessons 1–3 were aiming at: defaults, isolation, and a refuse list that names plants and hospitals out loud. This is original Cyberlium teaching mapped to the CEH v13 IoT and OT hacking domain — not official EC-Council training, not a cert, not exam dumps. Next — Quiz — IoT and OT — ten APPLY items on stickers and guest nets, then Module 19 opens Shared Responsibility in One Page for cloud accounts YOU own.

Knowledge Check

1

APPLY: You own no cameras. A teammate says the lab is incomplete until you nmap the building and Shodan a few webcams. What completes Lesson 4?

Multiple choice

Knowledge Check

2

APPLY: True or False: Adding a neighbor doorbell and a hospital pump row is ethical if you mark DEFAULT_CHANGED as unknown and never log in.

True or False

Knowledge Check

3

APPLY: Which pairing matches the allowed artifact and hygiene?

Multiple choice

Knowledge Check

4

APPLY: curl of http://192.168.0.1/ shows a home router login (TP-Link / Netgear / Huawei / "Router Admin"). Is that DEMO in scope as a hacking target?

Multiple choice

← Previous

Answer all 4 knowledge checks to continue. (0/4 answered)