Skip to content

Commit

Permalink
update completions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragnt committed Aug 11, 2024
1 parent a2a2f7a commit 81c91c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 30 deletions.
6 changes: 3 additions & 3 deletions completions/bash_angryoxide_completions
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ _angryoxide()
_available_interfaces
return 0
;;
--targetlist|--whitelist)
--targetlist|--whitelist|--output)
_filedir
return 0
;;
esac

if [[ $cword -eq 1 ]]; then
if [[ $cur == --* ]]; then
COMPREPLY=( $( compgen -W '--interface --channel --band --output --help --version --target --whitelist --targetlist --rate --combine --noactive --rogue --gpsd --autohunt --headless --autoexit --notransmit --nodeauth --notar --dwell' -- "$cur" ) )
COMPREPLY=( $( compgen -W '--interface --channel --band --output --help --version --target-entry --whitelist-entry --targetlist --rate --combine --noactive --rogue --gpsd --autohunt --headless --autoexit --notransmit --notar --disablemouse --dwell --geofence --center --distance --geofence-timeout --disable-deauth --disable-pmkid --disable-anon --disable-csa --disable-disassoc --disable-roguem2' -- "$cur" ) )
elif [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-i -c -b -o -h -V -t -w -r' -- "$cur" ) )
fi
fi
} &&
complete -F _angryoxide angryoxide
complete -F _angryoxide angryoxide
48 changes: 21 additions & 27 deletions completions/zsh_angryoxide_completions
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,37 @@ _angryoxide() {
_arguments -C \
'1: :->command' \
'(-i --interface)'{-i,--interface}'[Interface to use]:interface:_list_wireless_interfaces' \
'(-c --channel)'{-c,--channel}'[Optional - Channel to scan]:channel:' \
'(-c --channel)'{-c,--channel}'[Optional - Channel to scan (default: 1,6,11)]:channel:' \
'(-b --band)'{-b,--band}'[Optional - Entire band to scan]:band:(2 5 6 60)' \
'(-o --output)'{-o,--output}'[Optional - Output filename]:output file:_files' \
'(-h --help)'{-h,--help}'[Print help]' \
'(-V --version)'{-V,--version}'[Print version]' \
'(-t)'{-t}'[Optional - Target (MAC or SSID) to attack]:target:' \
'(-w)'{-w}'[Optional - Whitelist (MAC or SSID) to NOT attack]:whitelist:' \
'(-t --target-entry)'{-t,--target-entry}'[Optional - Target (MAC or SSID) to attack]:target entry:' \
'(-w --whitelist-entry)'{-w,--whitelist-entry}'[Optional - Whitelist (MAC or SSID) to NOT attack]:whitelist entry:' \
'--targetlist[Optional - File to load target entries from]:targets file:_files' \
'--whitelist[Optional - File to load whitelist entries from]:whitelist file:_files' \
'(-r --rate)'{-r,--rate}'[Optional - Attack rate]:rate:(1 2 3)' \
'--combine[Optional - Combine all hc22000 files into one]' \
'(-r --rate)'{-r,--rate}'[Optional - Attack rate (1, 2, 3)]:rate:(1 2 3)' \
'--combine[Optional - Combine all hc22000 files into one large file for bulk processing]' \
'--noactive[Optional - Disable Active Monitor mode]' \
'--rogue[Optional - Tx MAC for rogue-based attacks]:rogue MAC:' \
'--gpsd[Optional - Alter default HOST:Port for GPSD connection]:GPSD HOST:Port:' \
'--rogue[Optional - Tx MAC for rogue-based attacks]:MAC Address:' \
'--gpsd[Optional - Alter default HOST:Port for GPSD connection]:GPSD Host:Port:' \
'--autohunt[Optional - AO will auto-hunt all channels then lock in]' \
'--headless[Optional - Set the tool to headless mode without a UI]' \
'--autoexit[Optional - AO will auto-exit when all targets have a valid hashline]' \
'--notransmit[Optional - Do not transmit - passive only]' \
'--nodeauth[Optional - Do NOT send deauths]' \
'--notar[Optional - Do not tar output files]' \
'--dwell[Optional - Dwell Time (seconds)]:dwell time:'
'--disablemouse[Optional - Disable mouse capture (scroll wheel)]' \
'--dwell[Optional - Adjust channel hop dwell time (seconds)]:Dwell Time (seconds):' \
'--geofence[Optional - Enable geofencing using a specified latlng and distance]' \
'--center[Lat,Lng for geofencing]:CENTER:' \
'--distance[Distance in meters from the center]:DISTANCE:' \
'--geofence-timeout[Timeout to disable geofence if GPS is lost]:GEOFENCE_TIMEOUT:' \
'--disable-deauth[Optional - Do NOT send deauthentication attacks]' \
'--disable-pmkid[Optional - Do NOT attempt to associate for PMKID]' \
'--disable-anon[Optional - Do NOT send anonymous reassociation attacks]' \
'--disable-csa[Optional - Do NOT send Channel Switch Announcement attacks]' \
'--disable-disassoc[Optional - Do NOT send disassociation attacks]' \
'--disable-roguem2[Optional - Do NOT attempt rogue M2 collection]'
}

case $state in
command)
options=(
'--interface[Interface to use]'
'--channel[Optional - Channel to scan]'
'--band[Optional - Entire band to scan]'
'--output[Optional - Output filename]'
'--help[Print help]'
'--version[Print version]'
'--target[Optional - Target to attack]'
'--whitelist[Optional - Whitelist to NOT attack]'
'--targetlist[Optional - File to load target entries from]'
'--whitelist[Optional - File to load whitelist entries from]'
'--rate[Optional - Attack rate]'
'--combine[Combine all hc22000 files into one]'
'--noactive[Disable Active Monitor mode]'
'--rogue[Tx MAC for rogue-based attacks]'
'--gpsd[Alter default
_angryoxide "$@"

0 comments on commit 81c91c6

Please sign in to comment.