Veil-Framework / Veil

Veil 3.1.X (Check version info in Veil at runtime)
GNU General Public License v3.0
3.96k stars 881 forks source link

[BUG] pressing tab is completing MAC address instead of local IP address #509

Open disc0nct opened 9 months ago

disc0nct commented 9 months ago

Veil version

3.1.14

OS Used - all info (architecture, linux flavor, etc)

Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2023.4 Codename: kali-rolling Linux Disc0nect-Machine 6.5.0-kali3-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.6-1kali1 (2023-10-09) x86_64 GNU/Linux

How did you install Veil? (Apt, Clone from Github, etc.)

APT

Did you run the setup script?

YES

Pastebin link to error you are encountering (include console actions you took prior to error)

[NONE]

Expected behavior

complete the IP address instead of MAC address

Any additional info you want to tell me

When I change the interface to wlan0 from eth0 in /usr/share/veil/lib/common/completer.py, the completion works fine but when set back to eth0, it completes the MAC address. So using this command, ip addr | awk '/state UP/ {print $2}' | sed 's/.$//' outputs the current working interface hope this help you fix the issue.