开始使用kali的一些小问题:菜鸟瞎折腾

nat与桥接转换后,网卡 ip显示不正常:

ip a   # 查看
  • 释放ip:
  dhclient -t thh0   # 人工释放
  • 重启
dhclient -v thh0 

不能ping通域名(可能是dns的问题): 要将之改为本地的地址

vim  /etc/resolv.conf  # 修改dns配置文件

开启22端口:

  • 修改 sudo vim /etc/ssh/sshd_config
  • 将PasswordAuthentication 的no改成yes, 去掉注释
  • 将#PermitRootLogin yes的注释去掉
  • 保存退出
  • /etc/init.d/ssh startservice ssh start # 启动SSH服务
    -/etc/init.d/ssh statusservice ssh status #查看SSH服务状态是否正在运
  • Systemctl enable ssh # 设置为开机自起
  • Systemctl status ssh # 查看状态

Wireshark启动报错

usr/share/wireshark/init.lua 倒数第二行改为:--dofile(DATA_DIR.."console.lua"), 某些情况需要把导数第三行第四行也注释掉

安装deb安装包

dpkg -i name.deb
apt install ./name.deb

查看版本

lsb release -a
cat /etc/os-release

posted @ 2019-03-01 09:13  此时相望不相闻  阅读(148)  评论(0编辑  收藏  举报