查找了许多资料,实现了客户端与服务器端的连接,通过虚拟机进行测试 服务器端IP:192.168.37.129 端口1122 客户端IP: 192.168.37.1 端口1122 Server: Client: 测试数据: ...
分类:
编程语言 时间:
2017-07-23 09:59:23
阅读次数:
152
locate 查找包含你想要找的东西 例如:locate hosts [root@master mail]# locate hosts/etc/hosts/etc/hosts.allow/etc/hosts.deny/etc/selinux/targeted/modules/active/modul ...
分类:
其他好文 时间:
2017-07-22 16:59:53
阅读次数:
131
背景permissiondenied即权限拒绝没有权限,是我们常见的故障之一。接下来我们以3个例子说明一下。题目[oldboy@show~]$whoami
oldboy
[oldboy@show~]$ls/root/
ls:cannotopendirectory/root/:Permissiondenied
[oldboy@show~]$rm-f/etc/passwd
rm:cannotremove`/etc/passwd‘:Pe..
分类:
其他好文 时间:
2017-07-19 17:44:24
阅读次数:
222
不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定 在全新安装的IIS7下搭建网站,访问页面时出现错误信息如下:配置错误 不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是 ...
分类:
其他好文 时间:
2017-07-14 14:51:01
阅读次数:
123
x-frame-options漏洞,此漏洞是防止外部网页iframe此网站 nginx 解决方法在server中加入 add_header X-Frame-Options SAMEORIGIN 三个选项分别是: DENY:浏览器拒绝当前页面加载任何Frame页面 SAMEORIGIN:frame页面 ...
分类:
Web程序 时间:
2017-07-14 00:45:28
阅读次数:
183
组网图: 配置信息: 左边nigx 服务器的 /usr/local/nginx/conf/nginx.conf #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; ...
分类:
Web程序 时间:
2017-07-13 10:45:51
阅读次数:
159
lastb|lesslastb|taillastb|head可以写个脚本,失败多少次后,就扔到/etc/hosts.deny里面去如:lastb|awk‘{print$3}‘|sort|uniq-c|sort-rn|awk‘{print$2}‘|head-25|whilereadL;doecho"sshd:$L">>/etc/hosts.deny;done不生效可能是因为ldd/usr/sbin/sshd后没找到libwrap.s..
分类:
其他好文 时间:
2017-07-06 13:27:23
阅读次数:
169
以下是Linux系统常用的一些iptables规则: 清除已有iptables规则 iptables -F 是清空所有的规则,请谨慎使用,因为ssh远程连接服务器会马上断开.(警告:这只适合在没有配置防火墙的环境中,如果已经配置过默认规则为deny的环境,此步骤将使系统的所有网络访问中断) ipta ...
分类:
其他好文 时间:
2017-07-04 14:37:27
阅读次数:
110
第一步:修改 xampp\apache\conf\httpd.conf 找到<Directory /> AllowOverride none Require all denied</Directory>修改为: <Directory /># AllowOverride none# Require a ...
分类:
Web程序 时间:
2017-07-04 11:05:31
阅读次数:
262