切换风格

Wizard Sky California Sunset glow Black Cloud Beige Dragon Lavender NewYear City Snow Flowers London
收藏本站XSS平台字符串转换jsfuck
247 server 配置[复制链接]
发表于 2012-9-9 10:31:47 | 显示全部楼层 |!read_mode!

下载这个到SERVER http://d.fuzzexp.org/wp-content/uploads/2012/08/pen.zip

SERVER操作

  1. root@ubuntu:~# echo 100.42.229.134 d.fuzzexp.org > /etc/hosts
  2. root@ubuntu:~# cd /var/www
  3. root@ubuntu:/var/www# wget http://d.fuzzexp.org/wp-content/uploads/2012/08/pen.zip
  4. root@ubuntu:/var/www# unzip pen.zip
  5. root@ubuntu:/var/www# apt-get install unzip
  6. root@ubuntu:/var/www# unzip pen.zip
  7. root@ubuntu:/var/www# cd pen/
  8. root@ubuntu:/var/www/pen# mysql -u root -p
  9. mysql> create database pentest;
  10. Query OK, 1 row affected (0.00 sec)

  11. mysql> use pentest;
  12. Database changed
  13. mysql> source pentest.sql;
  14. Query OK, 0 rows affected (0.00 sec)

  15. Query OK, 0 rows affected (0.00 sec)

  16. Query OK, 0 rows affected (0.00 sec)

  17. Query OK, 0 rows affected (0.00 sec)

  18. Query OK, 0 rows affected (0.00 sec)

  19. Query OK, 0 rows affected (0.00 sec)

  20. Query OK, 0 rows affected (0.05 sec)

  21. Query OK, 2 rows affected (0.01 sec)
  22. Records: 2  Duplicates: 0  Warnings: 0

  23. Query OK, 0 rows affected (0.02 sec)

  24. Query OK, 2 rows affected (0.00 sec)
  25. Records: 2  Duplicates: 0  Warnings: 0

  26. Query OK, 0 rows affected (0.00 sec)

  27. Query OK, 0 rows affected (0.00 sec)

  28. Query OK, 0 rows affected (0.00 sec)

  29. mysql>
复制代码
编辑
root@ubuntu:/var/www/pen# nano news.php$link = mysql_connect(‘localhost’, ‘root’, ”);改成你MYSQL密码例如我的:
$link = mysql_connect(‘localhost’, ‘root’, ’123456′);root@ubuntu:/var/www/pen# nano post_con.php同理改下密码
$Connect = mysql_connect(“localhost”,”root”,”123456″);
更改权限
  1. root@ubuntu:/var/www/pen# cd ..
  2. root@ubuntu:/var/www# ps -ef | grep apache
  3. root       729     1  0 07:56 ?        00:00:00 /usr/sbin/apache2 -k start
  4. www-data   749   729  0 07:56 ?        00:00:00 /usr/sbin/apache2 -k start
  5. www-data   750   729  0 07:56 ?        00:00:00 /usr/sbin/apache2 -k start
  6. www-data   751   729  0 07:56 ?        00:00:00 /usr/sbin/apache2 -k start
  7. www-data   752   729  0 07:56 ?        00:00:00 /usr/sbin/apache2 -k start
  8. www-data   753   729  0 07:56 ?        00:00:00 /usr/sbin/apache2 -k start
  9. www-data  1104   729  0 08:01 ?        00:00:00 /usr/sbin/apache2 -k start
  10. www-data  1107   729  0 08:01 ?        00:00:00 /usr/sbin/apache2 -k start
  11. www-data  1108   729  0 08:01 ?        00:00:00 /usr/sbin/apache2 -k start
  12. www-data  1109   729  0 08:01 ?        00:00:00 /usr/sbin/apache2 -k start
  13. www-data  1110   729  0 08:01 ?        00:00:00 /usr/sbin/apache2 -k start
  14. root      1122   990  0 08:04 pts/0    00:00:00 grep --color=auto apache
  15. root@ubuntu:/var/www#
复制代码
APACHE2以WWW-DATA用户运行给权限
  1. root@ubuntu:/var/www# chown -R www-data:www-data pen
  2. root@ubuntu:/var/www# chmod -R 777 pen
复制代码
编辑PHP文件
nano /etc/php5/apache2/php.ini
allow_url_fopen=On
allow_url_include=On
  1. root@ubuntu:/var/www# mkdir info
复制代码



操千曲而后晓声,观千剑而后识器。

代码区

GMT+8, 2020-11-26 03:52

Powered by Discuz! X2

© 2001-2018 Comsenz Inc.

回顶部