Not working for RPi3

Issue #1 resolved
Former user created an issue

An error is reported - Operation not supported (-95), within the run.sh script for the iw command (i.e., creating the monitoring mode). Any suggestions?

Comments (3)

  1. Tim Tomes repo owner

    Not really. I haven't played with the code in ages. There seems to be a good number of folks that do though. Perhaps one of them will stumble upon this question and be able to provide you some info. Sorry I couldn't be more helpful.

  2. david switzer

    Hi Anonymous User - I play w/ this stuff from time to time, can you show "bash -x run.sh" ?

    I don't recall the exact issues, but had problems w/ "iw" pushing the interface to mon mode in the past, and had used "airmon-ng", but find that iwconfig works fairly reliably. KEEP IN MIND THIS HASN'T BEEN TESTED ON THE RPI3/your interface .. but try this version of "run.sh":

    #!/bin/bash
    # run WUDS
    #  -- uses first wireless interface if IFACE isn't set in config
    
    IFACE=`grep IFACE config.py | cut -d'=' -f 2 | sed "s/['\" ]//g"`
    
    if [ "$IFACE" == "" ]; then 
        IFACE=`iwconfig 2>&1 | grep IEEE | cut -d" " -f 1`; 
        fi
    
    sudo ifconfig $IFACE down
    #sudo iw dev $IFACE interface add $IFACE type monitor
    iwconfig $IFACE mode mon
    sudo ifconfig $IFACE up
    sudo python ./core.py
    sudo ifconfig $IFACE down
    #---
    
  3. Log in to comment