Sunday, December 16, 2012

ZigBee does not have replay protection...

www.willhackforsushi.com/presentations/toorcon11-wright.pdf

Cisco router: default user name for ppp authentication

CHAP
By default, a cisco router uses its host name for username.
http://www.cisco.com/en/US/tech/tk713/tk507/technologies_tech_note09186a00800b4131.shtml#chapconfig

PAP
Have to specify user name for the authentication

Friday, December 14, 2012

Wireshark: key bindings for selecting packets


  • Ctrl-Up :  Selecting previous packet
  • Ctrl-Down :  Selecting next packet
  • Ctrl-, :  Selecting previous packet in conversation 
  • Ctrl-. :  Selecting next packet in conversation

Tuesday, December 11, 2012

Installing gcc on Mountain lion

Mountain lion does not include gcc, and the compiler comes with Xcode 4.3 is llvm, not gcc.

Installing HomeBrew
$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"


Installing gcc with c++ support (c and c++ supports are enough for me)
$ brew install --enable-cxx --use-llvm https://raw.github.com/Homebrew/homebrew-dupes/master/gcc.rb


Note: When installing HomeBrew, the installer changes permission for /usr/local/.
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib

Reference:
https://github.com/mxcl/homebrew/wiki/FAQ#wiki-sudo
https://github.com/Homebrew/homebrew-dupes/blob/master/gcc.rb

Monday, December 10, 2012

Wireshark on Mac: Changing menu fonts

You can change a font for captured data from preferences, but it doesn't change the font for the application menu. To make the ugly unpleasant font acceptable, change "pre_gtkrc" file in "/Applications/Wireshark.app/Contents/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/"

1. Change the font
#gtk-font-name="Lucida Grande 12"
gtk-font-name="Sans 10"

2. Change the menu sizes (buttons, etc.)
#gtk-icon-sizes = "gtk-menu=16,16:gtk-dialog=48,48:gtk-dnd=32,32:gtk-button=20,20:gtk-large-toolbar=24,24:gtk-small-toolbar=16,16:inkscape-decoration=12,12"
gtk-icon-sizes = "gtk-menu=14,14:gtk-dialog=24,24:gtk-dnd=32,32:gtk-button=14,14:gtk-large-toolbar=14,14:gtk-small-toolbar=10,10:inkscape-decoration=6,6"

3. Results


4. Notes
- Lucida Grande is the default system font for Mac, but it looks completely difference under X11.
- The environment is rMBP Mid 2012 running Mountain lion 10.8.2.
- The output is somewhat blurred since X11 cannot handle the retina display.

Sunday, December 9, 2012

Wireshark: Enabling capturing from a non-root user

Under Ubuntu 12.04
Unlike youtube video, logout was necessary to get interfaces to show up on the wireshark!

$ sudo apt-get update
$ sudo apt-get install wireshark

$ sudo groupadd wireshark
$ sudo usermod -a -G wireshark USER_NAME
$ sudo chgrp wireshark /usr/bin/dumpcap
$ sudo chmod 750 /usr/bin/dumpcap
$ sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap