Saturday, July 25, 2015

Capture packets from iOS devices on Mac OS with Wireshark

RVI (Remote Virtual Interface)

1. Connect your iOS device to a Mac with USB
2. Open terminal and enter "rvictl -s deviceUUID" to start device with interface rvi0
3. Run wireshark and start capturing the packet on interface rvi0
4. Sotp interface rvi0 by enter "rvictl -x deviceUUID"

PS. deviceUUID is the UUID of your iOS device

Friday, July 24, 2015

Useful applications for Mac OS X

Browser:
   . Chrome
   . Firefox
IM:
   . Line
   . Skype
   . QQ
Code editor:
   . Sublime text
IDE:
   . Xcode
Utilities:
   . CleanMyMac
   . Alfred
   . Disk Inventory X
Cloud storage:
   . Dorpbox
Download:
   . BitTorrent
   . FileZilla
Video Player:
   . MPlayerX
Background nature music:
   . Noizio
. NTFS:
   . Paragon NTFS
. Virtual Machine:
   . Parallels Desktop
. Calendar:
   . Sunrise calendar
. Remote Desktop
   . TeamViewer
. Gestures for trackpad
   . BetterTouchTool

Tuesday, July 7, 2015

Keyboard shortcuts for symbols on Mac OS X


Degree (˚): option + k
Micro (µ): option + m
Copyright (©): option + g
Ohm (Ω): option + z
Registered (®): option + r
Trade mark (™): option + 2

Math:
Approximate (≈): option + x
PI (π): option + p
Delta (∆): option + j
Infinity (∞): option + 5
Division (÷): option + /
Not equal (≠) : option + '+'
Plus/Minus (±): option + shift + =
Square root (√): option + v
Alpha (∂): option + d
Beta (ß): option + s
Function(ƒ): option + f
Calculus (∫): option + b

Money:
Yen (¥): option + y
Pound: (£): option + 3
Euro (€): option + shift + 2

No interface available in Wireshark on Mac OS

Change the permission to 644 on the BFF (Berkeley Packet Filter) in /dev/

sudo chmod 644 /dev/bpf*

or

whoami to find out your name

sudo chown yourname:admin /dev/bp*

And restart wireshark!

Monday, July 6, 2015

USB to Serial (Console) on Mac OS X

Use the built-in "screen"

1. Install the USB to Serial driver (PL2303 Mac OS X)
2. In terminal, launch Screen and connect to device by following command (115200: baud rate)
    screen /dev/cu.usbserial 115200
or screen /dev/tty.usbserial 115200

To list the screen sessions: screen -ls   (output in format pid.tty.host)
To resume a detached session: screen -r   or  screen -x pid

Commands in 'screen':
'Control+a' and then '?' : Help
'Control+a' and then 'H' : toggle logging
'Control+a' and then 'Control+\' : Quit screen



Check clients which connect to Mac OS X Wi-Fi Internet Sharing

arp -i bridge100 -a bridge100 may be different on your Mac OSX