远程服务器系统:debian 9

工具:Finalshell管理工具 #在Windows上安装Finalshell方便管理远程linux

1、利用Finalshell连接上远程服务器

在百度云的debian 9镜像中并不自带apt只有apt-get为了,而且源里面也没有apt,为了方便我导入了debian 163的源和kali的源
root@instance-ce9256h8:~# vim /etc/apt/sources.list #添加下163的源和kali的源
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb http://http.kali.org/kali kali-rolling main non-free contrib
然后按ESC在按shift+:在输入qw!保存退出
保存好后执行检查源:
root@instance-ce9256h8:~# apt-get update #注意不要执行apt-get upgrade ,update只是检查 upgrade是更新整个系统
如遇到以下错误:
Err:44 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
Reading package lists... Done
W: GPG error: http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
缺少ED444FF07D8D0BF6gpg公匙错误
root@instance-ce9256h8:~# apt-get install dirmngr #安装dirmngr
root@instance-ce9256h8:~# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ED444FF07D8D0BF6 #在keyserver.ubuntu.com上获取ED444FF07D8D0BF6这个公匙
root@instance-ce9256h8:~# apt-get install apt #安装apt
我们之前导入了kali的源安装常用工具:nmap weevely sqlmap dnsmap metasploit hydra wireshark aircrack-ng wget curl zenmap
root@instance-ce9256h8:~# apt install nmap
root@instance-ce9256h8:~# apt install weevely
root@instance-ce9256h8:~# apt install dnsmap
root@instance-ce9256h8:~# apt install curl
root@instance-ce9256h8:~# apt install hydra
root@instance-ce9256h8:~# apt install wget
root@instance-ce9256h8:~# curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
root@instance-ce9256h8:~# chmod +x ./msfinstall && ./msfinstall
root@instance-ce9256h8:~# apt install wireshark
root@instance-ce9256h8:~# apt install aircrack-ng
root@instance-ce9256h8:~# apt install zenmap
安装完后环境就安装好了就可以开始测试了

0

正因为生来什么都没有,因此我们能拥有一切。