1.编辑虚拟主机文件vim/usr/local/apache2/conf/extra/httpd-vhosts.conf编辑<IfModulemod_rewrite.c>模块,在底部加入:RewriteCond%{REQUEST_URI}^.*/tmp/.*[NC]RewriteRule.*-[F]---禁止用户访问到/tmp目录下的文件.
分类:
Web程序 时间:
2016-06-08 17:19:29
阅读次数:
174
1,端口扫描端口扫描经常被系统管理员和黑客用来发现在一些机器上开放的端口,帮助他们识别系统中的漏洞。nc-zvn172.16.160.11121-25可以运行在TCP或者UDP模式,默认是TCP,-u参数调整为udp.##udp测试无论检测什么端口都是successedz参数告诉netcat使用0IO,连接成功后立即关闭..
分类:
Web程序 时间:
2016-06-02 20:11:18
阅读次数:
321
1.在nginx中开启状态模板[root@web03~]#vim/usr/local/nginx-1.8.0/conf/nginx.conflocation/stat{stub_statuson;access_logoff;allow本机的IP地址;#只允许本机访问denyall;}2.写出监控nginx的脚本[root@web03~]#vim/home/shell/nc_nginx_check.sh#!/bin/bash#Scripttofetchngi..
分类:
其他好文 时间:
2016-05-13 05:13:18
阅读次数:
245
一个DP
用矩阵快速幂加速
然后这个DP状态比较巧妙 以边作状态
#include
#include
#include
#include
#define cl(x) memset(x,0,sizeof(x))
using namespace std;
inline char nc()
{
static char buf[100000],*p1=buf,*p2=buf;
if (...
分类:
其他好文 时间:
2016-05-13 02:39:40
阅读次数:
237
跟省选day2讲的一道题好像...
#include
#include
#include
#include
#include
using namespace std;
inline char nc()
{
static char buf[100000],*p1=buf,*p2=buf;
if (p1==p2) { p2=(p1=buf)+fread(buf,1,100000,std...
分类:
其他好文 时间:
2016-05-13 02:32:08
阅读次数:
250
就是个裸题了
#include
#include
#include
#include
#define cl(x) memset(x,0,sizeof(x))
using namespace std;
typedef long long ll;
inline char nc()
{
static char buf[100000],*p1=buf,*p2=buf;
if (p1==p2...
分类:
其他好文 时间:
2016-05-13 02:29:07
阅读次数:
413
CA爷的题解:http://blog.csdn.net/CreationAugust/article/details/50739132
#include
#include
#include
#include
using namespace std;
inline char nc()
{
static char buf[100000],*p1=buf,*p2=buf;
if (p1=...
分类:
其他好文 时间:
2016-05-13 02:06:38
阅读次数:
165
考虑CDQ分治 把这半边对后半边没有影响的操作做了 然后分治
用并查集维护 开个栈暴力还原
#include
#include
using namespace std;
inline char nc()
{
static char buf[100000],*p1=buf,*p2=buf;
if (p1==p2) { p2=(p1=buf)+fread(buf,1,100000,s...
分类:
其他好文 时间:
2016-05-13 01:38:21
阅读次数:
210
跟悬线法有点像
#include
#include
#include
#include
#define cl(x) memset(x,0,sizeof(x))
using namespace std;
inline char nc()
{
static char buf[100000],*p1=buf,*p2=buf;
if (p1==p2) { p2=(p1=buf)+fread...
分类:
编程语言 时间:
2016-05-13 01:34:49
阅读次数:
248