Kali BT渗透

在Docker中使用了其它作者的LNMP包,在管理文件时ssh登录总是闪退,经过查询日志,问题在于最后3行.2017-11-0622:20:44.508Prompt(password,"SSHpassword",,"密码(&P):").2017-11-0622:20:44.508Usingstoredpassword..2017-11-0622:20:44.534Sentpassword.2017-11-0622:20:44.593Accessgranted//这里显示登录成功.2017-11-0622:20:44.593Openingsessionasmainchannel.2017-11-0622:20:44.595Openedmainchannel.2017-11-0622:20:44.638Startedashell/command.2017-11-0622:20:44.690--------------------------------------------------------------------------.2017-11-0622:20:44.691UsingSCPprotocol..2017-11-0622:20:44.694Doingstartupconversationwithhost..2017-11-0622:20:44.694Serversentcommandexitstatus254//问题出现,闪退!.2017-11-0622:20:44.694Disconnected:AllchannelsclosedGoogle找到问题原因,这个是因为,默认配置下,启用了超时断开连接功能。把sshd_config文件中的UsePAM改成no就可以了。sshd_config文件说明:OpenSSHSSH服务器守护进程配置文件位置:/etc/ssh/sshd_config进入文件系统修改保存重启sshd服务即可,如是在Docker内,请用dockerps列出容器ID,再用dockerexec命令进入容器修改dockerps//列出容器,获得CONTAINERIDdockerexec-it622c6e26e948/bin/bash//使用容器ID(3b6ec4343647)进入容器管理进入容器后用vi编辑sshd_config文件vi/etc/ssh/sshd_configPS:vi简单使用方法–进入后按下方向键下翻,注意查找UsePAMyes行,光标移动到最后Del删除yes,敲入no,按两次ESC退出编辑模式,输入:wq回车即保存。重启sshd服务servicesshdrestart

Kali BT渗透

0x00下载SSR脚本并安装wgethttps://onlyless.github.io/ssrsudomvssr/usr/local/binsudochmod766/usr/local/bin/ssrssrinstallssrconfigSSR本地备用下载:http://920.ai/softs/SSR/ssr0x01配置SSR一般情况只需要修改以下有注释的地方{"server":"0.0.0.0",//服务器IP地址"server_ipv6":"::","server_port":2333,//端口"local_address":"127.0.0.1","local_port":1080,"password":"password",//密码"method":"aes-256-cfb",//加密方式"protocol":"auth_aes128_md5",//协议"protocol_param":"","obfs":"plain",//混淆方式"obfs_param":"","speed_limit_per_con":0,"speed_limit_per_user":0,"additional_ports":{},"additional_ports_only":false,"timeout":120,"udp_timeout":60,"dns_ipv6":false,"connect_verbose_info":0,"redirect":"","fast_open":false}0x02设置代理禁用NetworkProxy设置浏览器代理以Chrome为例,Firefox的设置类似。在应用商店找到插件ProxySwitchyOmega,添加至Chrome点击图标>>选项>>(左边)新建情景模式,选第一项代理服务器再设置代理协议(Socks5),代理服务器(127.0.0.1),端口(1080)再保存(左下角应用选项)在浏览谷歌等网站的时候点击图标选择Tokyo(自己定的名字)的就可以了0x03SSR开机自启cd/etc/init.dtouchssrchmod+xssrvimssr其中ssr的内容为#!/bin/sh###BEGININITINFO#Provides:ssr#Required-Start:$network$remote_fs$local_fs#Required-Stop:$network$remote_fs$local_fs#Default-Start:2345#Default-Stop:016#Short-Description:ssr#Description:shadowsocks###ENDINITINFOnohupssrstart>/dev/null2>&1&exit0设置为开机自启update-rc.dssrdefaults0x04参考资料SSR安装及配置参考:https://www.djangoz.com/2017/08/16/linux_setup_ssr/有关添加自定义开机启动项参考:https://blog.ilemonrain.com/linux/linux-startup-run.html

2019-3-2 2456 0
2019-2-18 3622 0
Kali BT渗透

刚装完Kali之后当然是先弄个酸酸乳代理,方便科学冲浪:好多人都用过代理,但可能大部分却都不太了解代理是如何工作的,我在这里给大家简单介绍一下,不涉及底层知识,相信很容易理解!123首先通过proxychains将本地流量发往localhost的1080端口localhost的1080端口和VPS的8080端口通过shadowsocksr建立ssr连接本地流量->localhost1080->VPS8080->目标站点以上就是ss代理的流程,是不是感觉很简单,下面我给大家演示一下如何配置*配置proxychainsvim/etc/proxychains.conf将dynamic_chain前面的注释去掉,再将[ProxyList]下的socks4改为socks5,并且127.0.0.1后面的端口改为1080*安装SSR之前使用的ss-qt5感觉老出问题,比较麻烦,而且配置比较复杂,这个ssr配置简单下载SSR脚本:wgethttps://onlyless.github.io/ssrsudomvssr/usr/local/binsudochmod766/usr/local/bin/ssr安装SSR:ssrinstall配置SSR:ssrconfig{"server":"0.0.0.0",//服务器IP地址"server_ipv6":"::","server_port":2333,//端口"local_address":"127.0.0.1","local_port":1080,"password":"password",//密码"method":"aes-256-cfb",//加密方式"protocol":"auth_aes128_md5",//协议"protocol_param":"","obfs":"plain",//混淆方式"obfs_param":"","speed_limit_per_con":0,"speed_limit_per_user":0,"additional_ports":{},"additional_ports_only":false,"timeout":120,"udp_timeout":60,"dns_ipv6":false,"connect_verbose_info":0,"redirect":"","fast_open":false}配置完之后保存,ssr就会自动启动,查看本地1080端口:设置浏览器或系统代理ssr的启动和关闭方式为:ssrstartssrstop执行proxyresolvwww.google.com报错找不到命令:root@bigzero:~#cp/usr/lib/proxychains3/proxyresolv/usr/bin/然后执行proxyresolvwww.google.comroot@bigzero:~#proxyresolvwww.google.com|S-chain|-<>-127.0.0.1:1080-<><>-4.2.2.2:53-<><>-OK172.217.11.68说明没问题,使用proxychainfirefox命令启动火狐浏览器:root@bigzero:~#proxychainsfirefox火狐浏览器设置代理:打开Google测试下,很nice:转载来自http://www.cnblogs.com/pythonal/p/9301350.html

2019-1-22 2380 0