Mam drobny problem, ponieważ nie mogę użyć powyższych komend jako root, co jest dla mnie co najmniej dziwne.
Oczywiście posiadam zainstalowany pakiet net-tools i w folderze /sbin/ widzę, że dla administratora polecenia iwconfig i ifconfig są dostępne. Mogę je uruchomić z poziomu zwykłego użytkownika z użyciem komendy sudo, lub z poziomu roota, ale tylko wtedy, gdy wpiszę pełną ścieżkę do folderu /sbin/. Mniej więcej wygląda to tak:
Kod: Zaznacz cały
daniel@highlander:~$ sudo ifconfig
[sudo] hasło użytkownika daniel:
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 18:db:f2:44:4d:5c txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8 bytes 396 (396.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 396 (396.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.4 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::5afb:84ff:fed2:66df prefixlen 64 scopeid 0x20<link>
ether 58:fb:84:d2:66:df txqueuelen 1000 (Ethernet)
RX packets 926 bytes 513945 (501.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 697 bytes 186193 (181.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
daniel@highlander:~$ sudo iwconfig
wlan0 IEEE 802.11 ESSID:"Krystel Net"
Mode:Managed Frequency:2.447 GHz Access Point: 80:B5:75:C7:4C:D0
Bit Rate=72.2 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=63/70 Signal level=-47 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:19 Missed beacon:0
eth0 no wireless extensions.
lo no wireless extensions.
daniel@highlander:~$ su
Hasło:
root@highlander:/home/daniel# ifconfig
bash: ifconfig: nie znaleziono polecenia
root@highlander:/home/daniel# iwconfig
bash: iwconfig: nie znaleziono polecenia
root@highlander:/home/daniel# /sbin/iwconfig
wlan0 IEEE 802.11 ESSID:"Krystel Net"
Mode:Managed Frequency:2.447 GHz Access Point: 80:B5:75:C7:4C:D0
Bit Rate=72.2 Mb/s Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=70/70 Signal level=-40 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:24 Missed beacon:0
eth0 no wireless extensions.
lo no wireless extensions.
root@highlander:/home/daniel# /sbin/ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 18:db:f2:44:4d:5c txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8 bytes 396 (396.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 396 (396.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.4 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::5afb:84ff:fed2:66df prefixlen 64 scopeid 0x20<link>
ether 58:fb:84:d2:66:df txqueuelen 1000 (Ethernet)
RX packets 952 bytes 522644 (510.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 725 bytes 193884 (189.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@highlander:/home/daniel# i
i386 ike-scan impacket-samrdump innotop ipcs
iasecc-tool ilbmtoppm impacket-secretsdump install iptables-xml
iaxflood ils impacket-smbserver install-menu irb
icat imagetops impacket-wmiexec install-printerdriver irb2.5
iceauth img2png import instmodsh ischroot
ico img2py import-im6 intel-virtual-output isdv4-serial-debugger
icontopbm img2xpm import-im6.q16 intersect isdv4-serial-inputattach
iconv img_cat in intrace isodump
id img_stat inetsim inviteflood isoinfo
identify imgtoppm infocmp ionice isotype.py
identify-im6 impacket-GetUserSPNs infotocap iostat isovfy
identify-im6.q16 impacket-netview inimf ip ispell-wrapper
if impacket-ntlmrelayx initex ipcmk istat
ifind impacket-rpcdump innochecksum ipcrm ivstools
root@highlander:/home/daniel#
System:
Kod: Zaznacz cały
root@highlander:/home/daniel# cat /etc/debian_version
kali-rolling