deb https://mirrors.huaweicloud.com/kali kali-rolling main non-free contrib deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib deb https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free deb https://http.kali.org/kali kali-rolling main non-free contrib
#deb-src https://mirrors.huaweicloud.com/kali kali-rolling main non-free contrib #deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib #deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib #deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free #deb-src http://http.kali.org/kali kali-rolling main non-free contrib
安装apt-fast加速更新源
1
vim /etc/apt/sources.list.d/apt-fast.list
1 2
deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/apt-fast.gpg] http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic main #deb-src [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/apt-fast.gpg] http://ppa.launchpad.net/apt-fast/stable/ubuntu bionic main
目前显示的信息 Linux kali 5.18.0-kali7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1kali1 (2022-08-31) x86_64
The programs included with the Kali GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Oct 9 17:04:06 2022 from 10.0.0.1 ┏━(Message from Kali developers) ┃ ┃ This is a minimal installation of Kali Linux, you likely ┃ want to install supplementary tools. Learn how: ┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/ ┃ ┗━(Run: “touch ~/.hushlogin” to hide this message)
❯ cat /etc/issue.net Kali GNU/Linux Rolling 网络登陆显示的信息,登录后显示,需要由sshd配置
1 2 3 4 5 6 7 8
❯ cat /etc/motd
The programs included with the Kali GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
1 2 3 4
ls /etc/profile.d/ 查看这里的文件 ❯ ls /etc/profile.d/ kali.sh sysinfo.sh
发现还有信息 Linux kali 5.18.0-kali7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1kali1 (2022-08-31) x86_64 Last login: Sun Oct 9 17:32:27 2022 from 10.0.0.1
接着查找 grep -nr "Linux kali 5.18.0-kali7-amd64" /
发现 此文件 /run/motd.dynamic ❯ cat /run/motd.dynamic Linux kali 5.18.0-kali7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1kali1 (2022-08-31) x86_64
# don't edit below here functiondisplay() { # $1=name $2=value $3=red_limit $4=minimal_show_limit $5=unit $6=after $7=acs/desc{ # battery red color is opposite, lower number if [[ "$1" == "Battery" ]]; then local great="<"; else local great=">"; fi if [[ -n "$2" && "$2" > "0" && (( "${2%.*}" -ge "$4" )) ]]; then printf"%-14s%s""$1:" if awk "BEGIN{exit ! ($2$great$3)}"; then echo -ne "\e[0;91m $2"; else echo -ne "\e[0;92m $2"; fi printf"%-1s%s\x1B[0m""$5" printf"%-11s%s\t""$6" return 1 fi } # display
functionget_ip_addresses() { local ips=() for f in /sys/class/net/*; do local intf=$(basename$f) # match only interface names starting with e (Ethernet), br (bridge), w (wireless), r (some Ralink drivers use ra<number> format) if [[ $intf =~ $SHOW_IP_PATTERN ]]; then local tmp=$(ip -4 addr show dev $intf | awk '/inet/ {print $2}' | cut -d'/' -f1) # add both name and IP - can be informative but becomes ugly with long persistent/predictable device names #[[ -n $tmp ]] && ips+=("$intf: $tmp") # add IP only [[ -n $tmp ]] && ips+=("$tmp") fi done echo"${ips[@]}" } # get_ip_addresses
# query various systems and send some stuff to the background for overall faster execution. # Works only with ambienttemp and batteryinfo since A20 is slow enough :) storage_info critical_load=$(( 1 + $(grep -c processor /proc/cpuinfo) / 2 ))
+++ AHCI Link Power Management (ALPM) No AHCI-enabled host controller detected.
+++ AHCI Host Controller Runtime Power Management /sys/bus/pci/devices/0000:00:01.1/ata1/power/control = on /sys/bus/pci/devices/0000:00:01.1/ata2/power/control = on
+++ Wireless bluetooth = none (no device) wifi = none (no device) wwan = none (no device)
+++ Audio
+++ PCIe Active State Power Management /sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave (using BIOS preferences)
+++ Runtime Power Management Device blacklist = (not configured) Driver blacklist = amdgpu mei_me nouveau nvidia pcieport radeon
/sys/bus/pci/devices/0000:00:00.0/power/control = on (0x060000, Host bridge, no driver) /sys/bus/pci/devices/0000:00:01.0/power/control = on (0x060100, ISA bridge, no driver) /sys/bus/pci/devices/0000:00:01.1/power/control = on (0x010180, IDE interface, ata_piix) /sys/bus/pci/devices/0000:00:01.2/power/control = on (0x0c0300, USB controller, uhci_hcd) /sys/bus/pci/devices/0000:00:01.3/power/control = on (0x068000, Bridge, piix4_smbus) /sys/bus/pci/devices/0000:00:02.0/power/control = on (0x030000, VGA compatible controller, cirrus) /sys/bus/pci/devices/0000:00:03.0/power/control = on (0x060400, PCI bridge, no driver) /sys/bus/pci/devices/0000:00:04.0/power/control = on (0x060400, PCI bridge, no driver) /sys/bus/pci/devices/0000:00:05.0/power/control = on (0x020000, Ethernet controller, virtio-pci) /sys/bus/pci/devices/0000:00:06.0/power/control = on (0x010000, SCSI storage controller, virtio-pci) /sys/bus/pci/devices/0000:00:07.0/power/control = on (0x00ff00, Unclassified device [00ff], virtio-pci)