Results 1 to 2 of 2

Thread: MANA/hostapd noob config problem :-/

  1. #1
    Join Date
    2015-Aug
    Posts
    7

    MANA/hostapd noob config problem :-/

    Hi, i´m facing a problem with Mana-toolkit if i start start-mana-noupstream-all.sh
    (actually the problem comes up whenever "phy0=wlan0_0" is used) always get this:

    hostapd_free_hapd_data: Interface wlan0_0 wasn't started
    So the problem is hostapd .. but can´t figure out what exactly causes the problem

    As far as i understood wlan0_0 is a virtual adapter created by my wlan1 (which is the awus) but i don´t understand why it´s not working :-/


    My config is:
    Nexus5 hammerhead on lollipop with the latest nethunter.
    wlan0 = internal
    wlan1 = awus
    ------------
    I updated the chroot and used apt-get update and upgrade
    I changed hostapd-karma-all.conf -> interface=wlan1
    and start-noupstream-all.sh -> phy=wlan1
    I left everything else as it was(default).
    I think this causes all following errormessages.


    I tried it with the AWUS036NHRv2 and the AWUS036H.
    036H has some problems with the the driver but 036NHRv2 has not.

    AWUS036NHRv2 outputs this:


    root@kali:/usr/share/mana-toolkit/run-mana# ./start-noupstream-eap.sh hostname WRT54G
    /var/lib/mana-toolkit/ennode.node
    mkfifo: cannot create fifo `/var/lib/mana-toolkit/ennode.node': File exists
    network-manager: unrecognized service
    Configuration file: /etc/mana-toolkit/hostapd-karma-eap.confMANA - CrackApd - crackapd.py
    MANA - CrackApd - Version 1.0
    MANA - CrackApd - Copyright - SensePost (Pty) Ltd - 2014
    MANA - CrackApd - Ian de Villiers <[email protected]>
    MANA - CrackApd -
    MANA - CrackApd -
    MANA - CrackApd - Loading Configuration...
    MANA - CrackApd - ! Could not load configuration file. Using defaults
    MANA - CrackApd - + Loaded Configuration.
    MANA - CrackApd - + Verbose : 1
    MANA - CrackApd - + Total Threads : 10
    MANA - CrackApd - + Control File : /tmp/crackapd.run
    MANA - CrackApd - + HostAPD Configuration : /etc/mana-toolkit/hostapd-karma-eap.conf
    MANA - CrackApd - + Crack Executable : /usr/bin/asleapMANA - CrackApd - + Word List : /usr/share/wordlists/john.txt
    MANA - CrackApd - + Done
    MANA - CrackApd -
    MANA - CrackApd -
    MANA - CrackApd - Loading HostApd Configuration...
    MANA - CrackApd - + EAP Users File : /etc/mana-toolkit/hostapd.eap_user
    MANA - CrackApd - + Crack Entry Node : /var/lib/mana-toolkit/ennode.node
    MANA - CrackApd - Initialising Threads...
    MANA - CrackApd - + Starting Thread...0
    MANA - CrackApd - + Starting Thread...1
    MANA - CrackApd - + Starting Thread...2
    MANA - CrackApd - + Starting Thread...3
    MANA - CrackApd - + Starting Thread...4
    MANA - CrackApd - + Starting Thread...5
    MANA - CrackApd - + Starting Thread...6
    MANA - CrackApd - + Starting Thread...7
    MANA - CrackApd - + Starting Thread...8
    MANA - CrackApd - + Starting Thread...9
    MANA - CrackApd - + Done
    MANA - CrackApd -
    MANA - CrackApd - Opening input FIFO...
    Using interface wlan1 with hwaddr 00:11:22:33:44:00 and ssid "AlwaysOn"
    Could not set interface wlan0_0 flags (UP): Operation not supported
    Failed to add BSS (BSSID=00:11:22:33:44:01)
    Interface initialization failed
    wlan1: interface state UNINITIALIZED->DISABLED
    wlan1: AP-DISABLED
    wlan1: Unable to setup interface.
    hostapd_free_hapd_data: Interface wlan0_0 wasn't started
    hostapd_free_hapd_data: Interface wlan1 wasn't started
    wlan1 Link encap:Ethernet HWaddr 00:11:22:33:44:00
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:204 (204.0 B)

    wlan0_0: error fetching interface information: Device not found
    SIOCSIFADDR: No such device
    wlan0_0: ERROR while getting interface flags: No such deviceSIOCSIFNETMASK: No such device
    SIOCADDRT: Network is unreachable
    Internet Systems Consortium DHCP Server 4.3.1
    Copyright 2004-2014 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
    Config file: /etc/mana-toolkit/dhcpd.conf
    Database file: /var/lib/dhcp/dhcpd.leases
    PID file: /var/run/dhcpd.pid
    Wrote 0 leases to leases file.
    Listening on LPF/wlan1/00:11:22:33:44:00/10.0.0.0/24
    Sending on LPF/wlan1/00:11:22:33:44:00/10.0.0.0/24
    Sending on Socket/fallback/fallback-net
    Internet Systems Consortium DHCP Server 4.3.1
    Copyright 2004-2014 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
    Config file: /etc/mana-toolkit/dhcpd-two.conf
    Database file: /var/lib/dhcp/dhcpd-two.leases
    PID file: /var/run/dhcpd-two.pid
    Wrote 0 leases to leases file.

    No subnet declaration for wlan0_0 (no IPv4 addresses).
    ** Ignoring requests on wlan0_0. If this is not what
    you want, please write a subnet declaration
    in your dhcpd.conf file for the network segment
    to which interface wlan0_0 is attached. **


    Not configured to listen on any interfaces!

    If you think you have received this message due to a bug rather
    than a configuration issue please read the section on submitting
    bugs on either our web page at www.isc.org or in the README file
    before submitting a bug. These pages explain the proper
    process and the information we find helpful for debugging..

    exiting.
    dnsspoof: libnet_check_iface() ioctl: No such device

    [....] Starting web server: apache2dnsspoof: listening on wlan1 [udp dst port 53 and not src 10.0.0.1]
    AH00112: Warning: DocumentRoot [/usr/share/mana-toolkit/www/facebook] does not exist
    AH00557: apache2: apr_sockaddr_info_get() failed for WRT54G
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
    . ok
    Hit enter to kill me

  2. #2
    Join Date
    2015-Aug
    Posts
    7
    And the Winner is:
    ME!!!!

    option subnet-mask 255.255.255.0;
    in dhcpd.conf was missing..


    Wrong too! The problem were my wifi adapters awus036h aswell as the 036nhr2 can't handle mastermode.. so after 2-3 months of learning linux commands dns dhcp cinfig stuf and and and..
    The hardware causes the problem :-|

    Simple-nat is working now..
    Full-nat makes some trouble but thats a different story... next time i will check
    requirements first :-)
    Last edited by Flakke123; 2015-12-24 at 17:09. Reason: I know whats the problem was..

Similar Threads

  1. Secondary VM - bettercap, bettercap-caplets and hostapd-mana packages not found
    By Scorpionking38 in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2022-06-11, 20:04
  2. hostapd problem after upgrade to kali rolling 2016
    By freddo in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2017-01-14, 16:46
  3. Problem with Mana
    By dead19 in forum NetHunter General Questions
    Replies: 1
    Last Post: 2016-03-30, 14:32
  4. Mana problem
    By v3rtig0 in forum NetHunter General Questions
    Replies: 1
    Last Post: 2016-01-01, 11:10

Posting Permissions

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