wifi

Scapy - retrieving RSSI from WiFi packets

空扰寡人 提交于 2019-11-30 14:40:41
I'm trying to get RSSI or signal strength from WiFi packets. I want also RSSI from 'WiFi probe requests' (when somebody is searching for a WiFi hotspots). I managed to see it from kismet logs but that was only to make sure it is possible - I don't want to use kismet all the time. For 'full time scanning' I'm using scapy. Does anybody know where can I find the RSSI or signal strength (in dBm) from the packets sniffed with scapy? I don't know how is the whole packet built - and there are a lot of 'hex' values which I don't know how to parse/interpret. I'm sniffing on both interfaces - wlan0

Is there a way to check whether tethering is active?

别来无恙 提交于 2019-11-30 14:39:40
can I check programmaticall wheter the android device has tethering activated? I just watched the WifiManager class. All vatraibles from the WifiInfo show the same values as iff the WIFI is turned off on the device. Thnaks, best regards Try using reflection, like so: WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); Method[] wmMethods = wifi.getClass().getDeclaredMethods(); for(Method method: wmMethods){ if(method.getName().equals("isWifiApEnabled")) { try { method.invoke(wifi); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e

Programmatically turn on/off wifi on real iOS device with UI Automation

廉价感情. 提交于 2019-11-30 14:18:16
I have already read once or twice that turn on/off wifi on a real iOS device (iPad in my case) with a UI Automation script seems not possible. I've also read that you can create a script with the target "Settings" but it seems that it's only for simulators, am I right ? Do you have any ideas or solutions for me ? Regards, dorit i was able to do so (just make sure you target application is on foremost state when doing so): var target = UIATarget.localTarget(); target.dragFromToForDuration({x:0.1, y:557.00}, {x:211.00, y:206.00}, 0.5); //to expose the actions panel on iOS target.frontMostApp()

Android: Scanning Wifi Network + Selectable list

情到浓时终转凉″ 提交于 2019-11-30 14:09:22
I'm trying to creat an application that let you scan the available wifi networks, and then display them in a selectable list. To do that I tried with this code: package android.nacho.WifiScan; import java.util.List; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.wifi.ScanResult; import android.net.wifi.WifiManager; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget

Wi-Fi Direct and “normal” Wi-Fi - Different MAC?

廉价感情. 提交于 2019-11-30 14:03:20
I'm currently trying to connect two phones which know each other's MAC address via Wi-Fi Direct, and stumbled upon the following problem: The MAC address, which I receive from WifiManager wifiMan = (WifiManager) this .getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInf = wifiMan.getConnectionInfo(); MAC_ADDRESS = wifiInf.getMacAddress(); is slightly different than the one I receive from the WifiP2pManager when discovering and requesting peers. Example: a0:xx:xx:... turns into a2:xx:xx.... Does anyone know why? I did not find any way to get the "Wi-Fi Direct MAC address", and as I thought

how the new Mac OS AirDrop works

谁说我不能喝 提交于 2019-11-30 11:49:42
I am wondering what technologies are used by the new Mac OS AirDrop and if there is a way to use it on windows. You know that AirDrop is a feature that will be introduced as part of Mac OS X Lion (version 10.7), right? That version of the OS is not even out yet, and it won't be until later this summer. Furthermore, I assume that the handful of lucky developers who have a pre-release copy are under a strict non-disclosure agreement (this is Apple, and that's pretty standard policy in the industry anyway), which would keep them from giving any details about the feature in a public forum such as

How to determine a wifi channel number used by wifi ap/network?

有些话、适合烂在心里 提交于 2019-11-30 11:32:14
问题 Ive discovered that several android wifi-apps (WiFi Manager, WiFi Analyzer) shows a channel number of WiFi network additionally to BSSID/SSID etc. But I can't find any info on how they do it. The only thing I know is I can get some wifi frequency. Maybe they determine a channel corresponding to that frequency? Is there a way to detect channel of wifi network in android at all? Of course this info is not a big deal and I can live without it :) but still i'm curious... 回答1: According to Radio

Is Wi-Fi Direct connection possible within iOS devices and among Wi-Fi Direct enabled devices?

喜夏-厌秋 提交于 2019-11-30 11:21:27
问题 Is Wi-Fi Direct connection possible within iOS devices and among Wi-Fi Direct enabled devices? The objective is to enable communication between an iOS device and another device (not necessarily another iOS device. It could be Android, Mac, PC) without the presence of any controllers. (WAPs). 回答1: iOS devices can connect to an ad-hoc network, and if they do so they will have full wireless network capabilities. The limitation is with creating an ad-hoc network from the device itself, which is

How to create WiFi popup login page

久未见 提交于 2019-11-30 10:16:49
问题 When I go to a place with a WiFi hotspot (such as Panera Bread) and connect with my iPhone, the hotspot login page appears as a popup. That is, no matter what app I'm running or what web page I'm on, the login page scrolls up from the bottom, asks for my login credentials, and then disappears. But at some other hotspots, I don't get the login page until I go to Safari and try to load a web page. What is the iPhone looking for that causes it to pop up the login page at some hotspots and not

Connect to WiFi programmatically in ios

天涯浪子 提交于 2019-11-30 10:09:35
My question is about private API in IOS. Is there some API to manage WiFi connection? For example I'm using Apple80211.framework to scan WiFi networks but it's unusable for connecting. My app isn't for appstore. I ran into this issue last year and after quite a bit of digging I came across a helpful example called SOLStumbler. For this app to work your device must be jailbroken. I modified SOLStumbler and threw up a sample app on github. It uses the IPConfiguration bundle to access Apple80211 framework, which allows you to associate to a network. The readme contains the custom build