Skip to content

a simple script written for OSX to restart all network interfaces, clear ARP cache, and flush routes. also includes MAC randomization and protection from ICMP redirect attacks.

License

Notifications You must be signed in to change notification settings

olafhartong/flushwifi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flushwifi

a simple script written for OSX to restart all network interfaces, clear ARP cache, and flush routes. also added protection from ICMP redirect attacks which OSX won't store as a permanent setting, so it needs to be run each startup:

sysctl -w net.inet.icmp.drop_redirect=1

requires spoof-mac in order to utilize MAC spoofing functionality.

get it here:

https://github.com/feross/SpoofMAC

###TO INSTALL AND RUN SCRIPT:

git clone https://github.com/eudemonics/flushwifi flushwifi
cd flushwifi
cp flushwifi.sh /usr/local/bin/

OPTIONAL - REMOVE GIT DOWNLOAD DIRECTORY:

cd ..
rm -rf flushwifi

OPTIONAL (just in case your environmental path is all screwed up):

export PATH=${PATH}:/usr/local/bin

SET SCRIPT AS EXECUTABLE:

chmod +x /usr/local/bin/flushwifi.sh

FINALLY, RUN THE SCRIPT:

sudo flushwifi.sh

About

a simple script written for OSX to restart all network interfaces, clear ARP cache, and flush routes. also includes MAC randomization and protection from ICMP redirect attacks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%