# bssid command for macOS
Once upon a time, you can specify a BSSID to connect by doing `airport -A=ssid -BSSID=bssidname -password=password`, which is no longer supported.
this `bssid` provide a simple way to list BSSID and connect to one
## Usage
``` shell
# list BSSID given a SSID
bssid scan # this will list all visible BSSID
bssid scan <ssid1> <ssid2> # only show result of <ssid1> and <ssid2>
# connect to BSSID, will prompt for password
bssid connect <bssid>
# For 10.15 or above users, get over by specifying SSID and channel number instead
bssid connect --ssid <ssid>
bssid connect --ssid <ssid> --channel <channelNumber>
```
## Build
``` shell
# Building
make
# or
swift build
# Install
make install
# or symlink to wherever you like
ln -fs PATH_TO_LOCAL_REPOSITORY/.build/x86_64-apple-macosx/debug/bssid /usr/local/bin/
```
## For people using macOS 10.15 or above
TL;DR
Ping me or send me PR if you know how to get `CoreWLAN` returning BSSID ;)
It looks like Apple's problem. Use SSID and channel number instead.
### What does not work**
#### Signing the app
Some suggests starting from 10.15, Apple seemed to change the policy on getting bssid that you need a developer account to sign the executable to get BSSID, otherwise you only get empty return.
``` shell
# If you have a developer account
codesign --entitlements bssid.entitlements -s 'Your identity' ./.build/x86_64-apple-macosx/debug/bssid
# Seems you can also sign and run locally
codesign --force --sign - --entitlements bssid.entitlements --timestamp=none ./.build/x86_64-apple-macosx/debug/bssid
```
#### Requesting location permission
Some users suggested requiring location information in order to get location but some reported it did not work
https://developer.apple.com/forums/thread/124189
没有合适的资源?快使用搜索试试~ 我知道了~
用于连接到 macOS 的特定 bssid 的 命令行工具_swift_代码_下载
共22个文件
swift:8个
plist:3个
xcscheme:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 20 浏览量
2022-07-02
23:22:36
上传
评论
收藏 30KB ZIP 举报
温馨提示
您可以通过doing指定一个BSSID进行连接airport -A=ssid -BSSID=bssidname -password=password,现在不再支持。 这bssid提供了一种简单的方法来列出 BSSID 并连接到一个 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
airport-bssid-master.zip (22个子文件)
airport-bssid-master
bssid.entitlements 181B
LICENSE 34KB
Sources
bssid
main.swift 197B
scan.swift 1KB
connect.swift 2KB
setup.swift 261B
connect-ssid.swift 1KB
root.swift 372B
utils.swift 529B
Package.swift 305B
bssid.xcodeproj
project.xcworkspace
contents.xcworkspacedata 135B
xcshareddata
WorkspaceSettings.xcsettings 269B
IDEWorkspaceChecks.plist 238B
StringScanner_Info.plist 723B
project.pbxproj 36KB
Guaka_Info.plist 723B
xcshareddata
xcschemes
bssid-Package.xcscheme 2KB
bssid.xcscheme 3KB
.gitignore 1KB
Package.resolved 593B
Makefile 204B
README.md 2KB
共 22 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功