Jump to content


Photo

Karma Hostapd And Backtrack


  • Please log in to reply
15 replies to this topic

#1 co2shaun

co2shaun

    Hak5 Fan

  • Active Members
  • PipPip
  • 29 posts

Posted 22 May 2011 - 01:14 PM

I'm having trouble getting hostapd with karma to install on backtrack. I tried it on backtrack 4 and 5 with no luck.
I these are the first two lines of errors i get when I run the make file
cc -o hostapd main.o config_file.o ../src/ap/hostapd.o ../src/ap/wpa_auth_glue.
o ../src/ap/drv_callbacks.o ../src/ap/ap_drv_ops.o ../src/ap/utils.o ../src/ap/a

#2 digininja

digininja

    Elite

  • Global Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 2,573 posts
  • Gender:Male
  • Location:Sheffield, UK

Posted 22 May 2011 - 03:16 PM

Those aren't errors, that is the compiler running.

#3 co2shaun

co2shaun

    Hak5 Fan

  • Active Members
  • PipPip
  • 29 posts

Posted 22 May 2011 - 03:19 PM

Wow now I feel dumb. Thanks for the info.

#4 digininja

digininja

    Elite

  • Global Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 2,573 posts
  • Gender:Male
  • Location:Sheffield, UK

Posted 22 May 2011 - 03:21 PM

Thats ok, got to learn

#5 co2shaun

co2shaun

    Hak5 Fan

  • Active Members
  • PipPip
  • 29 posts

Posted 22 May 2011 - 04:39 PM

I got i figured out on backtrack 4 but still haven't got it to work on backtrack 5. Is anyone else having issues on backtrack 5?

./src/crypto/tls_openssl.c:23:25: warning: openssl/ssl.h: No such file or directory
../src/crypto/tls_openssl.c:24:25: warning: openssl/err.h: No such file or directory
../src/crypto/tls_openssl.c:25:28: warning: openssl/pkcs12.h: No such file or directory
../src/crypto/tls_openssl.c:26:28: warning: openssl/x509v3.h: No such file or directory

#6 digininja

digininja

    Elite

  • Global Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 2,573 posts
  • Gender:Male
  • Location:Sheffield, UK

Posted 22 May 2011 - 04:42 PM

the error is saying it can't find files in the openssl directory, that implies that you don't have the openssl development files installed

#7 co2shaun

co2shaun

    Hak5 Fan

  • Active Members
  • PipPip
  • 29 posts

Posted 22 May 2011 - 09:03 PM

Thanks again I have everything working now. Knew it had something to do with openssl but was lost when openssl was there. Added the openssl development files and it worked great.

#8 Darren Kitchen

Darren Kitchen

    Hak5 Junkie

  • Root Admin
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 3,809 posts
  • Gender:Male
  • Location:San Francisco, CA

Posted 24 May 2011 - 10:37 AM

Can you share with us how you went about it?
Posted ImagePosted ImagePosted Image

#9 DataPhreak

DataPhreak

    Newbie

  • Active Members
  • 3 posts

Posted 16 June 2012 - 08:43 PM

Quick bump to this topic, Trying to set this up myself. I've been looking around and can't find a guide for installing Karma manually and configuring. Presumably it's going to be something like this:

cd ~
wget http://www.digininja...tar_0.1.tar.bz2
tar -jcvf hostapd-karma.tar_0.1.tar.bz2
cd hostapd-karma
./config
make
nano hostapd-karma.conf #edit config file
./hostapd -dd ~/hostapd-karma.conf

Seems too simple though. I'm sure I'm missing some steps here. Also, some questions:

1. Does this, with the propper .conf settings, provide the same functionality as airbase-ng's -P mode that accepts all probes?

2. Does Karma provide DHCP and DNS servers, or is it just for getting clients to authenticate to the device? (I'm wanting to do a custom setup, so the latter is prefferable.)

3. Is this the most up to date version of Karma and Hostapd? Or does that need to be installed with apt-get? Dependencies?

4. Will computers set to automatically connect to WPA2/AES clients connect and use this network, or will it only capture the handshake and the remote client disconnect?

5. Digininja, Y U NO have guide on karma page? ლ(ಠ益ಠლ)

Again, if there is a guide out there explaining all of this, shoot me a link, please. If I can get this up and working, I might just document the process and post it for review. Using Backtrack 5r2 with an Alfa AWUS036NHR, btw. It uses the realtek rtl9182(se or cu suffix, can't remember which and don't have it with me to check), but supports injection, not sure if it supports master mode.

Thanks in advance, guys.

#10 digininja

digininja

    Elite

  • Global Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 2,573 posts
  • Gender:Male
  • Location:Sheffield, UK

Posted 17 June 2012 - 05:22 PM

That is all there is to it.

1. It is better than airbase as it is a true AP rather than a fake one where monitor mode is used to pretend to be an AP

2. No, this is purely an AP, you have to set up the rest yourself

3. I might have a more up-to-date one kicking around but there probably isn't much between that and the one you have

4. They will associate but then fail to authenticate as you don't know the correct key to talk back to them

5. Because I only had time to write the software.

And you won't get it working with the Alfa, you can only use it with cards with either a Prism54 or Atheros chipset. Finding these in USB is very rare, I do all my dev work on either my eeepc or a device I've got with a couple of Atheros cards built in.

#11 thaihenry

thaihenry

    Hak5 Fan

  • Active Members
  • PipPip
  • 29 posts

Posted 17 June 2012 - 06:14 PM

Digininja

Thank you for your help.

Tplink has a very nice atheros based USB adapter; TL-WN722N. Very good for injection. I found them to be more reliable than the alphas, which I rarely use.


That is all there is to it.

1. It is better than airbase as it is a true AP rather than a fake one where monitor mode is used to pretend to be an AP

2. No, this is purely an AP, you have to set up the rest yourself

3. I might have a more up-to-date one kicking around but there probably isn't much between that and the one you have

4. They will associate but then fail to authenticate as you don't know the correct key to talk back to them

5. Because I only had time to write the software.

And you won't get it working with the Alfa, you can only use it with cards with either a Prism54 or Atheros chipset. Finding these in USB is very rare, I do all my dev work on either my eeepc or a device I've got with a couple of Atheros cards built in.



#12 leapole

leapole

    Hak5 Zombie

  • Active Members
  • PipPipPipPipPip
  • 141 posts
  • Gender:Male

Posted 17 June 2012 - 07:48 PM

Hey Digininja,

If you happen to have some updated code laying about i would love to use it. The current while listings and blacklisting does not work correctly all the time.
Please let me know if I can help by writing a guide or a setup script for it. whatever just let me know.

The tl-link 722n will work great for the karma ap. Just make sure you are running a kernel greater than 3.0.

#13 petertfm

petertfm

    Hak5 Uber fan +++

  • Active Members
  • PipPipPipPipPipPipPipPipPip
  • 1,106 posts
  • Gender:Male
  • Location:Canada B.C

Posted 17 June 2012 - 08:33 PM

Hey Digininja,

If you happen to have some updated code laying about i would love to use it. The current while listings and blacklisting does not work correctly all the time.
Please let me know if I can help by writing a guide or a setup script for it. whatever just let me know.

The tl-link 722n will work great for the karma ap. Just make sure you are running a kernel greater than 3.0.


to clarify more, for mac blacklisting once you remove/white list a mac it can no longer be blacklisted until reboot.

and there are bugs in the white listing of ssids that is it seems to work all the time when in blacklisting mode but once your in white listing mode it works the first time you run it but if you remove the ssids and add them again a second time it doesn't work most of the time?

I am testing this on the current mark4 firmware and using a module that I made called blacklister, I have made a newer version 2.0 that should be released soon.

#14 leapole

leapole

    Hak5 Zombie

  • Active Members
  • PipPipPipPipPip
  • 141 posts
  • Gender:Male

Posted 17 June 2012 - 10:01 PM

HHmm i guess this leads me to the question of hoastapd downloaded from digininjas site and the one running on the wifi pineapple. Are they at the same revision of patches ?

#15 digininja

digininja

    Elite

  • Global Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 2,573 posts
  • Gender:Male
  • Location:Sheffield, UK

Posted 18 June 2012 - 02:47 AM

They are similar but as the Pineapple runs OpenWrt which applies its own patches to hostapd I'm patching over the top of those so the patch is different. It is also probably a slightly different version.

#16 vosmerkin

vosmerkin

    Newbie

  • Members
  • 1 posts

Posted 10 April 2013 - 08:51 PM

Just in case anyone is having troubles - I found this guide for backtrack r3 to be easy to follow:

http://www.jhaos-theory.co.uk/?p=46

 

Digininja, thanks for the karma patches!

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users