Category Archives: Linux
Let’s assume you want to prank your friend on a forum or on another website by using his/her identity. You could, of course, try to guess their username and password. You try using the name of the dog, mother, or anything else coming to mind. Sometimes this approach works, but more often it won’t. Well, there’s an easier way to do it.
The hole in ‘safe’ browsers
We all know that using Firefox or Chrome is generally safer than using the much-targeted Internet Explorer. However, IE does something right the other two browsers don’t – the amount of effort it takes to reveal saved passwords. Here is how it works. The example below assumes the use of Firefox.
Go to your friend’s house and ask if you can access the Internet from his computer. I never got “No” for an answer, and probably you won’t either. Surf to your favorite webmail application, and ask for a drink. While your friend is on his way to the kitchen, quickly do the following:
1. At the top of the Firefox window, click on the Edit menu and select Preferences
2. Click the Security panel.
3. Click Saved Passwords (the Password Manager will open)
4. To see the passwords which were saved, click Show Passwords.
5. Copy what you’re looking for and mail it to yourself.
You can do the same when using Chrome (just google for it). To get all saved passwords out of IE is a bit more difficult and requires extra software. In a sense, that makes IE safer on at least one count.
The average user doesn’t give WiFi security much thought. As far as they’re concerned, it’s just as safe as wired networks and that’s where the fun begins. I did a few experiments in order to find out if hacking into someone else’s access point is really that hard. This is a lengthy article, but I didn’t want to divide it into separate posts.
Let’s start with the basics. Wi-Fi (also spelled Wifi or WiFi) is a technology allowing electronic devices to exchange data wirelessly (using radio waves) over a computer network, including high-speed Internet connections. The Wi-Fi Alliance defines Wi-Fi as any “Wireless Local Area Network (WLAN) products that are based on the Institute of Electrical and Electronics Engineers’ (IEEE) 802.11 standards”. However, since most modern WLANs are based gained controlon these standards, the term “Wi-Fi” is used in general English as a synonym for “WLAN”. (more: Wikipedia)
Most modern routers come with an integrated wireless access point. It gives you a choice: connect cables to the integrated multi-port switch, use WiFi, or a combination of both. In my home both are used: desktops are wired, notebooks, smartphones and tablets use WiFi.
When your access point is open (e.g. no password), everyone in range can use your Internet connection and peek into your internal network. That’s not a smart idea. Someone might abuse your connection to send threatening e-mails or download porn – and your IP address is attached to the messages and downloads. Your house might be raided by a SWAT team, and this actually happened not too long ago.
It is obvious you should protect your network to the best of your abilities. If you go into the Web interface of your router/access point, you will be presented with a number of options. Below a typical screen.
- Disable Security, no password. Bad idea, see above.
- WEP (Wired Equivalent Privacy). Bad idea too, can be hacked in minutes because the key is transmitted over the air in plain text at regular intervals.
- WPA/WPA2 (Wi-Fi Protected Access). Acceptable.
- WPA2/WPA2-PSK. Best option. The abbreviation PSK stands for Pre-Shared Key. You define the key (pass phrase) yourself and share it with others in the family. WPA2 can use AES encryption.
Do not use ‘WiFi Protected Setup“, an automated system which was invented to make setup easier for unexperienced users. In this system you press and hold a button on the router or access point to send the key to a new device. Because the key is transmitted over the air, it can be picked up.
OK, I did everything right. Am I still vulnerable?
Unfortunately the answer is “Yes”. Any signal transmitted over the air can be intercepted and inspected. Not too long ago hacking into WiFi was the domain of seasoned hackers, but times changed. Anyone can get hold of so-called sniffers and other tools to get into your system. A good example is Kali Linux, a cover-it-all distribution specifically designed to discover security flaws.
If someone is really committed, finding the right key is just a matter of time. I used some tools and tried to get into my own system. In order to mimic a real life situation, none of the devices present in my home network were protected in any way. I also shared a directory present on a Windows XP desktop, something commonly done.
To make it easier, my WiFi key was the shortest possible (8 characters), something many people think is just fine. It took a while, but I got in and could surf the Internet for free. After that I picked up my Android phone on which three special apps were installed. These apps are also available for the iPhone.
- Fing. This program scans a network, finds all devices, and shows supported protocols you can use to access them.
- AndSMB. This program is used to access shared files and directories on networks.
- AndFTP. This program uses the FTP protocol which is used by some devices.
This is what I could see and do:
– See all devices present in the network,
– Open, download, move, replace or delete files on any NAS or shared directory,
– Upload files (could be used to plant viruses or worms)
– Open ports in the router/firewall for later (ab)use
And more. If I would have had a Samsung Smart TV, I could have gained control over it.
Some prevention tips:
- Use the best security protocol and make the key as long as possible instead of only 8 characters
- Hide the SSID of your access point
- Avoid using wireless for financial transactions
- Password-protect shared devices and directories
- Limit access to your devices only based on their MAC Address
- Being paranoid is good. Switch off WiFi when there’s nobody home.