Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

airmon-ng.linux: in a for loop, replace ls with a glob #2551

Merged
merged 3 commits into from
Jul 19, 2023
Merged

airmon-ng.linux: in a for loop, replace ls with a glob #2551

merged 3 commits into from
Jul 19, 2023

Commits on Jul 10, 2023

  1. airmon-ng.linux: in a for loop, replace ls with a glob

    xtrace comparison:
    
    # original
    [root@localhost-live bug_airmon-ng-email]# set -x; for i in $(ls /sys/class/ieee80211/); do if [ ! -d "/sys/class/ieee80211/${i}/device/net" ]; then echo "$MISSING_INTERFACE" :: "$i"; fi; done; set -
    ++ ls --color=auto /sys/class/ieee80211/
    + for i in $(ls /sys/class/ieee80211/)
    + '[' '!' -d /sys/class/ieee80211/phy0/device/net ']'
    + set -
    
    # change added
    [root@localhost-live bug_airmon-ng-email]# set -x; for i in /sys/class/ieee80211/*; do if [ -e "${i}" ] && [ ! -d "${i}/device/net" ]; then MISSING_INTERFACE="${i}"; echo "$MISSING_INTERFACE" :: "$i"; fi; done; set -
    + for i in /sys/class/ieee80211/*
    + '[' -e /sys/class/ieee80211/phy0 ']'
    + '[' '!' -d /sys/class/ieee80211/phy0/device/net ']'
    + set -
    wileyhy committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    e833818 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. airmon-ng.linux: lines 206-7, remove comments

    Comments had read...
    
        #this should be fixed, but it's not going to be right now
        # shellcheck disable=2045
    
    ...which referred to...
    
    https://www.shellcheck.net/wiki/SC2045
    wileyhy committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    8faa5b6 View commit details
    Browse the repository at this point in the history
  2. airmon-ng.linux: Updated value of MISSING_INTERFACE

    Fix setting MISSING_INTERFACE to the expected value, from commit e833818.
    wileyhy committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    ab0bf54 View commit details
    Browse the repository at this point in the history