Selasa, 08 Februari 2011

Rahasia : Make URLs Tiny with TinyURL Gnome-Do Plugin

URLs are an unwieldy bunch, and much like my wife's vociferous tirades, they are only getting longer. However, there exist many great resources (here, here, and here; the list goes on) to shorten that distastefully lengthy URL for a quick paste into gchat, a facebook comment, or the like. To do this, you must undertake the arduous and lengthy task of opening a new broswer tab, pasting, clicking, copying, then pasting.
Ubuntu, for many, is about speed and productivity. And looks. And ease of use. One of the best ways to increase your productivity in the Gnome environment is Gnome-Do (reviewed previously). Do has a ton of great plugins, with descriptors on usage and modification on the wiki. A great plugin for Do is TinyURL, which is in the community plugins section. To turn it on, go to Gnome-Do preferences, search for TinyURL in the plugins tab, and make sure it is checked. Here is a great usage, making a link to a favorite cooking blog, for gluten free molasses cookies.\

1. Open the gnome-do window
2. paste your url in the first box,
3. hit tab
4. type in t,i,n. this should bring up the tinyurl option. hit enter
5. you now have your TinyURL generated. You may visit the site by hitting enter, or...
6. hit tab. type in copy, and hit enter. it is now copied to your clipboard!

This whole process takes about 1-2 seconds. And you never have to remove your hands from the keyboard. It is a super-quick way of producing shortened urls and have them in your clipboard. See pictures below for visual depictions of the above-mentioned instructions.


Rahasia : Hack into Wireless Routers With WepCrack-GUI

Aircrack-ng is suite of CLI applications centered around penetrating wireless routers. It is available in the repositories. To install in Ubuntu 10.10, simply type into a terminal:

sudo apt-get install aircrack-ng
There is lots of great information available on the aircrack website, and in the aircrack forums. I am sure you will dutifully read every word written in their wiki, but perhaps you still have questions and don't enjoy being mocked and derided by the german hackers who frequent their site (they tend to answer every question with, "please read before posting [dumbass]"). Maybe you are not at the level where you can thoroughly appreciate the intricacies of wireless security and WEP key decryption. I recommend at least reading the getting started guide, so that you know a little about what is going on. I won't attempt to write a how-to guide on individual commands, because that is way above my paygrade. However, let's say you want to gain access to a router, yet you have not been afforded the password or key. Let's also say that you checked with the law and bylaws of your area and are assured that it is not illegal in your area, as it is illegal in many areas to access a router to which you have not been given proper authorization by its owner. Again, let's say that you are sure you are not violating the laws in your area by using this software.

So here you are, you to want crack a router's security, but you are a total n00b. Well, fear not my friends, WepCrack-GUI is here! This is a nifty lil' GUI app written in mono, that will essentially perform the aircrack-ng CLI commands for you, and output it in its cute GUI interface.


To install WepCrack-GUI, direct your browser to their sourceforge page, or enter the following commands into a terminal:
Code:
wget http://sourceforge.net/projects/wepcrackgui/files/Rel_08_4/WepCrack0.8.4.tar.gz

tar xvfz WepCrack0.8.4.tar.gz
cd WepCrack/
sudo ./wepcrack

This will final command will run the GUI interface and *should* turn off your network-manager (so don't be alarmed if/when it does). Don't worry, it will switch your wireless back on once you close the applications. If it crashes, your network-manager will still be off. To restore your wireless, go ahead and reopen the program and then close in properly, or enter into a terminal

sudo start network-manager
Should you want to use crunch to crack WPA or mdk3 to discover hidden ESSID (hint: you want this), then you will need to grab and install those files as well.

Crunch:

Download latest crunch from here or open a terminal and enter:
Code:
wget http://sourceforge.net/projects/crunch-wordlist/files/crunch-wordlist/crunch-2.7.tgz

tar xvf crunch-2.7.tgz
cd crunch2.7/
make
make install

MDK3

Download latest MDK3 files from here. Then extract and open a terminal:

Code:
cd 
tar xvjf 
make
make install

Once you have downloaded and installed these two files, open WepCrackGUI and click on Options-->Preferences and make sure the crunch and mdk3 locations point to the respective install folders. I went ahead and moved the crunch and mdk3 folders to the wepcrack folder once they were installed.

Now you are ready to roll, sort of. You have to make sure your wireless card supports aircrack-ng in general, and packet injection in specific. You will have to do some careful reading on the aircrack-ng compatibility page to make this determination. It works perfectly on my Asus UL30A running Ubuntu 10.10, which has an Atheros AR9285 wireless chipset . To make it work, you MUST use patched compat-wireless drivers. To do this, follow the instructions here, under the subheading for kernel 2.6.24 or higher. You will need to go to the site and download the driver yourself, because they are not updated daily so the date -I flag will not work.

I used driver-select, because I am running ath9k drivers (check your lsmod output to see if you are). If you are also using ath9k drivers, then you can simply follow the driver select options on the compat-wireless page linked above, word for word. Make sure you reload your wireless driver with:
sudo modprobe ath9k
You can check your lsmod output to see if the driver is in fact patched. After that, you should have no problems switching channels or injecting packets with either the CLI or the GUI app.

Happy Cracking!