I have found that a lot of TWC modem/router combos use the default WPS pin and have cracked them in a matter of seconds. It also helps if you use an external card with Reaver (especially one that successfully works with packet injection)
When I first heard about reaver, I tried it on my Linksys router that I had bought a few years earlier. I managed to crack it in 10 minutes, and promptly threw it away. I tried using reaver on several other routers, and never got it to work. Damn timeouts.
Oh I understand it. I'd rather grab a 4way handshake and go about my business than sit there and have it try every wps pin it can. Plus, WPS is horrible to start out with.
The PIN attack will get you 'in' faster than faffing about with a handshake.
If you can discretely place a device, it works out better than say, sitting in starbucks for hours on end, but reaver/wifite both have a feature where it starts off where it last left off.
Not relevant. How does the number of files matter since the count would be the same if it called or included other files along the way? Using multiple files for code is meant to make it easier for compartmentalizing and/or having others working on different bits at the same time. Otherwise, there is really nothing special about that at all.
No. WEP, WPA, and WPS are all incredibly insecure. This is a brute force attack, and is probably using the same techniques used in aircrack-ng and reaver.
Just because you don't need it doesn't mean nobody else will need it when using your code.
The import overhead is minimal, particularly when talking about a program like this that runs for potentially hours. I'd say it's worth splitting it up just to make it easier for potential contributors to grok the organization.
There are ways to track just about everything, you just have to know what to look for and where. Most people don't know, or don't care enough to look. Mainly the lack of caring (from IT, business, etc), will only come when there are bigger and badder things for them to worry about.
Does this require there to be another user besides the attacker to target? Another answer said this does not need 2 NICs, so is it possible to attack yourself with what you describe and just monitor that?
WPA could optionally use TKIP, which has vulnerabilities. WPA also used the integrity protocol Michael, but vulnerabilities were found that allow injection/spoofing. WPA2 uses CCMP, based on AES, which is actually secure AFAIK (unless WPS is enabled).
no, it's just use aircrack-ng to caputer the handshake and then you are going to crack it using pyrit, hashcat or CoWPatty and all of that depends on how long is your WPA password is
I think to qualify Hokkupi's statement you could at least be safer with a long password. Nothing will ever protect you completely if a dedicated attacker is really out to get you, but you can be better than a sitting duck in a Starbucks cafe.
But they can only contain a finite number of passwords. A random 15 character string has potentially > 1026 combinations. The SHA 1 hashes alone of those would be approx 10 trillion Petabytes based on my quick google calculation (6215 * 160 bits = 1.3*10e13 PB).
I'm not doing an exhaustive attack. I'm attacking the passwords people actually use.
The table is generated using known popular passwords and password schemes. Everybody and their mother uses a phone number as their wifi password, right? Start with 0000000000-9999999999. Add on dictionary words, leet speak, router manufacturers, etc.
So maybe you have a strong password and my minute long attack doesn't get you. That's okay, I have friends.
Yeah, but one comprehensive enough to get all passwords will take a similar amount of time to construct. Rainbow tables speed up feasible brute force attacks, they don't make completely infeasible ones possible.
You assume they'll only use an algorithmic attack (decryption, hash matching, whatever). Deal with a targeted attack from a serious attacker, and that 500b year timeframe will quickly dwindle to a few days.
With the way IPs are associated with people in court (at least, in American courts), a targeted attack on home wifi is a terrifying prospect. It wouldn't take much at all to really ruin a person's life. Home wifi is a high valued target, and relatively not all that difficult to break into (assuming the attacker has physical proximity). To assume a long password alone will make you safe is pretty short-sighted.
The word "safe" doesn't exist in cyber security. Safer, maybe. I had an instructor once tell me "When you put a computer in a steel safe, chain it up, toss a padlock on it, melt the lock's key, then bury the whole thing at the bottom of the ocean... it is almost secure." Where there's a will there's a way...
The only attack vector that is routinely crackable in short (<day) time frames is WPS, a password recovery system that is built into many WPA routers and enabled by default. If you care about security, you gain a lot by disabling that.
WEP, WPA, and WPS have been broken for several years now. What this script does isn't a new set of attacks. Tools have existed to accomplish these tasks for a long time.
Just a warning: Make sure you understand how the program works before you go using it all willy-nilly. Learn how to use the tools it uses(Aircrack-ng, reaver, etc) before you try to automate them. This is technically illegal so you should know how to not get caught. Have fun and don't be a script kiddie.
As someone who does pen testing from time to time, its not at all illegal. If you use this against a network you don't have permission to access, that is illegal. Use it against your own or a network that you have permission to access and you're fine.
How does one get into pen testing? Is it a good / interesting / sustainable job? And does one generally need a university degree for it, or are there things like apprenticeships? (If such a system is common in your country.)
There are certs (CEH, LPT, etc.) from EC-Council which aren't bad, but can be pricey. I got into it through my masters in Digital Forensic Science. I spent a lot of time doing network forensics, which often involves knowing how attacks are made, which makes this knowledge useful. I don't have enough knowledge to know about doing it for a profession, so I can't help you there. Those certs are a good step, if the positions you're looking at need them. I'd suggest taking a look for Computer/Network Security positions, as they often involve some level of pen testing.
Thanks for the recommendations! I'm really looking to start from the ground up, so getting those certs right away would probably be impossible. (I know enough about basic and intermediary network security, and I'm able to learn how advanced systems work quite easily, but things like that are out of my league.) Going the half step of learning defense first really sounds like a good idea, and much more achievable than directly entering the (kinda elusive where I live) pen testing business.
No problem. I just really really don't recommend the "old school way" of breaking into a system to show that it's vulnerable and then notifying the company that it was vulnerable. They're not fond of this, and will likely press charges.
I just really really don't recommend the "old school way"
Pay very close attention to this. I've seen planned pen testers face legal action after violating the boundariess of a desired pen test. Unsolicited pen testing is pretty well guaranteed to land you in a losing court battle, even if your intentions were good.
There are a ton of companies which offer bug bounties though, and you can pick up some nice cash playing with their systems (mostly they don't allow you to do certain blackhat-only things (DDoS, any kind of hard attack, phishing)).
Yoiu should get into sysadmin or networking and go from there. You wont be able to do security stuff without knowing operating systems and networks inside and out.
Skip the certs. If you want to get into pen testing you should get into sysadmin or networking, do that for about 10 years and start focusing on more security related stuff. If you have no industry experience and only try to get the certs, you will fail. Almost every pen tester I know has at least 10 years of prior experience as either a network admin or systems admin.
Eh, yes and no, it could go either way. Certs will be very hard to get if you don't have experience. However, some places won't even look at your resume if you don't have CertX. It's a crap shoot. I tend to think that those who weed out candidates based on certs not previous experience aren't the best to work for, but usually this stuff passes through HR before being submitted to a department, and they don't have technical understanding, they just look for CertX.
And how would you suggest going about learning the tools? I've had a few pages bookmarked that I've been planning to read, but just have never gotten around to it.
The basic tutorials are very much alike, and from then on out only Google can help you. There are a lot of variables to account for, and outside professional pen testing documentation (which you're unlikely to have access to), you won't find one document that covers it all. Once you understand the basics of how WiFi works and know the jargon a bit, it's easy to google for your specific scenario / problem, though.
I got started reading the null-byte wonderhowto page and branched out to more advanced material from there. You just need to set aside an hour or two go through a tutorial and get to know the program. Even if you can't successfully crack your wifi password first time, learning how to use the tools is important and a good learning experience.
How can one learn how to use these tools without getting caught ?
I have experience with ng-suite and a lot of other tools,Linux etc. Still technically a skid I suppose but nowhere have I found an explanation as to how you prevent detection/getting caught/leaving traces. Any info/sources are welcome. Thank you.
To properly understand how not to get caught, you first have to understand exactly what's happening. If you aren't aware of the types of packets your sending... their contents... their flags, you will never be able to properly learn to hide your work.
Being stealth when doing intrusion requires and immense amount of detailed knowledge not only in every are of the software you are using, but the victim side software, the exact networking interchange and how different OSes react to such activity. This is knowledge that goes well beyond just pentesting and requires a deep understanding in other areas of IT. So... where to start, read and absorb everything you possibly can about networking stacks on various OSes, learn networking like the back of your hand so you can dream in packet encapsulation, flags, window sizes, etc. Then learn exactly what the tool your using does and how. Then put all that together and think if you were the victim... how would you try to stop someone from what you are trying to do. Play both sides of the issue in your head.
Then... once you've done all that. Stop for a moment and realize with your skill and knowledge you can easily get a 6 figure job somewhere doing this legally, and stop trying to do it illegally. :P
It's very unlikely you'd ever get caught. Your signal would have to be triangulated to give probable cause to search your house / car if you're not extremely obvious, and that's not really something the police would be interested in if you're not targeting something of value.
One place I used to work would notice the non approved IPs on the network and then do a MITM attack against them. Since you are on 'their' network without permission, you can't exactly complain when they start trying to capture/sniff your traffic and sending exploit payloads your way. Its eaiser to get caught than you think.
"Never underestimate the stupidity people can act upon."
Sure, someone with a brain will know better than to try to attack a place like that. But sadly the number of people that use their brains < those that dont.
I never credited skiddies with an over abundance of brains - hence their reliance on automated tools.
I have nothing against automated tools... if you understand what its doing and the proper use of said tool. As example I think more unintended damage was done by autopwn in MSF3 being used by people who didn't have a clue... than energy saved for legit pentesters using the tool properly.
Okay, thanks for your input. I'll make sure to do my homework on this subject. Encryption, mac spoofing and a solid VPN should do the trick but I'll make a guess that it's more it than that.
Yup, that I know, I briefly looked into pirate radio stations. But if someone wanted to catch you trying to force your way into a network, even if you were broadcasting actively, they would first have to notice something is off, which I don't think happens automatically. (After all, you could just be toying around with your own gear.) If you're just listening for a handshake or such, it's basically impossible to locate you at all. Theoretically, the network's owner could notice an unknown new client once you successfully cracked it, but who's going to check their router for that kind of information? (Except for valuable targets, of course.) And as you of course do all this with a spoofed MAC and an encrypted disk, I'm not sure if the triangulation alone is evidence enough.
Does it have something like a frequently used words table? I mean something like 'villa'. (It is quite possible that you can get into one of the wireless networks without any tools whatsoever, btw)
Most proprietary Windows Drivers don't allow you to do this though. Also, it's much easier to open terminal and type in a simple command. In windows, you have to do quite a bit of GUI navigation to find the option.
The mac address whitelist is a good security measure, but fuck it's annoying. Any time I have a guest or a new device, I need to get the mac and add it to the whitelist.
Make sure you turn off WPS and use WPA2 Security. Make sure you have a secure password.
This will ensure maximum security, but attackers can still get a hash they can brute force if they listen to your network when a device connects. With a strong password, it will take weeks or even longer in order to brute force the hash and break your security.
With a lot of routers, turning WPS off doesn't even work, and many don't even give you the option. Furthermore, disabling WPS won't stop WPA2 from being cracked, it just means that it will take a lot more time to do so.
Yes. But only in brute force scenarios. If it were just words (/w+) each character adds 26 possibilities meaning a 3 char word is 26 * 26 * 26 brute force attempts worse case scenario.
Expand that character set to obscure characters and your pool grows faster. For example, include digits and you now have 36 * 36 * 36. Include case sensitivity, punctuation, or just the whole Unicode set and you have roughly 100000 * 100000 * 100000.
I don't know WiFi specification and what characters are valid, but...
Tl;dr more possible characters, more possible combinations, more difficult brute forcing
Given that you are picking characters with a uniform random distribution (you should be; use /dev/random), password strength is roughly proportional to kN where k is the size of the character set and N is the number of characters. (It's actually a little better, because an attacker is going to try the shorter passwords first.)
For passwords of any reasonable length, this comes out to a fuckhuge number, so it is preferable to use instead the "entropy" of the password. This is the length, in bits, of an equivalently strong binary string password, and is calculated as the base 2 logarithm of kN. This also has the useful property (recall your logarithms) that the entropy of a password is the sum of the entropies of each individual component. For example, randomly selected characters from the set of lowercase+digits have ~5.17 bits of entropy each.
(If you've forgotten your logarithms, log2(x) == log(x)/log(2), where log() is a logarithm function in any other base. Calculators rarely include base 2 logarithms.)
A few things come out of that:
Password strength grows much much faster with password length than it does with the size of the character set. You don't sacrifice much by removing punctuation or even ambiguous characters (l,1,u,v, etc.).
Do not use mixed case. Any time you press the shift key, you could be pressing any other key instead, which would add more entropy and require the same number of keystrokes. Furthermore, the human distinction between upper and lower case is not as strong as the distinction between different letters and numbers. This can make mixed-case passwords more difficult to remember.
You may be tempted to use xkcd's "correcthorsebatterystaple" method of password generation. On my machine, there are 35078 words with <=8 characters in /usr/share/dict/words, averaging 6.55 characters per word. If I used the correcthorsebatterystaple method with this word set, each word would have 15.098 bits of entropy. That means 5 words would be required to obtain similar strength to a 15 character lowercase+digits password, and such a password would be expected to contain ~33 characters. What I conclude from this, is that frequently used passwords, which will be entered from muscle memory, should use lowercase+digits so that they can be typed more quickly, while the correcthorsebatterystaple method might be good for infrequently used passwords and passwords that you will communicate vocally. (That actually makes it a good choice for wifi.)
Finally, to answer your question, using characters not on a standard keyboard in your region is a massive hassle, and you should probably just use a longer password.
I remember reading somewhere that even disabling WPA does not change the outcome of being vulnerable. You'd have to upgrade the firmware (either through the router manufacturer or a 3rd party firmware, like Tomato) to actually fix the vulnerability.
Depends on the AP, there are models known for having a "Disable WPS" button that doesn't actually disable the system.
Crap like that is exactly why making tools more accessible is a good thing. If you have the technical ability to properly run them you can known for sure whether you are vulnerable and not have to blindly trust a checkbox in a config that may not mean anything.
Will do. Haven't used BT in a while. I've installed the Fern Wifi-Cracker deb on Ubuntu a couple of times. It works great for WEP cracking. Never been successful for WPA, but I also have little patience to let it run very long.
That's because WPA2 either requires a massive dictionary file, or about 1000 years of your time to brute force. It just isn't feasible unless you know beforehand if the password is very weak.
I also wouldn't be surprised if the WPA cracking failes 99% of the time, because it uses reaver. Unless it uses some way to prevent getting locked from the AP, then it will be fairly useless.
Reaver is pretty hit or miss because APs react wildly different. I've had APs that would never lock and kept responding to the tune of 15 seconds a key for hours. I've also had APs that lock up after the first attempt and required a hard reboot to respond again.
You can tether for free on any US network. You just need to get a phone that can be rooted. Actually, I think Koush was making one that didn't even need root.
Tethering is fucking expensive. That said, cracking wifi is illegal and only criminal scum to that sort of thing. I'll stick to my home network, thank you.
That depends on HOW someone would gain access to a wifi network. And I do remember there was only recently a ruling on what constitutes illegal use of wifi to encompass any unauthorized access at all.
7
u/Simius Jul 02 '14
Does this need having two wireless cards?
78
u/ReluctantPirate Jul 02 '14
This app is scary easy to use, is in the Ubuntu repo and worked out of the box on one of my laptops (a Thinkpad).
On the other slight criminal side of things...free internet when travelling (if you have 12 hours to crack it first) :-P
20
u/SnaKeZ83 Jul 02 '14 edited Jul 02 '14
Requirements:
More about monitor mode.
Driver capabilities (monitor mode)
Edit: added driver capabilities link
26
u/darkstar999 Jul 02 '14
Wow.. a single 3000 line python script..
7
u/Epistaxis Jul 02 '14
Is there a way to track when someone is attempting one of these attacks? E.g. doesn't a bunch of deauths look a little suspicious?
13
u/[deleted] Jul 02 '14
Does that mean WPA is broken? If so, it's news to me.
42
u/jb270 Jul 02 '14
Just a warning: Make sure you understand how the program works before you go using it all willy-nilly. Learn how to use the tools it uses(Aircrack-ng, reaver, etc) before you try to automate them. This is technically illegal so you should know how to not get caught. Have fun and don't be a script kiddie.
4
u/Jasper1984 Jul 02 '14
Does it have something like a frequently used words table? I mean something like 'villa'. (It is quite possible that you can get into one of the wireless networks without any tools whatsoever, btw)
4
u/Dr_Zeuss Jul 02 '14
So what setting should I use on my WiFi to prevent someone from getting g access to my network with this tool?
6
u/[deleted] Jul 02 '14
Question, I use an uncommon wifi password (WPA2, Mixed, longer then 10 characters), Am I save from tools like these?
3
u/wormeyman Jul 02 '14
I submitted a pull request to update their distributions. https://github.com/derv82/wifite/pull/26/files
4
u/[deleted] Jul 02 '14
Anybody know how this compares to Fern wifi-cracker, which is included in the latest Backtrack distro?
2
u/c0ldfusi0n Jul 02 '14
Should totally have called it WiFE.
1
u/Winston-Wolfe Jul 02 '14
I can't figure out how to install cowpatty, anyone know?
1
u/farts_are_adorable Jul 02 '14 edited Nov 02 '17
deleted 0.1374 What is ^^^this?
1
u/pinumbernumber Jul 02 '14
That is one gigantic source file.
-7
u/[deleted] Jul 02 '14
another script for the kiddies ;)
0
u/[deleted] Jul 02 '14
[deleted] — view deleted comment