Latest / CyberCode Academy / Course 35 - Footprinting and Reconnaissance | Episode 3: Exploring Shodan and the Google Hacking Database
Transcript
- 0:00Speaker 1: Okay, so think about how you normally use the search engine.
- 0:04Speaker 1: You know, you're probably looking up a dinner recipe or
- 0:06Speaker 1: maybe trying to quickly troubleshoot a piece of code you're stuck.
- 0:09Speaker 2: On, right, just everyday curated answers exactly.
- 0:14Speaker 1: But what if you could use those exact same tools
- 0:17Speaker 1: to literally map out the exposed, vulnerable underbelly of the
- 0:22Speaker 1: entire Internet. It sounds like a movie plot, but it's
- 0:25Speaker 1: totally real.
- 0:26Speaker 2: Oh, it's very real, and honestly, it completely shifts your
- 0:29Speaker 2: perspective once you see it in action. We tend to
- 0:32Speaker 2: think of the Web as this this heavily fortified digital fortress.
- 0:36Speaker 1: Right with firewalls and encryption everywhere.
- 0:39Speaker 2: Yeah, but the architecture was actually built for connectivity first,
- 0:41Speaker 2: not security. Yeah. So today we're really looking at how
- 0:44Speaker 2: you can leverage basic search mechanics to uncover those structural.
- 0:48Speaker 1: Weaknesses, which brings us to the mission for this deep dive. Today,
- 0:52Speaker 1: we are walking step by step through the foot printing
- 0:54Speaker 1: phase of cybersecurity. We're going to explore exactly how professionals
- 0:59Speaker 1: and well hackers map out a target before they ever
- 1:02Speaker 1: even touch it.
- 1:03Speaker 2: And that's the keyword there, right, before they touch it.
- 1:05Speaker 1: Yes, exactly. We're looking at two really powerful methods today,
- 1:10Speaker 1: Showdan and Google doorking. But before we get into the tech,
- 1:14Speaker 1: we should establish that footprinting is an entirely passive process.
- 1:18Speaker 2: Yeah, that is definitely the defining characteristic here. You aren't
- 1:21Speaker 2: hacking into a server or like breaking any encryption. You're
- 1:25Speaker 2: just gathering open source intelligence.
- 1:27Speaker 1: It's just information that's already sitting out there, publicly exposed
- 1:30Speaker 1: on the open web, sometimes by accident, but.
- 1:33Speaker 2: It's there, exactly. It's basically like walking down a public
- 1:36Speaker 2: street and just noticing which doors and windows people left
- 1:40Speaker 2: wide open.
- 1:40Speaker 1: Which is the perfect way to describe our first tool, Showdan. Now,
- 1:45Speaker 1: in the cybersecurity world, I know, people call this the
- 1:47Speaker 1: hackers search engine.
- 1:49Speaker 2: They do. Yeah, it's got quite a reputation.
- 1:50Speaker 1: But the difference between showdan and something like regular Google
- 1:54Speaker 1: kind of took me a second to wrap my head around. Sure,
- 1:56Speaker 1: because standard search engines index content, right, images, articles, but
- 2:02Speaker 1: showdan completely ignores all.
- 2:04Speaker 2: Of that, right, because showdan indexes physical hardware. It's looking
- 2:08Speaker 2: at the Internet of Things, which is just this massively
- 2:10Speaker 2: expanding surface area.
- 2:11Speaker 1: Right now, Oh for sure, So we're talking about what
- 2:13Speaker 1: physical devices connected to the Web.
- 2:16Speaker 2: Yeah, everything. I mean, sure, it includes enterprise web servers
- 2:19Speaker 2: and databases, but it's also home routers, smart refrigerators, security cameras,
- 2:24Speaker 2: even traffic lights and industrial control systems for power grids.
- 2:28Speaker 1: Wait, traffic lights. That's terrifying, I know, right.
- 2:32Speaker 2: Basically, if a piece of hardware is connected to the
- 2:34Speaker 2: Internet and communicating outwards, Showdan's automated scanners are just systematically
- 2:39Speaker 2: trying to find it and catalog it.
- 2:41Speaker 1: So the ANALOGO I was thinking of was like, Okay,
- 2:43Speaker 1: regular search engines are like librarians reading every book, but
- 2:47Speaker 1: showdan is more like a digital building inspector.
- 2:50Speaker 2: Oh well, like that.
- 2:51Speaker 1: It walks down every digital street, jiggles every single doorknob
- 2:54Speaker 1: to see if it's unlocked, and then writes down the
- 2:56Speaker 1: exact brand of lock on the door. But how does
- 2:59Speaker 1: it actually do that? Like, how does showdown know a
- 3:02Speaker 1: random IP address belongs to a specific traffic camera.
- 3:06Speaker 2: Well, it relies on this process called banner grabbing. So
- 3:09Speaker 2: whenever a device connects to the Internet, it operates through
- 3:12Speaker 2: these specific digital.
- 3:13Speaker 1: Ports okay, like designated doors for different types of web
- 3:17Speaker 1: traffic exactly.
- 3:18Speaker 2: And when Showdown's automated scanners sort of knock on one
- 3:21Speaker 2: of those open ports. The device on the other side
- 3:24Speaker 2: will usually reply with a metadata greeting. We call that
- 3:27Speaker 2: a banner.
- 3:28Speaker 1: Oh, so the device literally introduces itself pretty much.
- 3:32Speaker 2: Am I say hello, I'm a web server running APATCHE
- 3:35Speaker 2: version two point four, or I'm the specific model of
- 3:39Speaker 2: a network security camera. And then showday just grabs that banner,
- 3:43Speaker 2: logs the IP address, and throws it into its database.
- 3:46Speaker 1: So it's basically just a massive catalog of automated handshakes.
- 3:50Speaker 1: Let's actually walk through a practical scenario for the listeners
- 3:52Speaker 1: so they can picture this.
- 3:53Speaker 2: Yeah, let's do it.
- 3:54Speaker 1: If you navigate to the showdown website, the interface looks
- 3:57Speaker 1: totally unassuming. It's literally just a search bar. But say
- 4:00Speaker 1: you type in a major hardware manufacturer like the Cisco.
- 4:04Speaker 1: They make a huge chunk of the networking gear used
- 4:07Speaker 1: all over the world.
- 4:08Speaker 2: They absolutely do.
- 4:09Speaker 1: When you run that query, what kind of scale are
- 4:11Speaker 1: we talking about?
- 4:12Speaker 2: The scale is usually what completely shocks people the first
- 4:15Speaker 2: time they do this. A broad search for Cisco will
- 4:18Speaker 2: return millions of results, Like right now, you'd probably see
- 4:22Speaker 2: roughly two point four million individual devices responding globally.
- 4:26Speaker 1: Wow, over two million hits from one word.
- 4:29Speaker 2: Yeah, and because of that banner grabbing we talked about.
- 4:32Speaker 2: It doesn't just give you a list of IP addresses.
- 4:34Speaker 2: It projects the operating system, the open ports, and even
- 4:38Speaker 2: the geographic location of every single device.
- 4:41Speaker 1: Okay, let's just pause on that number for a second.
- 4:43Speaker 1: Two point four million devices. Why does a hacker or
- 4:47Speaker 1: even a security pro care about a giant list of
- 4:49Speaker 1: Cisco routers? Why is that valuable?
- 4:52Speaker 2: It honestly comes down to human behavior. I mean, the
- 4:54Speaker 2: vast majority of those two point four million results aren't
- 4:57Speaker 2: these heavily guarded enterprise servers.
- 4:59Speaker 1: They're probably just all business setups or home internet routers exactly.
- 5:03Speaker 2: And when a service provider sets up a new connection
- 5:05Speaker 2: where someone buys a router at the store, that hardware
- 5:08Speaker 2: comes with factory default credentials.
- 5:10Speaker 1: Ah, the classic admin log in.
- 5:13Speaker 2: You know it. It is incredibly common for people to
- 5:16Speaker 2: just plug the device in, get the Wi Fi working,
- 5:19Speaker 2: and totally forget to change the default username and password.
- 5:23Speaker 1: So Schueman is basically handing you a list of millions
- 5:26Speaker 1: of devices that probably still have factory settings.
- 5:29Speaker 2: Yes, and that is the vulnerability for a thread actor
- 5:33Speaker 2: an admin device is the easiest entry point you could
- 5:36Speaker 2: ask for. It requires absolutely zero sophisticated hacking.
- 5:40Speaker 1: Right, you don't need to write custom malware. You just
- 5:42Speaker 1: walk through the unlocked door, exactly.
- 5:44Speaker 2: You just log in and now you have a foothold
- 5:46Speaker 2: inside their private network.
- 5:47Speaker 1: But practically speaking, I mean, two million results is just
- 5:50Speaker 1: an ocean of data. If someone is targeting a specific company,
- 5:54Speaker 1: they aren't manually scrolling through millions of ips.
- 5:57Speaker 2: Definitely, not just like regular Google. You use surge filters.
- 6:01Speaker 2: SHOWDAN lets you filter by country, by a specific Internet
- 6:04Speaker 2: service provider, or even down to a specific city.
- 6:08Speaker 1: So you could take that global list of two point
- 6:11Speaker 1: four million Cisco devices and really carve it down, Like
- 6:15Speaker 1: if you filter by the US, maybe it drops to
- 6:17Speaker 1: half a million. But if you type in a specific city,
- 6:20Speaker 1: let's say Chicago, suddenly down to about six thousand devices.
- 6:24Speaker 2: And that right there is where footprinting goes from just
- 6:27Speaker 2: a broad survey into actual targeted reconnaissance. You're looking at
- 6:32Speaker 2: the digital parameter of a specific city block. Now that
- 6:35Speaker 2: is wild, it really is. It reveals the density of
- 6:38Speaker 2: vulnerable infrastructure in one place, and it varies a lot too.
- 6:42Speaker 2: One city might have six thousand exposed devices, while another
- 6:45Speaker 2: city right next door might have double that, just because
- 6:48Speaker 2: of which service providers are popular there.
- 6:50Speaker 1: It totally changes how you think about a neighborhood. You
- 6:52Speaker 1: can literally map it by its digital vulnerabilities exactly. But okay,
- 6:56Speaker 1: Showdow only maps the hardware, right, It shows you the
- 6:58Speaker 1: routers and the cameras, but it doesn't show you the
- 7:00Speaker 1: actual data living on those servers.
- 7:02Speaker 2: Correct. It stops at the device level.
- 7:04Speaker 1: So if you want the complete picture, how do you
- 7:07Speaker 1: find the exposed internal documents or the sensitive spreadsheets?
- 7:11Speaker 2: For that, we actually have to switch methodologies completely. We
- 7:14Speaker 2: move away from hardware scanners and we go to the
- 7:17Speaker 2: most powerful indexing engine ever built, which is just regular.
- 7:20Speaker 1: Google, which is crazy to me.
- 7:22Speaker 2: Yeah, but it requires using it in a very specific,
- 7:26Speaker 2: highly technical way. It's a technique called Google dorking, or
- 7:31Speaker 2: using the Google hacking database.
- 7:33Speaker 1: I really want to dig into this because it feels
- 7:35Speaker 1: so counterintuitive. Google is meant to serve up public stuff, right, blogs,
- 7:39Speaker 1: news marketing pages. How does it end up indexing someone's
- 7:43Speaker 1: hidden corporate files.
- 7:45Speaker 2: Well, you have to understand how indiscriminate web crawlers actually are.
- 7:49Speaker 2: Google uses these automated bots called spiders or crawlers, and
- 7:53Speaker 2: their only job is to just bounce from link to
- 7:55Speaker 2: link across the web, reading text and categorizing files.
- 7:59Speaker 1: Okay, so they're just constantly building Google's massive library, right.
- 8:02Speaker 2: But the fatal flaw on how most people view this
- 8:05Speaker 2: is they assume the crawler understands context, and.
- 8:08Speaker 1: It really doesn't, meaning the bot doesn't know the difference
- 8:11Speaker 1: between a public recipe blog and a private financial spreadsheet.
- 8:14Speaker 2: Precisely, to a web crawler, data is just data. So
- 8:19Speaker 2: if a system admin makes a mistake, say they misconfigure
- 8:22Speaker 2: a server and leave a folder of internal documents accessible without.
- 8:26Speaker 1: A password, the crawler just walks right in.
- 8:28Speaker 2: Exactly, The crawler doesn't stop and say, oh wait, this
- 8:31Speaker 2: looks sensitive. I shouldn't look at this unless there's a
- 8:33Speaker 2: hard coded rule like a robots dot txt file telling
- 8:36Speaker 2: it to stay out. It will blindly vacuum up every
- 8:39Speaker 2: file it can reach and dump it straight into Google's
- 8:43Speaker 2: public search index.
- 8:44Speaker 1: So that highly sensitive data is literally sitting on Google
- 8:48Speaker 1: servers right now. The only reason everyday people don't see
- 8:50Speaker 1: it is because nobody randomly types Q three confidential financial
- 8:54Speaker 1: projections into the search bar.
- 8:56Speaker 2: Exactly, we don't know the right questions to ask. Yeah,
- 8:59Speaker 2: that is exactly what the Google Hacking Database provides. It
- 9:01Speaker 2: gives you the questions.
- 9:02Speaker 1: Okay, so it's basically a library of search strings.
- 9:05Speaker 2: Yeah, it's this continuously updated repository of very specialized complex queries.
- 9:10Speaker 2: They use Google's advanced search operators to filter out all
- 9:13Speaker 2: the normal web pages and isolate those exposed system files.
- 9:16Speaker 1: Let's break down some of those commands so you listening
- 9:19Speaker 1: can picture it. If I'm a hacker looking for a spreadsheet,
- 9:22Speaker 1: I'm not going to just search the word excel. That
- 9:24Speaker 1: would just bring up Microsoft's website.
- 9:26Speaker 2: Right, you just get tutorials and sales pages. Instead. You'd
- 9:30Speaker 2: use the file type operator, so you type something like
- 9:32Speaker 2: file type colon XLX or CSV.
- 9:36Speaker 1: Oh. So that forces Google to ignore all the normal
- 9:39Speaker 1: HTML websites and only show you raw spreadsheet.
- 9:42Speaker 2: Files exactly, and you can stack them. You can add
- 9:45Speaker 2: the site operator to only search within one specific company's domain,
- 9:49Speaker 2: or you can use in title to look for pages
- 9:51Speaker 2: where the title is literally index.
- 9:53Speaker 1: Of, right, because index of is the default text when
- 9:57Speaker 1: a server accidentally displays its raw file folders to the Internet.
- 10:01Speaker 2: Yes, you're basically building this highly specific, customized net to
- 10:06Speaker 2: catch misconfigurations.
- 10:08Speaker 1: Let's actually give a real world example of this, because
- 10:10Speaker 1: it really drives the point home. During the foot printing phase,
- 10:13Speaker 1: one of the biggest jackpots you can find is documentation
- 10:16Speaker 1: about a company's IT migration process.
- 10:18Speaker 2: Oh. Absolutely, it is a massive target.
- 10:21Speaker 1: And there are specific strings in the database designed just
- 10:24Speaker 1: to hunt for those migration roadmaps. But why is that
- 10:27Speaker 1: specific process so valuable to a hacker?
- 10:30Speaker 2: Because a system migration is pure chaos. Think about it.
- 10:35Speaker 2: When a huge corporation is moving data from old servers
- 10:39Speaker 2: to a new cloud setup or migrating thousands of employee accounts,
- 10:43Speaker 2: their standard security posture is almost always compromised.
- 10:46Speaker 1: Right because they have to temporarily lower firewalls just to
- 10:49Speaker 1: get the data to move exactly.
- 10:52Speaker 2: They make massive backup files, they create temporary unsecured pathways,
- 10:56Speaker 2: and honestly, the IT staff is usually completely overwhelmed.
- 10:59Speaker 1: So it's the perfect environment for someone to slip in unnoticed.
- 11:02Speaker 2: It really is. If an attacker uses a Google dork
- 11:05Speaker 2: to find an exposed architecture transition spreadsheet, they essentially just
- 11:09Speaker 2: found the blueprints to the bank. While the alarm system
- 11:11Speaker 2: is turned off, they know where the backups are, what's deprecated,
- 11:14Speaker 2: all of it.
- 11:15Speaker 1: And the execution is so simple. You just copy the
- 11:18Speaker 1: search string from the database, open regular Google dot com,
- 11:21Speaker 1: paste this huge string of operators in and hit enter.
- 11:24Speaker 1: But I do want to clarify one thing. It's not
- 11:27Speaker 1: quite like the movies. You don't just hit enter and boom.
- 11:30Speaker 1: The secret passwords are the first result.
- 11:32Speaker 2: No, definitely not. Page one is usually pretty useless because
- 11:36Speaker 2: these strings are public. The first few pages are usually
- 11:39Speaker 2: just cybersecurity blogs talking about the string itself.
- 11:42Speaker 1: Right, just articles explaining what the command does.
- 11:45Speaker 2: Yeah, real footprinting requires a lot of patients. Those vulnerable
- 11:49Speaker 2: misconfigured logs, and raw CSV files are usually buried deep.
- 11:52Speaker 2: You might have to sift through five to six or
- 11:55Speaker 2: even ten pages of search results to actually strike gold.
- 11:58Speaker 1: Okay, So if it takes that much digging and you
- 12:00Speaker 1: have to test hundreds of different strings, my first thought
- 12:03Speaker 1: is automation, Like, why would a professional manually type all this?
- 12:07Speaker 1: Why not just write a Python script, feed it the
- 12:10Speaker 1: whole database and let the computer bombard Google for you.
- 12:14Speaker 2: Well, people definitely try that, but Google is very aware
- 12:17Speaker 2: that its search engine can be weaponized like this They
- 12:21Speaker 2: closely monitor the behavioral patterns of queries.
- 12:24Speaker 1: So they have defenses built in big time.
- 12:26Speaker 2: If your IP address suddenly starts firing off dozens of
- 12:30Speaker 2: these highly complex operator strings in rapid succession, Google's rate
- 12:33Speaker 2: limiting algorithms kick in. They hit you with the cappy tcha.
- 12:37Speaker 1: Oh man, they click all the squares with the traffic
- 12:40Speaker 1: light test exactly.
- 12:41Speaker 2: It completely halts the automated script and forces you to
- 12:44Speaker 2: prove human interaction. But what's fascinating is that the algorithm
- 12:48Speaker 2: that triggers it is a total black box. Wait.
- 12:50Speaker 1: Really, it's not just a flat rule like three strikes
- 12:53Speaker 1: and you're out.
- 12:54Speaker 2: Nope. Google doesn't publish the rules, and it's highly unpredictable.
- 12:58Speaker 2: One day an analyst might run three complex dorks and
- 13:01Speaker 2: instantly hit a cap tcha wall. The next day they
- 13:04Speaker 2: might run twenty automated queries before getting flagged. It's a
- 13:08Speaker 2: constant cat and mouse game.
- 13:09Speaker 1: Wow, so you have these automation scripts constantly trying to
- 13:12Speaker 1: outsmart the serve engines defenses. We have covered so much
- 13:17Speaker 1: ground here. We've gone through how shod In uses banner
- 13:20Speaker 1: grabbing to index hardware, and how Google dorking tricks web
- 13:24Speaker 1: crawlers into exposing files. But this brings up a massive, unavoidable.
- 13:29Speaker 2: Question, the legal boundary.
- 13:31Speaker 1: Yes, the rules of engagement. If you are executing these searches,
- 13:34Speaker 1: finding vulnerable routers, locating corporate spreadsheets, at what exact point
- 13:39Speaker 1: do you cross the line from just being curious into
- 13:42Speaker 1: being a criminal.
- 13:43Speaker 2: It is the most critical distinction in cybersecurity. The line
- 13:46Speaker 2: between legal intelligence gathering and illegal hacking basic comes down
- 13:50Speaker 2: to authorization and interaction.
- 13:51Speaker 1: Okay, break that down for me.
- 13:53Speaker 2: So in most places, including the US, using search engines
- 13:56Speaker 2: for passive footprinting is generally legal. The data you are
- 14:00Speaker 2: looking at has already been indexed and made public by
- 14:03Speaker 2: a third party, right like.
- 14:04Speaker 1: Google or showdan already the scanning. You're just reading their
- 14:07Speaker 1: results exactly.
- 14:08Speaker 2: Typing a query into showdan or running a Google dork
- 14:12Speaker 2: is fundamentally no different than standing on a public sidewalk
- 14:14Speaker 2: and looking at the outside of an office building.
- 14:16Speaker 1: You're allowed to notice that a window is open on
- 14:18Speaker 1: the second floor.
- 14:19Speaker 2: Yes, but the legal paradigm shifts the exact second you
- 14:24Speaker 2: go from observation to interaction. If you see a vulnerable
- 14:28Speaker 2: Cisco router on Showdan and you actually navigate to that
- 14:32Speaker 2: IP address and try to log in. Even if you're
- 14:35Speaker 2: just testing to see if the default admin password works,
- 14:38Speaker 2: you have crossed a hard line.
- 14:39Speaker 1: You're no longer on the sidewalk. You just reached your
- 14:41Speaker 1: hand through the window, exactly.
- 14:43Speaker 2: It goes from passive reconnaissance to active unauthorized access. Same
- 14:47Speaker 2: with Google dorking. If you find a spreadsheet and then
- 14:50Speaker 2: try to manipulate the URL to dig deeper into their
- 14:53Speaker 2: private server, you are actively breaching a system.
- 14:55Speaker 1: So the golden rule is look, but do not touch.
- 15:00Speaker 1: And the whole reason we explore these tools is so
- 15:01Speaker 1: you know how to protect yourself. You can't secure a
- 15:03Speaker 1: network if you don't understand how attackers are mapping it.
- 15:06Speaker 2: Absolutely, defensive security requires an offensive mindset. The good guys
- 15:12Speaker 2: use these exact same Google dorks against their own companies
- 15:15Speaker 2: all the time. They footprint themselves to find the leaks
- 15:19Speaker 2: before the bad guys do.
- 15:20Speaker 1: Which brings this whole concept right to your front door. Literally.
- 15:25Speaker 1: Before we wrap up today, let's do a quick mental
- 15:27Speaker 1: exercise for everyone listening.
- 15:28Speaker 2: Yeah, let's evaluate your own digital perimeter.
- 15:31Speaker 1: So think about the router sitting in your house right now,
- 15:33Speaker 1: the one your internet provider gave you that connects your
- 15:36Speaker 1: whole life to the web. Imagine someone logging into showdown
- 15:40Speaker 1: right now, filtering by your country, your provider, and then
- 15:44Speaker 1: drilling all the way down to your specific city block.
- 15:47Speaker 2: Think about what data that query would pull up. Is
- 15:50Speaker 2: the IP address assigned to your house currently sitting on
- 15:53Speaker 2: that exposed list?
- 15:54Speaker 1: What banners? Is your hardware broadcasting to the internet right now?
- 15:58Speaker 1: But here's the most important question. Since the day you
- 16:00Speaker 1: plug that router into the wall, have you ever logged
- 16:03Speaker 1: into its admin panel and changed the factory default password?
- 16:07Speaker 2: Because if you haven't, your home is in the secure node.
- 16:10Speaker 2: It's just an unlocked door waiting for a scanner to
- 16:12Speaker 2: find it.
- 16:13Speaker 1: It really makes it real, doesn't it y. So, just
- 16:16Speaker 1: to summarize our deep dive today, we explored the massive
- 16:20Speaker 1: world of footprinting. We saw how showed end catalogs the
- 16:23Speaker 1: physical vulnerabilities of the Internet, and how Google dorking uses
- 16:26Speaker 1: advanced operators to unearth hidden files and migration plans. And
- 16:30Speaker 1: we drew that very clear legal line between just observing
- 16:34Speaker 1: and actively hacking.
- 16:36Speaker 2: It all comes down to one truth. No, your security
- 16:39Speaker 2: is only as strong as your smallest misconfiguration.
- 16:41Speaker 1: Seriously, which leaves us with one final thought for you
- 16:44Speaker 1: to show on we've talked about how easy it is
- 16:47Speaker 1: to find the operational secrets of fortune five hundred companies,
- 16:50Speaker 1: or thousands of vulnerable routers in a single neighborhood just
- 16:53Speaker 1: using a few keystrokes. That's a bit what invisible digital
- 16:57Speaker 1: breadcrumbs has your own digital life left exposed, just waiting
- 17:00Speaker 1: for the exact right search query to pull them out
- 17:02Speaker 1: of the dark.