Aircrack fixed channel mon0 : -1

Debian,Open Source,Security,Ubuntu 10 January 2011 4 Comments



Here is the solution (at your own risk).


$ sudo apt-get install linux-headers-$(uname -r)
$ wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-12-20.tar.bz2
$ tar -jxf compat-wireless-2010-12-20.tar.bz2
$ cd compat-wireless-2010-12-20
$ wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
$ sudo apt-get install patch
$ patch ./net/wireless/chan.c channel-negative-one-maxim.patch
$ make
$ sudo make install
$ sudo make unload
$ sudo reboot

OSX : Installing MongoDB and the PHP MongoDB driver.

Mac OS X,Open Source,PHP Programming,Web Development 7 January 2011 0 Comments



1) Grab the latest 64-bit version for OSX from MongoDB website.

2) Untar the file
tar -zxvf mongodb-osx-x86_64-1.6.5.tgz

3) I use XAMPP for OS X, need to create a location for it to store databases.
sudo mkdir -p /Applications/XAMPP/xamppfiles/var/mongodb
sudo cp -r bin/* /Applications/XAMPP/xamppfiles/bin/

4) Create configuration file, name it mongodb.conf and put it at /Applications/XAMPP/xamppfiles/var/mongodb.

# Store data alongside MongoDB instead of the default, /data/db/
dbpath = /Applications/XAMPP/xamppfiles/var/mongodb

# Only accept local connections
bind_ip = 127.0.0.1

5) Run MongoDB deamon with this command
sudo /Applications/XAMPP/xamppfiles/bin/mongod --config=/Applications/XAMPP/xamppfiles/var/mongodb/mongodb.conf

6) Test if it’s running http://localhost:28017.

7) To install Mongo PHP driver, compile the driver from the latest source on GitHub.

tar zxvf mongodb-mongodb-php-driver-.tar.gz
cd mongodb-mongodb-php-driver-
sudo /Applications/XAMPP/xamppfiles/bin/phpize
./configure
sudo make install

8 ) Copy compiled module to PHP extension directory.

/Applications/XAMPP/xamppfiles/bin/php -i | grep extension_dir
cp modules/mongo.so /Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626

9) Load the extension on PHP startup, add a line to php.ini:
extension=mongo.so

10) And you are good to start Mongo! Cheers.

Tagged in , ,

Happy binary day, 010111.

Journal 1 January 2011 0 Comments



Wishing everyone a bright, healthy and happy new year 2011!

PHP Security Talk at MyGOSSCON 2010

Open Source,PHP Programming,Security 11 November 2010 0 Comments

Slide from my recent presentation at MyGOSSCON 2010

A big thank you to those who attended my presentation. Big applause to the organizer.

How to convert SQLite2 to SQLite3 database

iOS Development 11 November 2010 0 Comments

Here is the sample :

sqlite2 path/to/olddb .dump > backupfile
sqlite3 path/to/newdb < backupfile