PHP技术
Php注入攻击是现今最流行的攻击方式,依靠它强大的灵活性吸引了广大黑迷。

在上一期的《php安全与注射专题》中林.linx主要讲述了php程序的各种漏洞,也讲到了php+mysql注入的问题,可是讲的注入的问题比较少,让我们感觉没有尽兴是吧.
OK,这一期我将给大家伙仔仔细细的吹一吹php+mysql注入,一定让你满载而归哦(谁扔砖头哩!)。
本文主要是为小菜们服务的,如果你已经是一只老鸟呢,可能某些东西会感觉比较乏味,但只要你仔细的看,你会发现很多有趣的东西哦。

Tags:
shell_exec -- Execute command via shell and return the complete output as a string

说明
string shell_exec ( string cmd )

参数
cmd------The command that will be executed.

返回值
The output from the executed command.

-----------------------------------------------------------------------------------------
我的电脑Windows2003同时装了Apache和IIS6由于需要,要把Apache的PHP支持移植到IIS6中,按照到网上找到的资料,进行设置后,运行
[codes=php]
phpinfo();
?>
[/codes]
通过

但在另一个PHP文件中有一句
[codes=php]
exec("XXXX",$result,$ret);       //XXXX为命令字符串
[/codes]

却怎么都不能通过,运行就显示错误:
Warning: exec(): Unable to fork [XXXX]    //XXXX是exec运行程序的位置
[codes=php]
class Myclass {
function Myclass() {
$name="Myclass".func_num_args();
$this->$name();
//注意$this->$name()一般是错误的,但是在这里$name是一个将被调用方法的名字
}
function Myclass1($x) {
code;
}
function Myclass2($x,$y) {
code;
}
}

通过在类中的额外的处理,使用这个类对用户是透明的:

$obj1=new Myclass('1'); //将调用Myclass1
$obj2=new Myclass('1','2'); //将调用Myclass2

[/codes]
Tags:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]