Latest / CyberCode Academy / Course 5 - Full Mobile Hacking | Episode 7: Remote Windows Management and Android Geolocation Security Tutorials
Transcript
- 0:00Speaker 1: Welcome to the deep dive. Today. We're looking beyond just
- 0:04Speaker 1: the apps on your phone where really diving into how
- 0:08Speaker 1: that device connects and talks to well everything else.
- 0:11Speaker 2: Yeah, it's a fascinating area. We're focusing on two sides
- 0:14Speaker 2: of the same coin, really, two powerful ways these connections work.
- 0:18Speaker 1: Two extremes almost First, the kind of legitimate powerful remote control,
- 0:24Speaker 1: think controlling your Windows PC from your Android phone.
- 0:27Speaker 2: Super useful stuff. But then there's the other side, Yeah,
- 0:31Speaker 2: the let's say, less authorized side, using similar network principles
- 0:36Speaker 2: to secretly grab sensitive data like your exact location exactly.
- 0:39Speaker 1: So our mission today is to walk through both. How
- 0:42Speaker 1: do you actually set up that Windows remote desktop connection
- 0:44Speaker 1: from Android? Step by step, and then.
- 0:46Speaker 2: We'll pivot and break down the technical chain, the sort
- 0:48Speaker 2: of social engineering mix used to capture someone's geolocation.
- 0:52Speaker 1: It's kind of wild how the network knowledge needed for both. Well,
- 0:55Speaker 1: it overlaps quite a bit, doesn't it.
- 0:56Speaker 2: It really does. It's all about understanding pathways.
- 0:59Speaker 1: Okay, let's start with the legitimate power controlling your Windows
- 1:02Speaker 1: machine remotely with your Android. What's the use case here?
- 1:07Speaker 2: Well, think about needing a file off your home desktop
- 1:10Speaker 2: when you're out or maybe running a specific piece of
- 1:13Speaker 2: software that only lives on that machine. It's about total flexibility,
- 1:17Speaker 2: makes sense.
- 1:18Speaker 1: But you can't just point your phone at your PC. Right,
- 1:21Speaker 1: there's setup involved on the Windows side.
- 1:23Speaker 2: First, absolutely, you have to prep the Windows machine, your
- 1:26Speaker 2: desktop or laptop to accept that connection.
- 1:29Speaker 1: Okay, so how do we kick that off? Where in
- 1:30Speaker 1: Windows do we start?
- 1:31Speaker 2: The easiest way is probably just using the Windows search
- 1:34Speaker 2: bar type in something like allow remote access to computer.
- 1:38Speaker 1: Gotcha?
- 1:38Speaker 2: That should pop up the system properties window, and you
- 1:41Speaker 2: want to look for the remote tab?
- 1:43Speaker 1: Okay, remote tab? What are the key things we need
- 1:46Speaker 1: to enable there? Right?
- 1:47Speaker 2: There are two main checkboxes you'll likely see. First is
- 1:50Speaker 2: allow remote assistance connections. Now, this one often involves sending
- 1:54Speaker 2: an invitation, and sometimes those invitations have a time limit,
- 1:58Speaker 2: maybe like six hours or so.
- 1:59Speaker 1: Okay for assistance, what about for control? For that, you
- 2:02Speaker 1: need the second option, allow remote connections to this computer.
- 2:05Speaker 1: That's the one that enables the full remote desktop experience we're.
- 2:09Speaker 2: Talking about, right, But clicking that doesn't just throw the
- 2:12Speaker 2: doors wide open. Surely is there a security check?
- 2:15Speaker 1: Oh? Definitely. There's a critical setting usually tied to that,
- 2:18Speaker 1: often checked by default, requiring network level authentication or NLA
- 2:24Speaker 1: in LA. What does that actually do?
- 2:26Speaker 2: Think of it like a preliminary security check before Windows
- 2:30Speaker 2: even ask for your user name and password. It checks
- 2:32Speaker 2: if the device trying to connect supports in LA. If
- 2:35Speaker 2: it doesn't, it just drops the connection right there. It
- 2:37Speaker 2: helps block certain kinds of attacks.
- 2:38Speaker 1: Okay, so it's like a bouncer checking credentials at the door.
- 2:41Speaker 1: Smart is ad it for Windows prep Almost one last
- 2:46Speaker 1: crucial step. You need to specify which user accounts are
- 2:50Speaker 1: actually allowed to connect remotely. You click select users and
- 2:54Speaker 1: add the specific account, maybe your main log in, like
- 2:58Speaker 1: the example loyaling in from the source material we looked at.
- 3:01Speaker 1: Got it? So Windows is ready locked down waiting for
- 3:05Speaker 1: the right user. Now over to the Android phone. What
- 3:08Speaker 1: app do we need?
- 3:09Speaker 2: You head to the Google play Store search for a
- 3:11Speaker 2: remote desktop and you'll want the official Microsoft Remote Desktop app.
- 3:15Speaker 1: Makes sense? Microsoft app for a Microsoft connection.
- 3:17Speaker 2: Yep, install it, Open it up. You'll probably have to
- 3:20Speaker 2: agree to a license agreement the first time.
- 3:22Speaker 1: Standard stuff. Then how do we point it at our pc?
- 3:25Speaker 2: Inside the app, you look for a plus button usually
- 3:28Speaker 2: top right. Tap that too, desktop or ad PC. The
- 3:32Speaker 2: app might scan your local network to see if you
- 3:34Speaker 2: can find the Windows machine automatically. If not, you'll manually
- 3:38Speaker 2: enter the PC's name or IP address, and.
- 3:40Speaker 1: Then it asks for the log in.
- 3:41Speaker 2: Details exactly you put in the username and password for
- 3:45Speaker 2: the account you specifically allowed back in the Windows Settings.
- 3:48Speaker 1: The Loyly Yang account, for.
- 3:50Speaker 2: Instance, Precisely Once you enter those and assuming NLA is
- 3:53Speaker 2: happy and the credentials match, connection established pretty much. You
- 3:58Speaker 2: might get one last warning screen about the certificate, but
- 4:00Speaker 2: you can usually tell it to never ask again for
- 4:03Speaker 2: that specific connection.
- 4:04Speaker 1: I think, bam, you're in. You've got your Windows desktop
- 4:07Speaker 1: on your Android screen.
- 4:09Speaker 2: The full experience. It's actually pretty impressive.
- 4:11Speaker 1: How full, like can you actually do stuff or is
- 4:14Speaker 1: it just viewing?
- 4:14Speaker 2: Oh? You can do everything. Launch Internet Explorer or edge
- 4:18Speaker 2: browse websites, open file explore, move files around, run applications.
- 4:23Speaker 2: You're effectively sitting at the remote computer.
- 4:25Speaker 1: Wow, that's quite a lot of power from your phone.
- 4:29Speaker 1: It really highlights how these devices are central hubs now.
- 4:32Speaker 2: It really does. And setting it up, like you said,
- 4:34Speaker 2: is surprisingly straightforward once you know the steps.
- 4:36Speaker 1: Okay, so that's the authorized powerful use case. Let's flip
- 4:40Speaker 1: the goin now, unauthorized data capture, specifically getting an Android
- 4:45Speaker 1: device's geolocation. This sounds way more complex. It is.
- 4:49Speaker 2: It involves multiple steps, specific tools, and importantly, social engineering.
- 4:55Speaker 2: It's not just about a direct connection, it's about tricking
- 4:58Speaker 2: the user.
- 4:58Speaker 1: And the setup is different. You mentioned Collie Linux.
- 5:01Speaker 2: Yeah, attackers often use penetration testing distributions like Collie Linux
- 5:05Speaker 2: because they come preloaded with useful tools. And crucially, for
- 5:09Speaker 2: this attack method to be most effective in getting precise location,
- 5:13Speaker 2: the target's Android device ideally needs to be on mobile data.
- 5:16Speaker 1: Right, you mentioned that earlier. Why mobile data not Wi Fi?
- 5:20Speaker 1: What's the difference for the attacker?
- 5:21Speaker 2: It often comes down to the IP address. Wi Fi
- 5:24Speaker 2: ips can sometimes point to the internet provider's central office,
- 5:27Speaker 2: which might be miles away. Mobile data ips can sometimes
- 5:31Speaker 2: be more closely tied to the actual cell tower the
- 5:33Speaker 2: phone is connected to, potentially giving a more useful starting
- 5:37Speaker 2: point for location. It's not perfect, but it helps.
- 5:39Speaker 1: Okay, that makes sense. So the attacker is on Collie.
- 5:42Speaker 1: What's the first technical step they take?
- 5:43Speaker 2: They usually need to know their own internal IP address
- 5:46Speaker 2: on their local network. They'd use a command like if config.
- 5:50Speaker 2: Maybe it comes back as say one ninety two point
- 5:52Speaker 2: one sixty eight point one one tour. They need this
- 5:55Speaker 2: for later steps.
- 5:56Speaker 1: Got it local IP identify. What's the main tool for this?
- 6:00Speaker 2: The tool often used for the specific technique is called Seeker.
- 6:04Speaker 2: It's designed precisely for this purpose, generating a lure to
- 6:07Speaker 2: capture location data.
- 6:08Speaker 1: How do they run it?
- 6:09Speaker 2: Well, if the standard service isn't running, they might need
- 6:12Speaker 2: to launch it manually from the terminal, something like secret,
- 6:15Speaker 2: dot piy DATSH team manual. The exact command might vary,
- 6:19Speaker 2: maybe adding options like ktest dot KML to save data.
- 6:23Speaker 1: Okay, Seeker is running, What does it do? Does it
- 6:26Speaker 1: just reach out and grab the location?
- 6:28Speaker 2: Oh? No, it's not that simple. It needs the target
- 6:29Speaker 2: to interact. Seeker sets up a fake web page. Basically,
- 6:32Speaker 2: it often gives you templates to choose from.
- 6:34Speaker 1: Uh huh the social engineering part. What kind of fake page?
- 6:37Speaker 2: The example we looked at used a Google Drive template.
- 6:39Speaker 2: The attacker chooses that maybe enters a dummy file name
- 6:42Speaker 2: like one, two, three, four, five six. This tells Seeker
- 6:45Speaker 2: to spin up a local web server a PHP server
- 6:48Speaker 2: in this case, hosting a fake Google Drive access request page.
- 6:51Speaker 1: So the fake page is now running, but only on
- 6:54Speaker 1: the attacker's own computer at that one ninety two point
- 6:57Speaker 1: one six eight point one point one four address, y clait.
- 7:00Speaker 2: Nobody else on the Internet can see it.
- 7:02Speaker 1: Yet, how do they bridge that gap? How does the
- 7:04Speaker 1: target actually get to that fake page?
- 7:07Speaker 2: This is where tunneling comes in. A popular tool for
- 7:10Speaker 2: this is new Grock.
- 7:11Speaker 1: New Grock I've heard of that. It creates like a
- 7:13Speaker 1: public web address for a local service. Precisely, the attacker
- 7:17Speaker 1: tells and Rock, take my local server running on say
- 7:20Speaker 1: port eighty eighty, and give me a public URL for it.
- 7:23Speaker 1: New Groc then generates a unique web address something like
- 7:25Speaker 1: HTP dot, randomstuff, dot, ng uroc dot io. Okay, so
- 7:29Speaker 1: now there's a public link. But does that link automatically
- 7:32Speaker 1: know how to find the attacker's specific computer behind their
- 7:35Speaker 1: home router.
- 7:36Speaker 2: Ah, good question, No, not automatically. There's another crucial network
- 7:39Speaker 2: step required, port.
- 7:40Speaker 1: Forwarding, right on the attackers router.
- 7:42Speaker 2: Yes, the attacker has to log into their own Internet
- 7:45Speaker 2: router settings and configure port forwarding. They need to tell
- 7:48Speaker 2: the router, Hey, any Internet traffic that arrives asking for
- 7:51Speaker 2: port eighty eighty, please send it directly to my computer
- 7:53Speaker 2: at one ninety two point one sixty eight point one pointe.
- 7:56Speaker 1: Wow. Okay, so you need seeker running locally GROC creating
- 8:00Speaker 1: the public link and port forwarding on the router pointing
- 8:04Speaker 1: that traffic back to seeker. That's quite a chain.
- 8:07Speaker 2: It is seeker, seeker BACKPHP, server back non grock tunnel deck,
- 8:11Speaker 2: router port forwarding. Only when all those pieces are aligned
- 8:15Speaker 2: is the trap actually live and accessible via the NEWROC link.
- 8:18Speaker 1: So the attacker sends this NEWGROC link to the target,
- 8:22Speaker 1: maybe via email, social media, whatever. The target clicks it,
- 8:25Speaker 1: what do they see?
- 8:26Speaker 2: They see that fake Google Drive page. It looks convincing,
- 8:29Speaker 2: maybe says you need to request access or something similar
- 8:33Speaker 2: with a big button like allow.
- 8:34Speaker 1: Or share, and the user thinks, oh, I need to
- 8:36Speaker 1: click this to see the file.
- 8:38Speaker 2: Exactly. That's the social engineering succeeding. The moment they click
- 8:41Speaker 2: that allow or share a.
- 8:42Speaker 1: Button, that's when the magic happens or the bad magic.
- 8:45Speaker 2: I guess that's the moment by clicking they inadvertently trigger
- 8:49Speaker 2: their browsers built in geolocation function. The browser asks the
- 8:53Speaker 2: operating system for the location and then sends that information
- 8:56Speaker 2: back to the fake page, which is actually the secret
- 8:59Speaker 2: service listening on the attackers machine.
- 9:02Speaker 1: And seeker just logs it all. What kind of data
- 9:05Speaker 1: does it capture?
- 9:06Speaker 2: It grabs quite a lot detailed device information, the os,
- 9:10Speaker 2: like Android version, the underlying Linux kernel details, number of
- 9:14Speaker 2: CPU cores, the GPU model, the browser they're using, like
- 9:18Speaker 2: Firefox version next.
- 9:19Speaker 1: Okay, device fingerprinting stuff yep.
- 9:21Speaker 2: And critically the latitude and longitude, the geographical coordinate.
- 9:27Speaker 1: The payload, and the attacker can just copy those coordinats and.
- 9:30Speaker 2: Paste them straight into Google Maps or a similar service
- 9:33Speaker 2: to see the location pinpointed on a map.
- 9:35Speaker 1: Okay, but you mentioned earlier they're caveats about precision. It
- 9:39Speaker 1: gets the coordinates, but they might not be perfectly accurate.
- 9:42Speaker 2: That's a really important point. Yes, it gets coordinates, but
- 9:44Speaker 2: how accurate they are can really depend on the target's
- 9:46Speaker 2: network situation at that exact moment.
- 9:49Speaker 1: Yeah.
- 9:49Speaker 2: So, well, like we discussed with Wi Fi versus mobile data,
- 9:52Speaker 2: the IP address itself might only give a general area.
- 9:55Speaker 2: Even with mobile data, the location reported might be the
- 9:58Speaker 2: cell tower, not your exact house. Sometimes internet service providers
- 10:03Speaker 2: use complex internal networking like carrier grade net that can
- 10:07Speaker 2: obscure the true origin, or if you're on a large
- 10:10Speaker 2: corporate or university Wi Fi network. It might report the
- 10:14Speaker 2: location of their main Internet gateway.
- 10:16Speaker 1: So while the tool works and gets coordinates, interpreting those
- 10:19Speaker 1: coordinates requires understanding they might not be centimeter precise exactly.
- 10:24Speaker 2: It's a powerful technique, but network realities can introduce fuzziness.
- 10:28Speaker 2: The attacker gets a location, but it might be the
- 10:30Speaker 2: center of the local cell coverage area or the ISP's
- 10:33Speaker 2: billing downtown rather than your specific chair.
- 10:36Speaker 1: That's fascinating. We've gone from the relative simplicity of setting
- 10:39Speaker 1: up authorized road access, which is all about careful permissions
- 10:43Speaker 1: inside windows, to this intricate dance of external tools tunneling,
- 10:48Speaker 1: network configuration, and deception, all aimed at pulling one specific
- 10:53Speaker 1: piece of data location. It really shows the spectrum, doesn't it.
- 10:57Speaker 1: How connectivity can be used for structured control on one
- 11:00Speaker 1: end and well sneaky data extraction on the other. Both
- 11:04Speaker 1: heavily rely on understanding how network's route traffic.
- 11:07Speaker 2: Yeah, that network configuration piece is key, and both scenarios
- 11:10Speaker 2: just applied differently. Absolutely, Okay, thinking about that location precision issue,
- 11:14Speaker 2: here's a thought exercise for you listening, building on that
- 11:17Speaker 2: idea that the type of network connection influences the reported location.
- 11:21Speaker 2: If you were worried about this kind of tracking, and
- 11:23Speaker 2: you had some control over your network setup, what's one
- 11:27Speaker 2: thing you might change about how you connect to the Internet,
- 11:29Speaker 2: Not an app setting, but a network choice to potentially
- 11:33Speaker 2: make the geolocation reported buyer device less precise or more
- 11:37Speaker 2: misleading to a tool like Seeker. It's a good question.
- 11:40Speaker 2: Think about the difference we highlighted between connecting via say
- 11:44Speaker 2: your home Wi Fi versus your mobile data or maybe
- 11:48Speaker 2: even using something like a VPN. Where does your traffic
- 11:51Speaker 2: appear to come from in those different scenarios.
- 11:53Speaker 1: Something to definitely chow on. It brings together everything we've
- 11:56Speaker 1: discussed about how network pathways dictate so much. Indeed, well,
- 12:00Speaker 1: this has been a really insightful dive into both sides
- 12:03Speaker 1: of mobile connectivity, the power and the pitfalls. Thanks for walking.
- 12:08Speaker 2: Us through it, my pleasure. It's a complex but critical
- 12:11Speaker 2: area to understand
- 12:12Speaker 1: And thank you all for joining us on the deep dive.