LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2019, 08:39 AM   #1
davelady
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Rep: Reputation: Disabled
Scan to find any phones devices with wifi on


I am working in a testing lab where people take tests. The director that runs it wants me to be able to scan and see if anyone taking a test has their phones wifi turned on (they are not allowed to access the internet during the tests).

I have been researching nmcli dev wifi and iw dev (cardname) scan and am getting inconsistent results.

Can anyone point me in a better direction to see (not connect to) any phone wifi that is turned on?
 
Old 10-20-2019, 09:11 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,147
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Examples:

Code:
nmap -sP 192.168.0.0/24
nmap -sn 172.16.0.0/24 -oG -
nmap -sP -sn 172.16.0.0/24 -oG -
nmap --script broadcast-dhcp-discover
 
Old 10-20-2019, 10:03 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,773

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Without knowing your network infrastructure pointing you in a better direction is really not possible.

Do you have an access point inside the lab itself? How many access points are detectable inside the lab?

How many mobile phone services are available and have decent signal strength in the lab?

Phones do not have to be connected to WiFi to access the internet and the simplest way to prevent people from using the internet is to collect their devices and lock them up.

If the lab access point or closest AP connects directly to a bigger LAN then a simple nmap scan would find everyone not just wifi or phones in a single location. Depending on AP it could provide a list of connected devices if you had direct access but then you can not tell if they are inside or outside the lab.

Some WiFi devices send periodic ping/broadcast messages which would indicate it is on for devices not connected to an AP.
 
Old 10-20-2019, 10:35 AM   #4
davelady
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Examples:

Code:
nmap -sP 192.168.0.0/24
nmap -sn 172.16.0.0/24 -oG -
nmap -sP -sn 172.16.0.0/24 -oG -
nmap --script broadcast-dhcp-discover
nmap thank you.
 
Old 10-20-2019, 10:35 AM   #5
davelady
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Without knowing your network infrastructure pointing you in a better direction is really not possible.

Do you have an access point inside the lab itself? How many access points are detectable inside the lab?

How many mobile phone services are available and have decent signal strength in the lab?

Phones do not have to be connected to WiFi to access the internet and the simplest way to prevent people from using the internet is to collect their devices and lock them up.

If the lab access point or closest AP connects directly to a bigger LAN then a simple nmap scan would find everyone not just wifi or phones in a single location. Depending on AP it could provide a list of connected devices if you had direct access but then you can not tell if they are inside or outside the lab.

Some WiFi devices send periodic ping/broadcast messages which would indicate it is on for devices not connected to an AP.
Fair enough is there a way to see any devices with a SIM internet connection that are nearby? I had not thought of that..
 
Old 10-20-2019, 10:54 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,343
Blog Entries: 3

Rep: Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744
The nmap utility will only show the phones which are registered to your wireless network.

You might look at kismet instead, but the point about the SIM cards would still stand.

There are charging stations which are basically tiny lockers with keys and universal adapters inside. Your best bet would be to get one of those and have people check their phones into the locker on the way in.

Maybe look for bluetooth nodes?
 
Old 10-20-2019, 10:59 AM   #7
davelady
LQ Newbie
 
Registered: Feb 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
The nmap utility will only show the phones which are registered to your wireless network.

You might look at kismet instead, but the point about the SIM cards would still stand.

There are charging stations which are basically tiny lockers with keys and universal adapters inside. Your best bet would be to get one of those and have people check their phones into the locker on the way in.

Maybe look for bluetooth nodes?
Yes thanks I am already scanning for bluetooth standard and BLE. We're not able to pat people down (world aint like it used to be) and you may be shocked but the 'honor' system of not bringing a phone into the room isn't always followed , hence this request from the lady that runs the testing center..
 
Old 10-20-2019, 11:11 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,343
Blog Entries: 3

Rep: Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744Reputation: 3744
Oh. Patting might not be necessary, wanding should suffice. :P

There are a lot of "HAT"s for Raspberry Pis, some of which could check for 2G/3G/4G signals and guess at proximity when combined with the right coding.
 
Old 10-20-2019, 11:17 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,773

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
I'm not serious but you can build or buy your own fake base station and therefore phones will connect to it verses the real network. There is software to detect fake stations so it may not work in all cases.

A spectrum analyzer in the lab to detect see when a phone broadcasts a RF signal. A good analyzer is not cheap.

Build a Faraday cage inside the lab which will prevent any RF signal from entering. If any AP or cell phone repeater is in the lab itself you can remove power to the device. Not cheap either.

Buy RF shield bags for the testers but if you only work on the honer system then it isn't going to work either.

Again the easiest and cheapest method is to collect their phones.

Last edited by michaelk; 10-20-2019 at 02:17 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wifi not working in Parrot OS Linux . Wifi not show any devices Chhetri Debian 3 10-07-2019 11:56 AM
LXer: BlackBerry chief: We don't have to make phones to make phones LXer Syndicated Linux News 0 07-20-2016 02:27 AM
hi i am trying to write an API to scan the WIFI devices available nearby using C wifidev Linux - Wireless Networking 3 12-26-2014 10:52 AM
Pros and cons of Android phones, iPhones and Blackberry phones? puppymagic General 21 11-23-2010 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration