兔八哥极品软件园    运行: 4523天 | 文章:640 篇 | 评论:615 条 | 碎语:1条

MS11-080 Exploit 源码

作者:admin 发布于:2012-9-23 23:13 Sunday 分类:Windows

/*
* 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) 浏览(62006)

C#格式化文件大小

作者:admin 发布于:2012-9-22 15:16 Saturday 分类:.NET

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) 浏览(59226)

PHP格式化文件大小

作者:admin 发布于:2012-9-22 15:14 Saturday 分类:PHP

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) 浏览(60972)

php防注入代码收藏

作者:admin 发布于:2012-9-22 13:25 Saturday 分类:PHP

<?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) 浏览(260338)

php 三元表达式用法

作者:admin 发布于:2012-9-22 8:54 Saturday 分类:PHP

$x == '123456'  ? 'yes' : "no";
如果 $x的值等于123456 
则输出yes,否则输出no

阅读全文>>

标签: 三元表达式

评论(0) 引用(51) 浏览(60201)


Powered by 兔八哥极品软件 苏ICP备12049267号 sitemap