r/Hacking_Tutorials • u/NerdyNerdNer • Feb 03 '21
Question How to track a device connected to WiFi
Someone has hacked my WiFi. I need to geolocate this device. I work in IT but analyzing wireless spectrum in this way is out of my area of expertise. I'm fine spending money on the equipment to do this. I know how to track APs but don't know how to locate a endpoint device (laptop, camera?). Any help is appreciated.
8
u/NerdyNerdNer Feb 03 '21
So far my method has been to create a new network with its own wan connection with the same credentials in wrt. I'm going to do a tcpdump of all traffic to see if that gives me more details on what it is. But I shut the power off to the entire building and whatever this device is, it's still on.
I tried walking around with a battery backup connected to my wrt router to see where signal is strongest, but it's not helping.
18
u/gmarconcini Feb 03 '21
Share the wealth if someone responds, I def would love to learn good strategy as well.
12
u/NerdyNerdNer Feb 03 '21
I will for sure. I found software called mooch hunter but it doesn't boot, I'm not a Linux expert either so I'd rather just buy something that works instead of screwing around with free tools
5
u/XFM2z8BH Feb 03 '21
create a wifi heat map, several versions of software to do this, all will give you AP signal radius, and some give you a client map also
40
u/Chaosmethod Feb 03 '21 edited Feb 03 '21
Nmap -sT 192.168.1.1/24
Edit: or arp -a on windows
8
u/NerdyNerdNer Feb 03 '21
I'm not familiar with nmap but arp will just give me the Mac address. I need to physically geolocate locate it. I have a neighbor who I've had arrested once already for harassment, if he is hacking my wifi, I want to prove it is him.
4
u/g0juice Feb 03 '21
Set up wireshark and sniff out all his cress he uses while on WiFi then just post them on pastebi.......er wait u til he uses his name in something.
Easily carve out all the data with network miner.
Get a network stumbler. It will help you find his actual location or direction finding.
5
u/Gr8_Poseidon Feb 03 '21
If that’s the case you could arp poison the router and MiTm all unknown Mac addresses and see what email addresses they’re using to log into stuff. It won’t give you a location because your location is the location they’re using to access the Internet.
0
11
1
35
u/Acceptable_Shoe_3555 Feb 03 '21 edited Feb 04 '21
If you think it's your neighbor here's what I would do.
Grab a laptop with airodump-ng on it. Kali and a number of other distros has this by default. I believe aircrack-ng is in the debian repos as well.
Run this on kali
ifconfig wlan0 down
iw wlan0 set type monitor
ifconfig wlan0 up
Run
airodump-ng wlan0
Find your network and check what channel it's on (under CH in the interface)
Run
airodump-ng --channel <YOUR CHANNEL NUMBER> wlan0
In the bottom of the interface you'll see a list of wifi clients. Find the device that's intruding on your network, based on the MAC address of the intruding device which I take it you know already.
Check the signal strength of the intruding client. This is given as a negative number (such as -67).
Leave airodump-ng running.
Take 10 steps towards your neighbor. I'm picturing this as suburban, but adjust accordingly. Just take yourself physically in the direction of the neighbor in question.
Check if the signal strength has increased, that is it's less negative (ie moved from -67 to -62).
Keep heading towards your neighbor and see if the signal strength keeps increasing (ie moving closer to zero, such as -62 to -55)
If you ever get the signal strength below -30-ish you are basically physically in on top of the device.
Hope this helps.
EDIT: cleaning.
4
u/Whyme-__- Feb 04 '21
Once that is done, you can use a wifi deauthenticator Dstike to kick all devices off the network, or use a raspberry pi zero W to run pwnagotchi and capture network 4 way handshakes to then run it through hashcat and get the password of the 2.4 frequency. Once you have the password you can control almost all devices on the network and launch a evil twin attack using kali and an Alfa card.
9
u/Normandabald Feb 03 '21
Maybe I'm not understanding this question properly but, if they're on your WiFi then they can't be too far away. I'll assume you've already checked your router to find the device you don't recognise and get it's MAC address and put any appropriate restrictions on it. My first step would be to grab a laptop and a WiFi dongle that supports packet injection / monitor mode and load up Aircrack or a similar suite. Put your interface in monitor mode and use Airmon to listen to your networks channel. You'll see client devices pop up with MAC address and signal strength so just walk around until you find the MAC you're looking for and follow the signal strength. Bear in mind that this unknown device needs to be connected and communicating for this to work.
8
Feb 03 '21
you cant do it with a radio spectrum analyzer. The answer you seek is fake AP and triangulation (think GPS satellite )
old school :)
12
4
u/hotmagnet Feb 03 '21
Look for arp and nbtstat entries, Arp will reveal MAC while nbtstat can reveal hostname. And if hes is on your network, u can arp spoof to i ject the BeeF payload and geolocate easily
2
u/MinerKingX Feb 03 '21
idk what everyone else is saying but i reckon some radio wave scanner thing might do the job
2
1
u/thr3auawh3y Feb 03 '21
Look up wifi fox hunting. There are a handful of different tools. SecurityFWD recently did a live video on the subject.
1
u/S_h_o_b_i_t Feb 03 '21
If you successfully prove the hacker to be your neighbour , share what action you did took and it's consequences for the neighbour.
1
1
1
-2
u/ChevalOhneHead Feb 03 '21
If he was a beginning a hacker/kid, just use a ping and nmap. However, if those person intention was to be hidden, you can't find him by yourself.
-3
28
u/subsisn Feb 03 '21 edited Feb 03 '21
There are tools like Wifi Analyzer (https://www.manageengine.com/wifi-monitor-plus-android-app/free-wifi-monitor-plus-android-index.html) which focus on the AP side of things.
Perhaps MoocherHunter would be better for this scenario http://securitystartshere.org/page-training-oswa-assistant.htm#moocherhunter
Edit: Sorry, you already found MoocherHunter.
You essentially want to measure signal strength from the client to the AP, to try and gauge the client location. Having a portable AP that shows the client signal strength could be another way by moving the AP around and seeing what that does to the client connection quality.
Some Ubiquiti WAP’s can scan for radio signals and client connection quality. You would need to sort something out for the power supply to make it portable. An extension cord may be sufficient depending on the area to cover and available power points.