forked from TideSec/WDScanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy-ip.php
41 lines (31 loc) · 980 Bytes
/
proxy-ip.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
require(dirname(__FILE__).'/include/config.inc.php');
/**
* Created by PhpStorm.
* User: xysoul
* Date: 17/7/23
* Time: 下午9:19
*/
#echo "1111";
$cfg['db_host'] = 'localhost'; // 数据库服务器
$cfg['db_name'] = 'wdscan'; // 数据库名
$cfg['db_user'] = 'root'; // 数据库用户名
$cfg['db_pass'] = '123456'; // 数据库密码
$cfg['db_charset'] = 'utf-8'; //数据库编码
$cfg['db_pre'] = ''; //表前缀
$mode = $_GET['m'];
$db = new Mysql($cfg['db_host'],$cfg['db_user'],$cfg['db_pass'],$cfg['db_name'],$cfg['db_charset'],$cfg['db_charset'],$cfg['db_pre']);
$sql = "SELECT * FROM valid_ip order by score desc";
$results = $db->query($sql);
if (mysql_num_rows($results) > 0){
$i = 1;
while ($fs = $db->fetch_array($results))
{
echo $fs["0"];
echo '<br>';
$i ++;
}}
#print $html_str;
else{
print "False";}
?>