Coder Social home page Coder Social logo

bring-shrubbery / macos-airport-tool Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 14 KB

This is an attempt to replicate 'Airport' tool found in the depths of macOS. It also allows connecting to a specific bssid.

Swift 100.00%
swift airport macos xcode bssid scanner

macos-airport-tool's Introduction

macOS 'Airport' Tool

This is an attempt to replicate 'Airport' tool found in the depths of macOS. If you don't know what I'm talking about then you can try it out by either going here:

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/

and typing ./airport. It will display all you need to know about this tool. If you would like to use it from any directory in the terminal, you will need to make a symbolic link (alias) to one of the 'bin' directories in the root directory (eg. /bin, /usr/local/bin, etc.). I found that /usr/local/bin works the best and doesn't introduce any permission problems. To do it just go to one if bin directories, for example:

cd /usr/local/bin

and then make a symbolic link to that directory:

sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport

Goal of the project

The goal is to make a perfect copy of the original tool, so someone who is curious how it approximately was made could look into source code and learn something, so the contribution is highly appreciated.

Feel free to modify the project and submit pull requests, but remember what the goal of this project is!

Prerequisites

This project was made in Xcode 9.4.1 so it's encouraged to use this or a newer version to run it. You could also use pure swift compiler to create a binary executable. Here's how:

  • Install Xcode Command Line Tools or...
  • Go to swift.org and follow installation guide to install swift
  • Create new folder for the project and go into it mkdir wifiScanner && cd wifiScanner
  • Initiate empty swift project using swift package init --type executable
  • Put all .swift files into the sources folder
  • Run swift run wifiScanner

Usage

For now, when you run the executable you can only provide interface name and command to scan for networks wifiScanner en0 -s or just provide scan command to use default interface wifiScanner -s.

Built With

  • Xcode - development IDE
  • Swift - Swift Programming Language

Acknowledgments

  • Thanks to Apple for having such good tool on their system, even though it is hidden

macos-airport-tool's People

Contributors

bring-shrubbery avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.