Archive | Security

OSX Wireless / Airport Terminal Commands

Make airport app available: sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport Airport app commands: Supported arguments: -c[<arg>] –channel=[<arg>] Set arbitrary channel on the card -z –disassociate Disassociate from any network -I –getinfo Print current wireless status, e.g. signal info, BSSID, port type etc. -s[<arg>] –scan=[<arg>] Perform a wireless broadcast scan. Will perform a directed scan if the […]

Continue Reading 0

Bash Script Hosts file Ad Blocker

Put in cron or run manually. #!/bin/bash # If this is our first run, save a copy of the system’s original hosts file and set to read-only for safety if [ ! -f /etc/hosts.bak ] then echo “Saving copy of system’s original hosts file…” sudo cp /etc/hosts /etc/hosts.bak sudo chmod 444 /etc/hosts.bak fi # Perform […]

Continue Reading

Misc useful OSX commands

Remove the “Last login” message from the Terminal touch .hushlogin Enable/Disable Firewall defaults write /Library/Preferences/com.apple.alf globalstate -int 1 0 = off 1 = on for specific services 2 = on for essential services   launchctl load -w /System/Library/LaunchDaemons/ssh.plist launchctl unload -w /System/Library/LaunchDaemons/ssh.plist launchctl list | grep ssh

Continue Reading 0

Driftnet – misc scripts

#!/bin/bash mpixW=250 mpixH=300 if [ "x`which identify`" != x ] ; then echo `which identify` found! echo Tossing images less than $mpixW pixels. while true ; do read img imgType=$( expr `identify -format ‘%e’ “$img”` ) if [ "$imgType" == "jpeg" ] ; then sizeW=$( expr `identify -format ‘%w’ “$img”` ) sizeH=$( expr `identify -format […]

Continue Reading 0

Driftnet x64 Fix

apt-get source driftnet START COPY BELOW LINE ———https://bugzilla.redhat.com/attachment.cgi?id=134667——— — driftnet-0.1.6/image.c 2002-07-09 20:26:41.000000000 +0100 +++ driftnet-0.1.6.new/image.c 2006-08-22 21:14:38.000000000 +0100 @@ -15,29 +15,20 @@ static const char rcsid[] = “$Id: image. /* memstr: * Locate needle, of length n_len, in haystack, of length h_len, returning NULL. – * Uses the Boyer-Moore search algorithm. Cf. – * http://www-igm.univ-mlv.fr/~lecroq/string/node14.html […]

Continue Reading 0

Change the speed and duplex settings of an Ethernet card

# apt-get install ethtool net-tools # ethtool eth0 or # mii-tool eth0 add a pre-up line to /etc/network/interfaces. Something like this: iface eth0 inet static pre-up /usr/sbin/ethtool -s eth0 speed 1000 duplex full autoneg off address … OR Debian init script: # sudo vi /etc/init.d/100Mbs #!/bin/sh ETHTOOL=”/usr/sbin/ethtool” DEV=”eth0″ SPEED=”100 duplex full” case “$1″ in start) […]

Continue Reading 0

FREE VPN Server

VPN Free Account Host Server or IP Address : 216.155.136.84 User Name : anonymous Password : anonymous This VPN gives you a valid IP from 216.155.136.84 server instead of your real IP. 128bit Strong Encryption prevents even your ISP from spying on you! A VPN connection also helps prevent data theft (such as passwords or […]

Continue Reading

Powered by recycled bites and bytes.