Monday, February 29, 2016

Hack WPA2 Wi-Fi password using Kali Linux

If I talk about effective tool I must say Kali linux is the best one.
It is a package of many hacking tools in it.
To get understanding how to hack wifi using this :
Here We Go:
Start Kali Linux and login, preferably as root.
Step Two:
Plugin your injection-capable wireless adapter, (Unless your computer card supports it). If you’re using Kali in VMware, then you might have to connect the card via the icon in the device menu.
Step Three:
Disconnect from all wireless networks, open a Terminal, and type airmon-ng
This will list all of the wireless cards that support monitor (not injection) mode. If no cards are listed, try disconnecting and reconnecting the card and check that it supports monitor mode. You can check if the card supports monitor mode by typing ifconfig in another terminal, if the card is listed in ifconfig, but doesn’t show up in airmon-ng, then the card doesn’t support it.
You can see here that my card supports monitor mode and that it’s listed as wlan0.
Step Four:
Type airmon-ng start followed by the interface of your wireless card. mine is wlan0, so my command would be: airmon-ng start wlan0
The “(monitor mode enabled)” message means that the card has successfully been put into monitor mode. Note the name of the new monitor interface, mon0.
EDIT:A bug recently discovered in Kali Linux makes airmon-ng set the channel as a fixed “-1” when you first enable mon0. If you receive this error, or simply do not want to take the chance, follow these steps after enabling mon0:
Type: ifconfig [interface of wireless card] down and hit Enter.
Replace [interface of wireless card] with the name of the interface that you enabled mon0 on; probably called wlan0. This disables the wireless card from connecting to the internet, allowing it to focus on monitor mode instead.
After you have disabled mon0 (completed the wireless section of the tutorial), you’ll need to enable wlan0 (or name of wireless interface), by typing: ifconfig [interface of wireless card] up and pressing Enter.
Step Five: Type airodump-ng followed by the name of the new monitor interface, which is probably mon0.
If you receive a “fixed channel –1” error, see the Edit above.
Step Six:
Airodump will now list all of the wireless networks in your area, and lots of useful information about them. Locate your network or the network that you have permission to penetration test. Once you’ve spotted your network on the ever-populating list, hit Ctrl + C on your keyboard to stop the process. Note the channel of your target network.
Step Seven:
Copy the BSSID of the target network
Now type this command:
airodump-ng -c [channel] --bssid [bssid] -w /root/Desktop/ [monitor interface]Replace [channel] with the channel of your target network. Paste the network BSSID where [bssid] is, and replace [monitor interface] with the name of your monitor-enabled interface, (mon0).
A complete command should look like this:
airodump-ng -c 10 --bssid 00:14:BF:E0:E8:D5 -w /root/Desktop/ mon0
Now press enter.
Step Eight:
Airodump with now monitor only the target network, allowing us to capture more specific information about it. What we’re really doing now is waiting for a device to connect or reconnect to the network, forcing the router to send out the four-way handshake that we need to capture in order to crack the password.
Also, four files should show up on your desktop, this is where the handshake will be saved when captured, so don’t delete them!
But we’re not really going to wait for a device to connect, no, that’s not what impatient hackers do. We’re actually going to use another cool-tool that belongs to the aircrack suite called aireplay-ng, to speed up the process. Instead of waiting for a device to connect, hackers use this tool to force a device to reconnect by sending deauthentication (deauth) packets to the device, making it think that it has to reconnect with the router.
Of course, in order for this tool to work, there has to be someone else connected to the network first, so watch the airodump-ng and wait for a client to show up. It might take a long time, or it might only take a second before the first one shows. If none show up after a lengthy wait, then the network might be empty right now, or you’re to far away from the network.
You can see in this picture, that a client has appeared on our network, allowing us to start the next step.
Step Nine:
leave airodump-ng running and open a second terminal. In this terminal, type this command:
aireplay-ng –0 2 –a [router bssid] –c [client bssid] mon0The –0 is a short cut for the deauth mode and the 2 is the number of deauth packets to send.
-a indicates the access point (router)’s bssid, replace [router bssid] with the BSSID of the target network, which in my case, is 00:14:BF:E0:E8:D5.
-c indicates the clients BSSID, noted in the previous picture. Replace the [client bssid] with the BSSID of the connected client, this will be listed under “STATION.”
And of course, mon0 merely means the monitor interface, change it if yours is different.
My complete command looks like this:
aireplay-ng –0 2 –a 00:14:BF:E0:E8:D5 –c 4C:EB:42:59:DE:31 mon0
Step Ten:
Upon hitting Enter, you’ll see aireplay-ng send the packets, and within moments, you should see this message appear on the airodump-ng screen!
This means that the handshake has been captured, the password is in the hacker’s hands, in some form or another. You can close the aireplay-ng terminal and hit Ctrl + C on the airodump-ng terminal to stop monitoring the network, but don’t close it yet just incase you need some of the information later.
Step 11:
This concludes the external part of this tutorial. From now on, the process is entirely between your computer, and those four files on your Desktop. Actually, the .cap one, that is important. Open a new Terminal, and type in this command:
aircrack-ng -a2 -b [router bssid] -w [path to wordlist] /root/Desktop/*.cap
-a is the method aircrack will use to crack the handshake, 2=WPA method.
-b stands for bssid, replace [router bssid] with the BSSID of the target router, mine is 00:14:BF:E0:E8:D5.
-w stands for wordlist, replace [path to wordlist] with the path to a wordlist that you have downloaded. I have a wordlist called “wpa.txt” in the root folder.
/root/Desktop/*.cap is the path to the .cap file containing the password, the means wild card in Linux, and since I’m assuming that there are no other .cap files on your Desktop, this should work fine the way it is.
My complete command looks like this:
aircrack-ng –a2 –b 00:14:BF:E0:E8:D5 –w /root/wpa.txt /root/Desktop/*.cap
Now press Enter.
Step 12:
Aircrack-ng will now launch into the process of cracking the password. However, it will only crack it if the password happens to be in the wordlist that you’ve selected. Sometimes, it’s not. If this is the case, then you can congratulate the owner on being “Impenetrable,” of course, only after you’ve tried every wordlist that a hacker might use or make!
Cracking the password might take a long time depending on the size of the wordlist. Mine went very quickly.
If the phrase is in the wordlist, then aircrack-ng will show it too you like this:
The passphrase to our test-network was “notsecure,” and you can see here that aircrack found it.
If you find the password without a decent struggle, then change your password, if it’s your network. If you’re penetration testing for someone, then tell them to change their password as soon as possible.

India Map Code Using C Program

This C program which generates map of India as an output:
  1. #include <stdio.h>
  2. main()
  3. {
  4. int a,b,c;
  5. int count = 1;
  6. for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\
  7. TFy!QJu ROo TNn(ROo)SLq SLq ULo+\
  8. UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\
  9. NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\
  10. HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\
  11. T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\
  12. Hq!WFs XDt!" [b+++21]; )
  13. for(; a-- > 64 ; )
  14. putchar ( ++c=='Z' ? c = c/ 9:33^b&1);
  15. return 0;
  16. }
Here is the output:
_____________
EDIT 1: This is not my original work. I had seen it for the first time when I was in 2nd year of college (i.e., 3 years ago). You can understand how this code works here:How does this code generate the map of India?

Sunday, February 28, 2016

What amazing things can Python do?

I'm learning python for the past few weeks and already loving it. There are a bunch of amazing things you can do with python. Let me list some of them :
  • It can help you download all the episodes of your favourite tv series/anime automatically.
  • If you are a cricket lover , python will take care that you get desktop notifications of the live score .
  • If you are a manga lover then you can  download all the images of your manga automatically without the hassle of downloading the images one by one manually.
  • It can help you organize a disorganized folder.
Before
After
  • Don't miss out on the latest news.
For many days i want to organize my movies as per IMDB ratings but found it too lazy to do . So, I wrote a python script to accomplish this task.
Before
After
Yes, Python can really do some amazing tasks (at least for a person like me who is new to programming)

What is a useful trick of a computer that takes five minutes to learn?

Demonstrating a computer problem to a support professional on call can be
quite tedious at times,right?? Here's a simple hack to do that :
You can use Problem Steps Recorder to automatically capture the steps you
take on a computer, PSR creates a screenshot of each action, describes
each action in plain English, notes the exact date and time the action took
place, and even allows the recorder to add comments at any time during the
recording.
    a. Press Windows + R (i.e Run) and type psr and press Enter.
   b. This opens the Problem Step Recorder where you can start and stop   
        recording.
    Once you capture these steps, you can save them to a file that can be used
   by a support professional or someone else helping you with a computer
   problem.

Friday, February 26, 2016

What are the most useful Chrome extensions?

  1. Xmarks Bookmark Sync : The most user-friendly bookmark manager. Now, never lose the sites you love.
  2. Save to Pocket : Read anything interesting? Save it to your personal collection with the clink of a button.
  3. uBlock Origin : Annoyed of the ads and the silly pop-ups? Hate waiting. Allow uBlock to care of them while you enjoy a seamless browsing experience. Now that Adblock has been sold to Adblock Plus, it will allow some paid ads to pass through, not uBlock. uBlock is like Gandalf.
  4. Honey : Who doesn't like saving while shopping? Be notified of deals, coupons, and promo codes whenever you buy something online.
  5. Lazarus: Form Recovery : Hate when you type something and it gets lost due to a browser or laptop crash? Lazarus will remember for you the next time.
  6. Google Translate : Translate foreign words on the go.
  7. Google Dictionary (by Google) : Simplest online dictionary.
  8. Turn Off the Lights : Watching a movie at home, but want the theater experience? Turn off your browser lights.
  9. Any.do Extension : Make and sync to-do lists on the go. Plan your day more effectively.
  10. ZenMate Security, Privacy & Unblock VPN : Hate when online content is not available in your country or region? Use ZenMate to create your own personal VPN to bypass it.
  11. MightyText : Can you type faster on your phone than on a keyboard? If not, MightyText helps you receive and send messages from your laptop.
  12. Price Blink :  In conjugation with #4 (Honey), save even more by buying from the seller offering the best deal.
  13. Wolfram|Alpha (Official) : Your mathematical assistant, now is a tiny extension.
  14. WOT: Web of Trust, Website Reputation Ratings : Be more aware of the security risks while visiting a website. The trusted WOT community rates websites as per security threat levels.
  15. Project Naptha : Saw an awesome text-on-image that you would love to share but hate typing it? Project Naptha renders the text on images as usable text.

Personal Productivity: What are the most productive ways to spend time on the Internet?

1. Print Friendly


This site makes any web page printer friendly.

2. Can I Stream It?

Pick a movie and find out where you can stream it.

3. Fliptext


Flip text to post on your social media sites.
4. Date to Date Calculator

Find out how many days, weeks or months have passed between two dates.

5. Screenr

Allows you to make and share screencasts.

6. Mailbox Locator


Find the closest USPS mailbox.

7. Camel camel camel

Tells you the price history of any item on Amazon. So you can get your hands on it when it's cheapest.

8. A Good Movie To Watch

Instead of scrolling through Netflix forever, this will tell you what to watch.

9. Skyscanner

Browse flights by date, price, and budget without knowing where you want to go.

10. Online Alarm Clock


If you lose your phone and still need an alarm.

11. World Frequency Counter

Find words that you overuse in your writing.

12. Two Foods

When you can't decide what to eat, this will make the choice for you based on what is more healthy.
13. Ripetrack


Find out what your fruit is at the peak of ripeness.

14. sleepyti.me


This site will tell you what time to go to sleep according to natural sleep cycles.

15. Practical Typography


Learn everything about typography using this site.

16. Adobe Kuler


Use this site to find complementary colors using the Adobe color wheel.

17. Online Etymology Dictionary


Gives you the definition and origin of any word.

18. What The F*ck Should I Make For Dinner


If you aren't sure what to make for dinner, this site will help you.

19. ViddyJam


Like Pandora for music videos.

20. Account Killer

Delete any social media account, not just disable them.

21. Fake Name Generator
This site will make a fake name, email, home address and social security number for you.

22. Scale of the Universe

Shows you the size of things in relation to others.

23. What the Font

This site and app detects the fonts on any image.

24. The Rasterbator

Turns any image into a printable poster.

25. Is it iced coffee weather?

Xiaomi Launches 32-inch and 43-inch Mi TV 4A in India, Price Starting At ₹13,999

After launching the Mi TV 4 in India, Xiaomi has launched two new affordable smart TVs in India. The company has introduced a 43-inch ...