Results 1 to 2 of 2

Thread: Karma and madWifi

  1. #1
    Just burned his ISO
    Join Date
    Jul 2008
    Posts
    3

    Unhappy Karma and madWifi

    I've been searching the net form some more info on my problems and I'm wondering if anyone here has encountered and figured it out.

    First, I was trying to get the Karma scan part running. I got the card in monitor mode but it craps out with some init_pcap error:
    Code:
    bt ~ # ifconfig ath0 down
    bt ~ # wlanconfig ath0 destroy
    bt ~ # wlanconfig ath create wlandev wifi0 wlanmode monitor
    ath0
    bt ~ # iwconfig ath0
    ath0      IEEE 802.11g  ESSID:""  Nickname:""
              Mode:Monitor  Channel:0  Access Point: Not-Associated
              Bit Rate:0 kb/s   Tx-Power:19 dBm   Sensitivity=1/1
              Retry:off   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    ...omitted the rest
    
    bt karma # ./bin/monitor-mode.sh ath0
    + INTERFACE=ath0
    ++ which iwconfig
    + IWCONFIG=/usr/sbin/iwconfig
    ++ which ifconfig
    + IFCONFIG=/sbin/ifconfig
    + '[' 1 -lt 1 ']'
    + '[' linux-gnu = FreeBSD ']'
    + /sbin/ifconfig ath0 down
    + /usr/sbin/iwconfig ath0 channel 1 mode monitor essid any
    + /sbin/ifconfig ath0 up
    
    bt karma # ./src/karma ath0
    init_pcap: no suitable datalink decoder found
    Any pointers as to what I'm doing wrong with that part would be helpful. I've had it running once before... I just can't get it going now.

    Then theres the 2nd part I'm having issues on. I'm running: bin/karma etc/karma.xml and the error that I'm seeing is this:
    SIOCSIFHWADDR: Invalid argument
    Error for wireless request "Set Mode" (8B06)
    SET failed on device ath0: Invalid argument
    normal or supposed to happen?
    Code:
    bt karma # ./bin/karma etc/karma.xml
    Starting KARMA...
    Loading config file etc/karma.xml
    SIOCSIFHWADDR: Invalid argument
    Error for wireless request "Set Mode" (8B06) :
        SET failed on device ath0 ; Invalid argument.
     ACCESS-POINT is running
     DNS-SERVER is running
     DHCP-SERVER is running
     POP3-SERVER is running
     FTP-SERVER is running
    [2008-07-09 21:55:20] INFO  WEBrick 1.3.1
    [2008-07-09 21:55:20] INFO  ruby 1.8.6 (2007-06-07) [i486-linux]
    [2008-07-09 21:55:20] INFO  WEBrick::HTTPServer#start: pid=6697 port=80
     HTTP-SERVER is running
     CONTROLLER-SERVLET is running
     EXAMPLE-WEB-EXPLOIT is running
    Delivering judicious KARMA, hit Control-C to quit.
    From what I've found elsewhere, I've seen one or two people who were able to get their setup working and didn't have that error. My wireless network card is a Netgear WG511T.

    Anyone have any ideas/suggestions?

    Thanks,
    Paul

  2. #2
    Just burned his ISO
    Join Date
    Jul 2008
    Posts
    3

    Default

    Ok, I've managed to make some progress. This error:
    Code:
    SIOCSIFHWADDR: Invalid argument
    means that one of the scripts attempted to change the MAC address of our network card. Commenting out that part in the scripts got rid of that problem. The code they ran was:
    Code:
    ifconfig ath0 hw ether xx:xx:xx:xx:xx:xx
    which the madwifi driver doesn't allow. I could probably keep the functionality if I changed the MAC address according to how the madwifi user guide says to.

    The next error I had was in ./modules/servers/AccessPoint/accesspoint.rb:
    Code:
    Error for wireless request "Set Mode" (8B06)
    SET failed on device ath0: Invalid argument
    Was that the script(s) were trying to run:
    Code:
    ifconfig ath0 mode manage
    also do not work on the madwifi driver in BT3. The correct way to do it is to run:
    Code:
    wlanconfig ath0 destroy
       wlanconfig ath0 create wlandev wifi0 wlanmode master
    But Now I have a new problem that I'm stuck on. I'm trying to run
    Code:
    bt karma # ./bin/karma ./etc/karma.xml
    Starting KARMA...
    Loading config file ./etc/karma.xml
     ACCESS-POINT is running
    /pentest/wireless/karma/modules/servers/DnsServer/dns.rb:39:in `bind': Cannot assign requested address - bind(2) (Errno::EADDRNOTAVAIL)
            from /pentest/wireless/karma/modules/servers/DnsServer/dns.rb:39:in `run'
            from ./bin/../modules/loader.rb:176:in `run'
            from ./bin/../modules/loader.rb:175:in `initialize'
            from ./bin/../modules/loader.rb:175:in `new'
            from ./bin/../modules/loader.rb:175:in `run'
            from ./bin/../modules/loader.rb:163:in `run'
            from ./bin/../modules/loader.rb:158:in `each_key'
            from ./bin/../modules/loader.rb:158:in `run'
            from ./bin/karma:49
            from /usr/lib/ruby/1.8/rexml/element.rb:934:in `each'
            from /usr/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
            from /usr/lib/ruby/1.8/rexml/element.rb:934:in `each'
            from ./bin/karma:46
    Anyone? Help!
    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •