作者:admin 发布于:2012-9-23 23:13 Sunday
分类:Windows
23Sep
/*
* MS11-080 Afd.sys Privilege Escalation Exploit
* 来源:Matteo Memelli,http://www.exploit-db.com/exploits/18176/
* 改编:KiDebug,Google@pku.edu.cn
* 编译:VC++6.0
* 测试环境:原版Windows XP SP3,Windows 2003 SP2,普通用户 & webshell*
*/
#include <stdio.h>
#include <Winsock2.h>
#include <windows.h>
#include <lm.h>
#pragma com...
阅读全文>>
标签: MS11-080
评论(0)
引用(204)
浏览(62160)
作者:admin 发布于:2012-9-22 15:16 Saturday
分类:.NET
22Sep
public string formatSize(long size)
{
if (size == 0) return "0";
string[] sizetext = new string[] { " B", " KB", " MB", " GB", " TB", " PB" };
int i = (int)Math.Floor(Math.Log(size, 1024));
return Math.Round(size / Math.Pow(1024, i), 2).ToString() + sizetext[i];
}
阅读全文>>
评论(0)
引用(95)
浏览(59371)
作者:admin 发布于:2012-9-22 15:14 Saturday
分类:PHP
22Sep
function format($size)
{
$sizetext = array(" B", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB");
return round($size/pow(1024,($i=floor(log($size,1024)))),2).$sizetext[$i];
}
阅读全文>>
评论(0)
引用(53)
浏览(61077)
作者:admin 发布于:2012-9-22 13:25 Saturday
分类:PHP
22Sep
<?php
/**
* @author ponley
* @copyright 2012
* @copyright www.ponley.com
* @copyright ponley@foxmail.com
*/
//要过滤的非法字符
$ArrFiltrate=array("'","%27","union",";");
//出错后要跳转的url,不填则默认前一页
$StrGoUrl="";
//是否存在数组中的值
function FunStringExist($StrFiltrate,$ArrFiltrate){
foreach ($ArrFiltrate as $key=>$value)
{...
阅读全文>>
标签: php防注入
评论(0)
引用(835)
浏览(260544)
作者:admin 发布于:2012-9-22 8:54 Saturday
分类:PHP
22Sep
$x == '123456' ? 'yes' : "no";
如果 $x的值等于123456
则输出yes,否则输出no
阅读全文>>
标签: 三元表达式
评论(0)
引用(51)
浏览(60373)