Thursday, September 29, 2011

VI hex edit

in vi:
[esc] :%!xxd
to undo:
[esc] :%!xxd -r

Wednesday, October 8, 2008

Sunday, June 22, 2008

Fedora 9: installing flash-plugin and fixing sound in flash

From http://hacktux.com/fedora/9/flash:

Fedora 9 features the Open Source Flash player, Swfdec. You can install the Swfdec plugin for Firefox using Yum.
sudo yum install swfdec-mozilla

Fedora 9 also provides Gnash.
sudo yum install gnash-plugin

Install Adobe Flash Using Yum

Alternatively, you can use Adobe's Flash plugin. To install the Adobe Flash plugin on Fedora 9 visit http://www.adobe.com/products/flashplayer/ and click Download Now. Then select YUM for Linux and download the provided RPM (adobe-release-i386-1.0-1.noarch.rpm).

Install the downloaded RPM which installs /etc/yum.repos.d/adobe-linux-i386.repo.
sudo rpm -i adobe-release-i386-1.0-1.noarch.rpm

Check that you can access the Adobe Yum repository.
yum --disablerepo=* --enablerepo=adobe* list

Next, remove the Fedora Swfdec and Gnash plugin to avoid conflicts.
sudo yum remove swfdec-mozilla gnash-plugin

Now, install the Adobe Flash Plugin
sudo yum install flash-plugin

Finally, add the Adobe plugin is in your $HOME/.mozilla/plugins folder.
mkdir -p $HOME/.mozilla/plugins
cd $HOME/.mozilla/plugins
ln -s /usr/lib/flash-plugin/libflashplayer.so .

Fixing sound:
bash# yum install libflashsupport

Tuesday, May 20, 2008

Fedora 9 kernel headers

bash# yum install kernel{,-PAE,-xen,-kdump}-devel

does the trick

Sunday, May 11, 2008

SELinux

http://www.ibm.com/developerworks/linux/library/l-selinux/?ca=dgr-btw01SELinux

Saturday, April 26, 2008

Open vs Shared Key Authentication

From http://www.wifi-forum.com/wf/archive/index.php/t-3187.html

The difference is really pretty trivial. In shared-key authentication, the
AP sends out a pseudo-random sequence of bytes, unencrypted. The station
trying to associate must encrypt the string and send it back. The AP doesn't
allow the association process to complete unless it recovers the original
string by decrypting (which "proves" that the client is using the same WEP
key). In open authentication, any station is allowed to associate. But if
WEP is used, association is useless. You still have to encrypt correctly in
order to exchange any IP packets. All you've really done is push
authentication up to layer 3.

The main problem with shared-key authentication is that it gives a hacker
monitoring the network a free sample of a matched plaintext/codetext pair.
At the very least it allows the hacker to recover the exact keystream used
to encrypt that frame, which can then be directly used to decrypt the first
several bytes of any subsequent frame using the same IV value. It is also a
freebie first entry in a database that could eventually be used to recover
the shared key. Also, the plaintext may give some insight into the
pseudorandom algorithm used by the AP, which might also be used in
encryption.