Join an online community of 132,760 people. Create a profile, make new friends, share pictures and videos with the 30 people online now!

Manage Blog Blogs
+ New Post

Total Results: 4Results For "enter7ainer"

  • Simple Web-Hacking Techniques

    Mood: Deviousby E7R, Fri 8th Aug 2008

    With help of this paper one can get information and abilities to conduct targeted
    attacks against websites and networks.


    Normally attacks to computers are run trough automatic hacking. This technique
    is also called “mass hacking”. It is quite simple and is an old way to hack into
    sites. One example of mass hacking is the old OpenSSL Remote Exploit which
    came into release including a scanner. Manual mass hacking is conducted with
    to glue together parts, which are: A scanner and the actual exploit (mail server
    exploit, HTTP server exploit etc etc), the program that attacks the site and if it
    succeeded for example saves the positive hacked entries into a logfile. My
    experience shows that a scanner like “grabbb” can be reprogrammed to use an
    actual exploit to not just scan but also hack into the sites (using an IP range and
    the actual ports).


    This paper is not about how to make use of mass hacking. This paper will show
    you the technique to hack into a site which is taken as a target. This time one
    cannot use a mass hacking program or script. My experience shows that
    penetrating into a special site can be more challenging.
    Let’s take the example that we want to hack into a dot-com site. First - of course
    – the sites address needs to be taken as the primary information. Then the
    second thing is to just ping the domain name of the dot-com site and find out its
    IP. After that we take a scanner like nmap and look what ports are open. Many
    times only HTTP and HTTP-SSL ports are open. This makes attacks done on the
    “infrastructure” harder, because one cannot use exploits. Only HTTP and
    HTTPS exploits can be used to gain access to the system then. As seen in the
    past there are those HTTP and HTTPS exploits in the wild. One example is the
    Apache mod_jk remote exploit or several exploits against IIS, which are
    normally patched in the Microsoft patching cycle.


    Now if we do not have access to an exploit against the particular server (in its so
    called “infrastructure” – means: running services) we are limited to the web
    applications running on top of the http server running through port 80 and 443
    (SSL). So at the first stage of exploiting the system we just look at the website
    and try to guess what program is running as a web application on top of the web
    server. It is especially important to know if the code running on the web server
    is open source or self-made. Open Source software can be downloaded and
    analysed manually and locally on the attackers’ host. If it is self made it’s harder
    to get the source code what really helps on finding a bug to slip trough and get
    access.


    There are also different programming languages and therefore different
    programming errors and bugs. There are websites relying on PHP – JAVA –
    DOTNET or even simple HTML sites.
    So at first it’s important to look at the web application and look after bugs
    contained in it. Sometimes there is a bug in an Open Source application which in
    its’ specific version has a bug. So the attacker just looks after the exploit and
    runs it against the web server – as an example running the old phpBB remote
    exploit against it. Another approach is to use Google search service to find for
    example uploading scripts, where as an example a PHP, ASP or Java Servlet can
    be used to upload “shell backdoors“ and execute code on the target host. There
    are so many different bugs in different applications especially in audited Open
    Source software that it becomes easier to get into the targeted site.


    Now for example let’s say we have a dot-com site we want to hack into, but the
    web application is running only HTML websites and has only static content
    installed. If this is true for the attacker he has to look for easier ways of hacking
    into the system. Here the so called “Reverse IP” technique comes into play.
    Many dot-com sites are running on web servers which host many sites at a time
    for the same IP. A good tool is the http://search.live.com search engine by
    Microsoft. Using this service one can see nearly all websites running on the
    same IP by commanding the search engine to search for that sites simply by
    putting a “IP:<iphere>” and click on find. So we know the domain name of the
    web server and its IP.

    We look on live search for the other sites hosted on the
    web server. Many times the websites are not running on “dedicated” servers. If
    this is the case and the web server hosts more websites, the attack vector
    becomes huge because of the other installed sites on the same IP. Now the only
    thing to do is to look after an easy target site that contains a remotely exploitable
    bug. The attacker clicks through the sites for this IP and pings the domains to
    verify that they are really running on the exact same system with the same IP.
    Now the different exploits and exploit-scripts against web applications are easier
    and more effective to use because of the huge attack surface we now got because
    of the sites hosted on the same system.

    Let’s take the example that Site 1 is the
    targeted site and Site 2 is running on the same IP and system. Site 2 has an
    upload scripts installed or something similar and easy to use to get shell access.
    The attacker exploits Site 2 and gets a shell, reverse shell or something similar
    to execute commands on the web server. By hacking with this technique often
    plain text passwords can be gained for e.g. SQL or maybe a running FTP server.
    The main goal now is to get credits to the Site 1. Site 2 will often have read
    access to Site 1 but no write access. Now local root exploits namely “privilege
    escalation” exploits come into play. Often kernel bugs on Linux or Windows
    hosts can be attacked with the appropriate tools and exploits. When the attacker
    has gained the required credits using the local root exploit he/she has complete
    control not only of Site 1 now, but all other sites hosted on the very same
    system. Now he can penetrate deeper into the network, read mails of the paying
    users on the site, install web application backdoors which are modified code to
    log login attempts, install a rootkit or a patched SSH backdoor etc etc. There are
    many things the attacker can do from now on.

    If we are confronted with a
    dedicated server where only one site runs on it and only HTML static content
    and all ports are closed we have to look for other possibilities to gain root - say
    ”SYSTEM” - access. One thing is to guess the passwords of the administrator by
    hacking into a very near server to which the administrator has access. Let’s take
    the example of a university site. Universities most times have a great IP range
    assigned to them. A quick look on http://www.ripe.net for example can reveal
    information about this IP range. This time the attackers’ goal is to hack a server
    which is residing closely to the IP of the targeted site and the same assigned
    address space.

    If the attacker gains root access on this particular system he can
    for example crack the passwords of the administrator. Sometimes there are the
    same passwords for the closely server and the server with is actually attacked.
    Passwords include SQL passwords and E-Mail Passwords. What can be helpful
    here are Kernel Memory Disclosure exploits which often reveal sensitive
    information of the whole system in just only one file dumped off the running
    host. Armoured with this information it is easy to get close to the targeted site or
    even open more ways to hack into accounts which run near or even far away
    from the system, because the information becomes far enough to get access to
    other systems (hopefully also to the targeted site) and gain root access there. It is
    important to keep stealthy when doing these tasks. In my experience sites which
    are outside of the attackers’ country are less sensitive than sites inside the
    attackers closely range and city.

    This is because if the administrator catches you
    he cannot hurdle the law of his own country and catch you in the other country.
    If you do things with non-legally intensions the risk is of course larger because
    you can be wanted internationally. With this technique we got access to a
    closely site of CIA.gov what shows how effective this techniques are.

    View Post Views: 164 | Comments: 0 | Rating Votes: 0
  • Keeping Access to Compromised Systems

    Mood: Deviousby E7R, Thu 7th Aug 2008

    .: Introduction :.
    ------------------
    For many people the thrill of 'rooting' a system tends to be more than they can handle, and hence ruin
    chances of future access to the machine either by (1) Being Stupid, or (2) Deciding to do a defacement.
    The reasons this is foolish, is because you dont knwo who the Administrator/s are. They could be some
    insane basket case that is bent on revenge after seeing his index.html replace by some 'message' and
    seeks the help of the law. To avoid this, I have prepared a simple guide to helping you maintain access
    to the system for future use. Read the following carefully, and acknowledge what it says. I know there
    are many 'defacers' that are good at what they do, BUT, the majority of this population are just little
    kds wanting attention, or some lame greaser wanting to show off his 'skills'.

    .: Disclaimer :.
    ----------------
    You are responsible for your own actions. The information from herein is COMPLETELY for educational
    purposes only. YADA YADA. We hold no responsibility for anything after you have read this text. If you
    are braindead, or a 'hardcore defacer' dont read this....You wont understand it, nor any valuable information
    found in my texts. All you unethical people, read no further, you disgust me.

    .: LOGS :.
    ==========
    You have to devise your own routine of log deletion when you log into a system. A regular routine will ensure
    that you dont leave something behind. Any trace of you presence will get you busted and maybe prosecuted. Make
    sure you delete the UTMP, WTMP, and LASTLOG. There are alot of tools out there to do this. Query on your
    favourite search engine, or use wipe[1]. Also get into a regular routine of using 'unset HISTFILE', this will
    tell the system to delete your history when you decide to logout.
    Once you have deleted your presence from those files, check how the system is logging, look at syslog and
    other security logs. If the system has a router or firewall you must take care of the logs left by them.
    Check the cron entries. It is a good idea to view this before creating or editing files. The reason is because
    cron entries can contain MD5 checksums. Take a look at see if you can find any of these.
    If you think you have taken care of everything, go to the systems log directory, ex. /var/log and issue the
    command 'grep <your host/ip> *' this will search for files with your hostname in it. If the file is just
    plaintext, then opening your favourite text editor and deleting the line is enough. But if the log file is
    a binary, then you will need assistance. Again, search for programs to edit the binary logs.

    .: SUID's :.
    ============
    It is common for people to leave a SUID lying around the place to give them root, as apposed to using the same
    exploit. Your main mission is to make them well hidden, put them in a place with many other files. Always 'touch'
    them to match the same date as the other files in the directory. To find a SUID, simply issue:
    'find / -user root -perm -4000 -print'
    'find / -group kmem -perm -2000 -print'
    This wont just turn up suspicious binaries, but will turn up many files, maybe even including /usr/bin/perl. So
    if you knwo the sysadmin, and think he won't check, then by all means leave the SUID somewhere, but just don't
    expect that the legitimate user will not find it.

    .: BINARIES :.
    ==============
    A common past-time for script-kiddies is to download a rootkit from http://packetstorm.securify.com and use this
    to trojan commonly used binaries such as ls, su, telnet, netstat, ifconfig, ls etc.... Or many services referenced
    in /etc/inetd.conf
    The problem is, such kiddies are not aware of ID software such as Tripwire or use of system commands cmp(1) or
    MD5 checksums. You may find an MD5 checksum located in cron entries. So make sure you are aware of the directories,
    and binaries that are being watched.

    .: SNIFFERS :.
    ==============
    A common thing to do (from what I have read) is to load a sniffer, once the system's integrity has been comromised.
    But it is not a good idea to run an executable called LinSniff. The SysAdmon would kill the process, and update
    security. Renaming the process to a legitimate daemon name is a good idea, and hiding where it is logging to. Have
    it log to a file that exists, or ends in .000 in the /tmp directory.

    .: MODIFICATIONS :.
    ===================
    Now, to keep access to a system, editing the index.html is obviously wrong. We are professionals here, not some kiddies
    screaming for attention, or to show off our skills on DALnet. Defacing is one of the most common definitions of hacking
    by the media and/or clueless people. So don't do it!
    You must have ethics, and deleting anything, or changing the
    way the system was designed to work is wrong. Only edit files that ensure anonymity and future access. If you can get
    away with it, dont edit the /etc/syslog.conf and restart the daemon. Unless you reset it at the end of your session.
    And SysAdmins ALWAYS notice additions to /etc/passwd so don't even think about it. PERIOD.

    .: PERMISSIONS :.
    =================
    Don't change permissions of system configuration or system files. Admins tend to notice files in the /etc directory
    read/writable to the world.Any permissions that you change, MUST be changed back when you logout. Any sloppyness or
    forgetfulness may deny you the privilage to return to the system.

    .: FILES AND DIRECTORIES :.
    ===========================
    When you create a file, say to cut and paste your code into the text editor on the remote box, name the c files to
    simple names, such as h.c or math.c never exploit.c or sniffer.c And delete them once you have used them. Always
    use nested directories (ones that you can't view by simply typing 'ls'). Common directory names are :
    .mail .pine.000 and ... all these seem to blend. But are still obvious to the trained eye. This is ok on a large
    server, because the likleyness of a sysadmin prowling your 'actual' directory is slim, they mostly look for
    suspicious files. Doing a recursive search for C programs is common in the /usr directory. So delete the file after
    you have compiled it. And rename your files to real or legitimate names.

    View Post Views: 131 | Comments: 0 | Rating Votes: 0
  • How To.. Find ANYONE!

    Mood: Deviousby E7R, Wed 6th Aug 2008

    First things first, I am going to assume that you have a copy of NETSCAN32.. If you dont then then CLICK HERE and get it from tucows!!!
    Next that you have a winsock type PPP connection... That you'll have to get on your own.

    Now then....
    We'll assume that you want to find someone to -for instance get their real name. With that and the local library you can get their phone # and address, with that information you can get a birth certificate, social security #, driver's License #, credit report, etc... AMAZING ISN'T IT!!!
    For the purposes of this document we'll use some information from a hack job done recently. Including the uniformative information.

    This is the asshole I was looking for:
    gambit = gambit@sfsu.edu

    First step was to peg the IP addresses of the server with the Name Server function....
    Translated Name: sfsu.edu IP Address: 130.212.10.162 IP Address: 115.102.115.117 IP Address: 46.101.100.117 IP Address: 0.41.0.5 IP Address: 198.41.0.6

    A PING to see which IP responded.. that would also be the one you telnet to if you don't specify the IP address!! It may not let you in but the others might... Try them all

    Pinging sfsu.edu [130.212.10.162] with 48 data bytes

    Reply from 130.212.10.162: 48 bytes in 331 msec. TTL: 241 Reply from 130.212.10.162: 48 bytes in 326 msec. TTL: 241 Reply from 130.212.10.162: 48 bytes in 320 msec. TTL: 241 Reply from 130.212.10.162: 48 bytes in 321 msec. TTL: 241 No data received.

    PING Statistics for sfsu.edu 5 packets transmitted, 4 packets received, 20% packet loss round-trip (ms) min/avg/max = 320/324/331

    Sending 48 data bytes to sfsu.edu [130.212.10.162]

    Now we run a TRACEROUTE... This will help us visualize and see the geographic location (In this case SanFrancisco)

    1:Received echo from ? [204.214.228.129] in 200 msec. 2:Received echo from in-gw-e0/LIT.intellinet.com [204.182.227.1] in 209 msec. 3:Received echo from sl-fw-11-S2/5-T1.sprintlink.net [144.228.131.49] in 229 msec. 4:Received echo from sl-fw-5-F1/0.sprintlink.net [144.228.30.5] in 490 msec. 5:Received echo from sl-kc-2-H2/0-T3.sprintlink.net [144.228.10.77] in 268 msec. 6:Received echo from sl-chi-15-H2/0-T3.sprintlink.net [144.228.10.69] in 295 msec. 7:Received echo from sl-chi-6-F0/0.sprintlink.net [144.228.50.6] in 277 msec. 8:Received echo from sl-chi-nap-H1/0-T3.sprintlink.net [144.228.56.10] in 275 msec. 9:Received echo from aads-F.mci.net [198.32.130.227] in 284 msec. 10:Received echo from core3-hssi1-0.WillowSprings.mci.net [204.70.1.197] in 271 msec. 11:Received echo from core1.Bloomington.mci.net [204.70.4.161] in 298 msec. 12:Received echo from border1-fddi-0.Bloomington.mci.net [204.70.2.130] in 312 msec. 13:Received echo from csunet-losnettos.Bloomington.mci.net [204.70.48.6] in 306 msec. 14:Received echo from SanFrancisco-ATM-GW.CSU.NET [204.102.243.144] in 323 msec. 15:Received 48 bytes from sfsu.edu [130.212.10.162] in 318 msec.

    TraceRoute Statistics for sfsu.edu 15 packets transmitted, 15 packets received, 0% packet loss round-trip (ms) min/avg/max = 200/290/490

    You guessed it - Time for a WHOIS - BUT use the ds.internic.net sever not the rs..... it will search everywhere.

    He wasn't there though - There are some names and addresses and phone #'s of sysadmin listed (HOME #'s)

    The ds.internic.net whois server is being queried: -------------------- Gaon, Brian D. (BDG6) bgaon@SFSUVAX1.SFSU.EDU San Francisco State University 1600 Holloway Avenue San Francisco, CA 94132 (415) 338-2876

    Record last updated on 02-Jul-91.

    The rs.internic.net whois server is being queried:

    Baum, Amy (AB374) greenbd@SFSU.EDU 510.757.3333 Gonzalez, Aurelio (AG344) aurelio@SFSU.EDU 415-276-0532 MacDonald, C.j (CM1455) cjm@SFSU.EDU 415-752-9305 Naumann, Jon (JL311) jnaumann@sfsu.edu (415) 338-1584 Riddle, Stephen (SR1056) sriddle@SFSU.EDU 415-752-8512 Schmidt, Heidi (HS30) heidis@SFSU.EDU 415-338-6175 Strickler, Don (DS2362) dons@SFSU.EDU 415-338-3046 Tse, Jack (JT124) jack@SFSU.EDU 415-338-2627

    The nic.ddn.mil whois server is being queried:

    No match for mailbox „@SFSU.EDU“.

    This time I whois'd GAMBIT instead of the server (he might not have an account there - it might be a spoof....

    Fried, Matt (MF236) gambit@MONADNOCK.KEENE.EDU (603)358-8028 Gambit Automated Design Inc. (NET-NET-GAMBIT) NET-GAMBIT 204.30.212.0 Gambit Automated Design Inc. (GAMBIT-DOM) GAMBIT.COM Gambit BBS (GAMBITBBS-DOM) GAMBITBBS.COM Gambit Communications, Inc. (GAMBITCOMM-DOM) GAMBITCOMM.COM Gambit Media (GUAGENTI-DOM) GUAGENTI.COM Gambit New Orleans Weekly (GAMBIT-NO-DOM) GAMBIT-NO.COM Gambit Systems (GAMBITSYS-DOM) GAMBITSYS.COM Nelson, Philip (PN218) gambit@VARMM.COM 318-322-8222 Ritter, Russell (RR1116) gambit@CDSNET.NET 541.883.2028 ext.35

    The nic.ddn.mil whois server is being queried:

    whois: connect: Connection refused

    There were a couple... to be sure Telnet into the mail server (port 19 or 25) like so :

    vrfy gambit@sfsu.edu

    250 ALONZO SAMPSON San Francisco State University

    Got the BASTARD.. A call to Directory Assistance and you can get the university operator's #. They'll give you the phone # and mailing address....

    University Operator - 415-338-1111

    This was a simple search that included more steps than usual for the sake of completeness. It also implied that you could view complete headers with your news and mail programs and decipher them.

    Enjoy...

    View Post Views: 170 | Comments: 0 | Rating Votes: 0
  • One Way of Cracking WEP & WPA Wireless Net...

    Mood: Deviousby E7R, Tue 5th Aug 2008
    Pre-Installation

    Checklist:

    * Tools
    o I've been really, really successful with basically one tool set called AirCrack. Download that.
    o Kismet is an excellent tool for sniffing out wireless networks as well and could prove useful.
    * An encrypted wireless network.
    o We'll be working on WEP encrypted networks as well as static passkey WPA or WPA-PSK

    Note: Make sure you can get your card into monitor mode (sometimes called raw monitor or rfmon). This is VERY important

    Theory:

    A little theory first. WEP is a really crappy and old encryption techinque to secure a wireless connection. A 3-byte vector, called an Initalization Vector or IV, is prepended onto packets and its based on a pre-shared key that all the authenticated clients know... think of it as the network key you need to authenticate.

    Well if its on (almost) every packet generated by the client or AP, then if we collect enough of them, like a few hundred thousand, we should be able to dramatically reduce the keyspace to check and brute force becomes a realistic proposition.

    A couple of things will cause us some problems.

    * If the key is not static, then you'll mix up all your IVs and it'll take forever to decrypt the key.
    * Theres no traffic, therefore no packets - we can fix this.
    * MAC Address Filtering - we can fix this too.

    Setting up your tools:

    We're gonna need 3 or 4 shells open, we have 5 tools:

    * airodump - Grabbing IVs
    * aircrack - Cracking the IVs
    * airdecap - Decoding captured packets
    * airreplay - (My Favourite) Packet injector to attack APs.
    * kismet - Network Sniffer, can grab IVs as well.

    For a standard WEP hack we'll usally only need airodump, aircrack, and kismet (server and client). If we run into some problems we might have to use airreplay to fiddle about.

    I'll leave you to config all these tools up, for the most part they should just be defaults with the exception of kismet.

    Finding the Network:

    First step is we need to find a netork to crack. Start up kismet and start sniffing for APs. Leave it on for a bit so that it can discover all the important information about the networks around. What we want from kismet is:

    * Encryption type: Is it WEP 64-bit? 128-bit?
    * What channel is it on? Can greatly speed up IV collection.
    * AP's IP Address
    * BSSID
    * ESSID

    All this info isn't required but the more you have, the more options you have later to crack and sniff. We can get a lot of this from airodump as well but I find the channel is important.

    Capturing IVs:

    Alright, we know what we wanna crack, so lets start capturing packets. You can use kismet to capture files but I prefer airodump because it keeps a running count of all the IVs I've captured and I can crack and airodump will automatically update aircrack with new IVs as it finds them.

    Note: kimset can interfere with airodump so make sure you close it down before starting airodump.

    Airodump is pretty straight forward with its command line looking something like this:
    ./airodump <interface> <output prefix> [channel] [IVs flag]
    * interface is your wireless interface to use - required.
    * output prefix is just the filname it'll prepend, - required.
    * channel is the specific channel we'll scan, leave blank or use 0 to channel hop.
    * IVs flag is either 0 or 1, depending on whether you want all packets logged, or just IVs.

    My wireless card is ath0, output prefix i'll use „lucid“, the channel we sniffed from kismet is 6, and IVs flag is 1 because we just want IVs. So we run:
    <?php ./airodump ath0 lucid 6 1 ?>
    Airodump will come up with a graph showing us all the APs and their relevant info, as well as client stations connected to any of the APs.
    <?php BSSID PWR Beacons # Data CH MB ENC ESSID 00:23:1F:55:04:BC 76 21995 213416 6 54. WEP hackme BSSID STATION PWR Packets Probes 00:23:1F:55:04:BC 00:12:5B:4C:23:27 112 8202 hackme 00:23:1F:55:04:BC 00:12:5B:DA:2F:6A 21 1721 hackme ?>
    The second line shows us some info about the AP as well as the number of beacons and data packets we've collected from the AP. The two last lines show us two authenticated clients. Where they are connected to and the packets they are sending. We won't use this client info in a straight theory hack but in practice we'll need this info to actively attack the AP.

    This step may take a long time or could be very short. It depends how busy the AP is and how many IVs we are collecting. What we are doing is populating a file „lucid.ivs“ with all the IV important packet info. Next, we'll feed this to aircrack. To move onto the next step, we'll want at least 100,000 packets (under # Data in airodump) but probably more.

    Using IVs to Decrypt the Key:

    Ok, pretend you have enough IVs now to attempt a crack. Goto a new terminal (without stopping airodump - remember it'll autoupdate as new IVs are found) and we'll start aircrack. It looks something like this:
    ./aircrack [options] <input file>
    There are a lot of options so you can look them up yourself, i'll be using common ones here that should get you a crack. Our input file is „lucid.ivs“, the options we will use are:

    * -a 1 : forces a WEP attack mode (2 forces WPA)
    * either -b for the bssid or -e for the essid : whichever is easier to type but I like using a BSSID because its more unique.
    * -n 64 or -n 128 : WEP key length, omit if not known by now.

    So our command will look like:
    <?php ./aircrack -a 1 -b 00:23:1F:55:04:BC -n 128 lucid.ivs ?>
    and off it goes, resembling the picture from the top. Keep an eye on the Unique IV count as it should increase if airodump is still running. For all intents and purposes you are done. That'll pop open most old wireless routers with some traffic on them.

    Anticipated Problems:

    There are lots of problems that can come up that will make the above fail, or work very slowly.

    * No traffic
    o No traffic is being passed, therefore you can't capture any IVs.
    o What we need to do is inject some special packets to trick the AP into broadcasting.
    o Covered below in WEP Attacks
    * MAC Address filtering
    o AP is only responding to connected clients. Probably because MAC address filtering is on.
    o Using airodumps screen you can find the MAC address of authenticated users so just change your MAC to theirs and continue on.
    o Using the -m option you can specify aircrack to filter packets by MAC Address, ex. -m 00:12:5B:4C:23:27
    * Can't Crack even with tons of IVs
    o Some of the statistical attacks can create false positives and lead you in the wrong direction.
    o Try using -k N (where N=1..17) or -y to vary your attack method.
    o Increase the fudge factor. By default it is at 2, by specifying -f N (where N>=2) will increase your chances of a crack, but take much longer. I find that doubling the previous fudge factor is a nice progression if you are having trouble.
    * Still Nothing
    o Find the AP by following the signal strength and ask the admin what the WEP key is.

    WPA Crackin':

    WPA is an encryption algorithm that takes care of a lot of the vunerablities inherent in WEP. WEP is, by design, flawed. No matter how good or crappy, long or short, your WEP key is, it can be cracked. WPA is different. A WPA key can be made good enough to make cracking it unfeasible. WPA is also a little more cracker friendly. By capturing the right type of packets, you can do your cracking offline. This means you only have to be near the AP for a matter of seconds to get what you need. Advantages and disadvantages.

    WPA Flavours:

    WPA basically comes in two flavours RADIUS or PSK. PSK is crackable, RADIUS is not so much.

    PSK uses a user defined password to initialize the TKIP, temporal key integrity protocol. There is a password and the user is involved, for the most part that means it is flawed. The TKIP is not really crackable as it is a per-packet key but upon the initialization of the TKIP, like during an authentication, we get the password (well the PMK anyways). A robust dictionary attack will take care of a lot of consumer passwords.

    Radius involves physical transferring of the key and encrypted channels blah blah blah, look it up to learn more about it but 90% of commerical APs do not support it, it is more of an enterprise solution then a consumer one.

    The Handshake:

    The WPA handshake was designed to occur over insecure channels and in plaintext so the password is not actually sent across. There are some fancy dancy algorithms in the background that turn it into a primary master key, PMK, and the like but none of that really matters cause the PMK is enough to connect to the network.

    The only step we need to do is capture a full authenication handshake from a real client and the AP. This can prove tricky without some packet injection, but if you are lucky to capture a full handshake, then you can leave and do the rest of the cracking at home.

    We can force an authenication handshake by launching a Deauthentication Attack, but only if there is a real client already connected (you can tell in airodump). If there are no connected clients, you're outta luck.

    Like for WEP, we want to know the channel the WPA is sitting on, but the airodump command is slightly different. We don't want just IVs so we don't specify an IV flag. This will produce „lucid.cap“ instead of „lucid.ivs“. Assume WPA is on channel 6 and wireless interface is ath0.
    <?php ./airodump ath0 lucid 6 ?>

    Dictionary Brute Force

    The most important part of brute forcing a WPA password is a good dictionary. Check out http://www.openwall.com/wordlists/ for a 'really' good one. It costs money, but its the biggest and best I've ever seen (40 Million words, no duplicates, one .txt file). There is also a free reduced version from the same site but i'm sure resourceful people can figure out where to get a good dictionary from.

    When you have a good dictionary the crack is a simple brute force attack:
    <?php ./aircrack -a 2 -b 00:23:1F:55:04:BC -w /path/to/wordlist ?>
    Either you'll get it or you won't... depends on the strength of the password and if a dictionary attack can crack it.

    Using Aireplay:

    Aireplay is the fun part. You get to manipulate packets to trick the network into giving you what you want.

    WEP Attacks:

    Attacks used to create more traffic on WEP networks to get more IVs.

    ARP Injection:

    ARP Replay is a classic way of getting more IV traffic from the AP. It is the turtle. Slow but steady and almost always works. We need the BSSID of the AP and the BSSID of an associated client. If there are no clients connected, it is possible to create one with another WEP attack explained below: Fake Authentication Attack.

    With airodump listening, we attack:
    <?php ./aireplay -3 -b <AP MAC Address> -h <Client MAC Address> ath0 ?>
    Note: The -3 specifys the type of attack (3=ARP Replay).

    This will continue to run, and airodump, listening fron another terminal, will pick up any reply IVs.

    Interactive Packet Replay:

    Interactive Packet Reply is quite a bit more advanced and requires capturing packets and constructing your own. It can prove more effective then simple ARP requests but I won't get into packet construction here.

    A useful attack you might try is the re-send all data attack, basically you are asking the AP to re-send you everything. This only works if the AP re-encrypts the packets before sending them again (and therefore giving you a new IV). Some APs do, some don't.
    <?php aireplay -2 -b <AP MAC> -h <Client MAC> -n 100 -p 0841 -c FF:FF:FF:FF:FF:FF ath0 ?>

    Fake Authentication Attack:

    This attack won't generate any more traffic but it does create an associative client MAC Address useful for the above two attacks. Its definately not as good as having a real, connected client, but you gots to do what you gots to do.

    This is done easiest with another machine because we need a new MAC address but if you can manually change your MAC then that'll work too. We'll call your new MAC address „Fake MAC“.

    Now most APs need clients to reassociate every 30 seconds or so or they think they're disconnected. This is pretty arbitrary but I use it and it has worked but if your Fake MAC gets disconnected, reassociate quicker. We need both the essid and bssid and our Fake MAC.
    <?php ./aireplay -1 30 -e '<ESSID>' -a <BSSID> -h <Fake MAC> ath0 ?>
    If successful, you should see something like this:
    <?php 23:47:29 Sending Authentication Request 23:47:29 Authentication successful 23:47:30 Sending Association Request 23:47:30 Association successful :-) ?>
    Awesome! Now you can use the above two attacks even though there were no clients connected in the first place! If it fails, there may be MAC Address Filtering on so if you really want to use this, you'll have to sniff around until a client provides you with a registered MAC to fake.

    WPA Attacks:

    So far, the only way to really crack WPA is to force a re-authentication of a valid client. We need a real, actively connected client to break WPA. You might have to wait a while.

    Deauthentication Attack

    This is a simple and very effective attack. We just force the connected client to disconnect then we capture the re-connect and authentication, saves time so we don't have to wait for the client to do it themselves (a tad less „waiting outside in the car“ creepiness as well). With airodump running in another console, your attack will look something like this:
    <?php aireplay -0 5 -a <AP MAC> -c <Client MAC> ath0 ?>
    After a few seconds the re-authentication should be complete and we can attempt to Dictionary Brute Force the PMK.

    Conclusion:

    Well thats that. APs crack fairly often but sometimes there is just nothing you can do. Obviously you are not allowed to illegally crack other people's wireless connections, this is purely for penetration testing purposes and some fun.

    View Post Views: 138 | Comments: 0 | Rating Votes: 0

Search

+ New Post