├── libs
├── __init__.py
├── ssl
│ ├── mitmproxy-ca-cert.p12
│ ├── mitmproxy-dhparam.pem
│ ├── mitmproxy-ca-cert.cer
│ ├── mitmproxy-ca-cert.pem
│ └── mitmproxy-ca.pem
├── func.py
├── models.py
├── proxy.py
├── action.py
└── wyproxy.py
├── .gitignore
├── pics
├── https1.png
├── index1.png
├── vuln1.png
├── vuln2.png
├── https_cmd.png
├── key_trust.png
├── showlog1.png
├── showtask1.png
├── showtask2.png
├── showtask3.png
├── key_manager.png
└── https_showtask.png
├── static
├── images
│ ├── logo.png
│ ├── onError.gif
│ ├── onFocus.gif
│ ├── onShow.gif
│ ├── tab-thbg.png
│ ├── onCorrect.gif
│ └── login
│ │ └── admin-login-btnbg.gif
├── fonts
│ ├── icomoon.eot
│ ├── icomoon.ttf
│ ├── icomoon.woff
│ └── icomoon.svg
├── js
│ ├── myjs
│ │ ├── main.js
│ │ └── function.js
│ └── libs
│ │ └── modernizr.min.js
└── css
│ ├── main.css
│ ├── admin_login.css
│ └── common.css
├── config.xml
├── CHANGELOG.md
├── test.log
├── templates
├── left.html
├── login.html
├── header.html
├── showtask.html
├── index.html
├── status.html
├── startask.html
├── insert.html
└── info.html
├── README.md
├── foxscan.sql
└── views.py
/libs/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | .pyc
3 |
--------------------------------------------------------------------------------
/pics/https1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/https1.png
--------------------------------------------------------------------------------
/pics/index1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/index1.png
--------------------------------------------------------------------------------
/pics/vuln1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/vuln1.png
--------------------------------------------------------------------------------
/pics/vuln2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/vuln2.png
--------------------------------------------------------------------------------
/pics/https_cmd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/https_cmd.png
--------------------------------------------------------------------------------
/pics/key_trust.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/key_trust.png
--------------------------------------------------------------------------------
/pics/showlog1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/showlog1.png
--------------------------------------------------------------------------------
/pics/showtask1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/showtask1.png
--------------------------------------------------------------------------------
/pics/showtask2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/showtask2.png
--------------------------------------------------------------------------------
/pics/showtask3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/showtask3.png
--------------------------------------------------------------------------------
/pics/key_manager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/key_manager.png
--------------------------------------------------------------------------------
/pics/https_showtask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/pics/https_showtask.png
--------------------------------------------------------------------------------
/static/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/images/logo.png
--------------------------------------------------------------------------------
/static/fonts/icomoon.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/fonts/icomoon.eot
--------------------------------------------------------------------------------
/static/fonts/icomoon.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/fonts/icomoon.ttf
--------------------------------------------------------------------------------
/static/fonts/icomoon.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/fonts/icomoon.woff
--------------------------------------------------------------------------------
/static/images/onError.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/images/onError.gif
--------------------------------------------------------------------------------
/static/images/onFocus.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/images/onFocus.gif
--------------------------------------------------------------------------------
/static/images/onShow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/images/onShow.gif
--------------------------------------------------------------------------------
/static/images/tab-thbg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/images/tab-thbg.png
--------------------------------------------------------------------------------
/static/images/onCorrect.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/images/onCorrect.gif
--------------------------------------------------------------------------------
/libs/ssl/mitmproxy-ca-cert.p12:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/libs/ssl/mitmproxy-ca-cert.p12
--------------------------------------------------------------------------------
/static/images/login/admin-login-btnbg.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fengxuangit/Fox-scan/HEAD/static/images/login/admin-login-btnbg.gif
--------------------------------------------------------------------------------
/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 127.0.0.1
4 | root
5 | 123480
6 | 3306
7 | foxscan
8 | utf8
9 |
10 |
11 | http://127.0.0.1:8775
12 |
13 |
14 | .php,.asp,.aspx,.jsp,.jspx
15 | .ico,.flv,.js,.css,.jpg,.png,.jpeg,.gif,.pdf,.ss3,.txt,.rar,.zip,.avi,.mp4,.swf,.wmi,.exe,.mpeg
16 |
17 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | ## v0.0.1 (2016-09-05)
4 |
5 | ### BUG FIX
6 | - 修复不能实时刷新新数据问题
7 |
8 | ### FEATURE
9 | - 添加自动保存成功数据功能
10 |
11 |
12 | ## v0.0.2 (2016-09-06)
13 |
14 | ### FEATURE
15 | - 任务展示页点击LOG按钮显示扫描日志功能
16 |
17 |
18 | ## v0.0.3 (2016-09-14)
19 |
20 | ### BUGFIX
21 | - 修复windows路径报错问题
22 | - 修复需要ipdb第三方包的问题
23 | - 修复root密码为空报错问题
24 |
25 |
26 | ## v0.1.0 (2016-10-04)
27 |
28 | ### BUGFIX
29 | - 修复爬虫网页同网站获取失败的问题
30 | - 修复停止任务无效的问题
31 |
32 | ### FEATURE
33 | - 将左侧task status连接到action/showtask
34 | - 添加HTTPS代理工具,支持https代理资源获取和检测
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/test.log:
--------------------------------------------------------------------------------
1 | Fri, 05 Aug 2016 22:58:48 _internal.py[line:87] WARNING * Debugger is active!
2 | Fri, 05 Aug 2016 22:58:48 _internal.py[line:87] INFO * Debugger pin code: 322-285-974
3 | Fri, 05 Aug 2016 23:11:3Fri, 05 Aug 2016 23:11:33 _internal.py[line:87] INFO * Restarting with stat
4 | Fri, 05 Aug 2016 23:11:39 _internal.py[line:87] INFO * Restarting with stat
5 | Fri, 05 Aug 2016 23:11:45 _internal.py[line:87] INFO * Restarting with stat
6 | Fri, 05 Aug 2016 23:11:50 _internal.py[line:87] INFO * Restarting with stat
7 | Fri, 05 Aug 2016 23:11:55 _internal.py[line:87] INFO * Restarting with stat
8 | Fri, 05 Aug 2016 23:11:58 _internal.py[line:87] INFO * Restarting with stat
9 | Fri, 05 Aug 2016 23:12:03 _internal.py[line:87] INFO * Restarting with stat
10 | Fri, 05 Aug 2016 23:12:10 _internal.py[line:87] INFO * Restarting with stat
11 |
--------------------------------------------------------------------------------
/libs/ssl/mitmproxy-dhparam.pem:
--------------------------------------------------------------------------------
1 |
2 | -----BEGIN DH PARAMETERS-----
3 | MIICCAKCAgEAyT6LzpwVFS3gryIo29J5icvgxCnCebcdSe/NHMkD8dKJf8suFCg3
4 | O2+dguLakSVif/t6dhImxInJk230HmfC8q93hdcg/j8rLGJYDKu3ik6H//BAHKIv
5 | j5O9yjU3rXCfmVJQic2Nne39sg3CreAepEts2TvYHhVv3TEAzEqCtOuTjgDv0ntJ
6 | Gwpj+BJBRQGG9NvprX1YGJ7WOFBP/hWU7d6tgvE6Xa7T/u9QIKpYHMIkcN/l3ZFB
7 | chZEqVlyrcngtSXCROTPcDOQ6Q8QzhaBJS+Z6rcsd7X+haiQqvoFcmaJ08Ks6LQC
8 | ZIL2EtYJw8V8z7C0igVEBIADZBI6OTbuuhDwRw//zU1uq52Oc48CIZlGxTYG/Evq
9 | o9EWAXUYVzWkDSTeBH1r4z/qLPE2cnhtMxbFxuvK53jGB0emy2y1Ei6IhKshJ5qX
10 | IB/aE7SSHyQ3MDHHkCmQJCsOd4Mo26YX61NZ+n501XjqpCBQ2+DfZCBh8Va2wDyv
11 | A2Ryg9SUz8j0AXViRNMJgJrr446yro/FuJZwnQcO3WQnXeqSBnURqKjmqkeFP+d8
12 | 6mk2tqJaY507lRNqtGlLnj7f5RNoBFJDCLBNurVgfvq9TCVWKDIFD4vZRjCrnl6I
13 | rD693XKIHUCWOjMh1if6omGXKHH40QuME2gNa50+YPn1iYDl88uDbbMCAQI=
14 | -----END DH PARAMETERS-----
15 |
--------------------------------------------------------------------------------
/templates/left.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/templates/login.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
『豪情』后台管理
6 |
7 |
8 |
9 |
10 |
后台管理
11 |
30 |
返回首页 © 2014 Powered by 有主机上线
31 |
32 |
33 |
--------------------------------------------------------------------------------
/libs/ssl/mitmproxy-ca-cert.cer:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDoTCCAomgAwIBAgIGDWubM1FQMA0GCSqGSIb3DQEBCwUAMCgxEjAQBgNVBAMM
3 | CW1pdG1wcm94eTESMBAGA1UECgwJbWl0bXByb3h5MB4XDTE2MTAwMjExNDcyOVoX
4 | DTE5MTAwNDExNDcyOVowKDESMBAGA1UEAwwJbWl0bXByb3h5MRIwEAYDVQQKDAlt
5 | aXRtcHJveHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCsDKN/Wt6E
6 | YpcTpokZ2egsY+vX9aexEOc7qiZLwwcqkOxyaXaPnOJJ3zeDT21kWk4BljMvxbpM
7 | qCZJGSuE+xFdI8aj6D2EuJnwTkwfVeGDQbalpF9I2ZBECC1+nSL/c8uIPRkbqzDz
8 | 1hv0IXCpxF9awbgYmcvYNRGIWuYfkz72xrZMKl9TdZpGzWwi2g3tZ26EssFfGSD2
9 | xztldyTTUxS9RtC5V9pdCJPGXbLYCK0kVcNggGMQO5cp/dOZfgLoUdxACef42u6u
10 | ZMfBshsOZ5B8qubgi2qnMrgTr5GkguZ8CoudvDJRYK+0q5SZmpoa2X8nW2foKM5J
11 | ulvJcXgpVhBxAgMBAAGjgdAwgc0wDwYDVR0TAQH/BAUwAwEB/zARBglghkgBhvhC
12 | AQEEBAMCAgQweAYDVR0lBHEwbwYIKwYBBQUHAwEGCCsGAQUFBwMCBggrBgEFBQcD
13 | BAYIKwYBBQUHAwgGCisGAQQBgjcCARUGCisGAQQBgjcCARYGCisGAQQBgjcKAwEG
14 | CisGAQQBgjcKAwMGCisGAQQBgjcKAwQGCWCGSAGG+EIEATAOBgNVHQ8BAf8EBAMC
15 | AQYwHQYDVR0OBBYEFHfMOdsSAvHo3EPk8JlGEonN9F9jMA0GCSqGSIb3DQEBCwUA
16 | A4IBAQConUdOn5s+TgM4o7J9xWTxiG3l6Zi1VpRc/rTDRBrFrVX8Io8MwZigBLnu
17 | xd/cDiX1IwPOKvPGICyzI6mly9JeiegXw39nsVmHCu3Gsjvt17XBiSEK1g8dekXm
18 | X6uubNGpQ1W63JBJ8NmOmmw8mLvs+BCRw4ZBOyVDP0o8nbErF8UG0UQH1A2ijyo9
19 | AeAHdpkWfgNYZQMVL5GKDyEEU8lOZvZKrnlypPDCI7lQXQKcnn/aFJK0hJ7Kv8q5
20 | faNI6Ol2060penOeQ0gC5FzcvxosSp3NYJfw1cW3Ftpv5DSiHd6QItx6vcWuM8fl
21 | PwQ07WwOaw+Vpf/OFmd2EXhxz5bT
22 | -----END CERTIFICATE-----
23 |
--------------------------------------------------------------------------------
/libs/ssl/mitmproxy-ca-cert.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDoTCCAomgAwIBAgIGDWubM1FQMA0GCSqGSIb3DQEBCwUAMCgxEjAQBgNVBAMM
3 | CW1pdG1wcm94eTESMBAGA1UECgwJbWl0bXByb3h5MB4XDTE2MTAwMjExNDcyOVoX
4 | DTE5MTAwNDExNDcyOVowKDESMBAGA1UEAwwJbWl0bXByb3h5MRIwEAYDVQQKDAlt
5 | aXRtcHJveHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCsDKN/Wt6E
6 | YpcTpokZ2egsY+vX9aexEOc7qiZLwwcqkOxyaXaPnOJJ3zeDT21kWk4BljMvxbpM
7 | qCZJGSuE+xFdI8aj6D2EuJnwTkwfVeGDQbalpF9I2ZBECC1+nSL/c8uIPRkbqzDz
8 | 1hv0IXCpxF9awbgYmcvYNRGIWuYfkz72xrZMKl9TdZpGzWwi2g3tZ26EssFfGSD2
9 | xztldyTTUxS9RtC5V9pdCJPGXbLYCK0kVcNggGMQO5cp/dOZfgLoUdxACef42u6u
10 | ZMfBshsOZ5B8qubgi2qnMrgTr5GkguZ8CoudvDJRYK+0q5SZmpoa2X8nW2foKM5J
11 | ulvJcXgpVhBxAgMBAAGjgdAwgc0wDwYDVR0TAQH/BAUwAwEB/zARBglghkgBhvhC
12 | AQEEBAMCAgQweAYDVR0lBHEwbwYIKwYBBQUHAwEGCCsGAQUFBwMCBggrBgEFBQcD
13 | BAYIKwYBBQUHAwgGCisGAQQBgjcCARUGCisGAQQBgjcCARYGCisGAQQBgjcKAwEG
14 | CisGAQQBgjcKAwMGCisGAQQBgjcKAwQGCWCGSAGG+EIEATAOBgNVHQ8BAf8EBAMC
15 | AQYwHQYDVR0OBBYEFHfMOdsSAvHo3EPk8JlGEonN9F9jMA0GCSqGSIb3DQEBCwUA
16 | A4IBAQConUdOn5s+TgM4o7J9xWTxiG3l6Zi1VpRc/rTDRBrFrVX8Io8MwZigBLnu
17 | xd/cDiX1IwPOKvPGICyzI6mly9JeiegXw39nsVmHCu3Gsjvt17XBiSEK1g8dekXm
18 | X6uubNGpQ1W63JBJ8NmOmmw8mLvs+BCRw4ZBOyVDP0o8nbErF8UG0UQH1A2ijyo9
19 | AeAHdpkWfgNYZQMVL5GKDyEEU8lOZvZKrnlypPDCI7lQXQKcnn/aFJK0hJ7Kv8q5
20 | faNI6Ol2060penOeQ0gC5FzcvxosSp3NYJfw1cW3Ftpv5DSiHd6QItx6vcWuM8fl
21 | PwQ07WwOaw+Vpf/OFmd2EXhxz5bT
22 | -----END CERTIFICATE-----
23 |
--------------------------------------------------------------------------------
/templates/header.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
FuckSQLi
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/templates/showtask.html:
--------------------------------------------------------------------------------
1 | {% include "header.html" %}
2 |
3 | {% include "left.html" %}
4 |
5 |
10 |
11 |
14 |
15 |
16 |
17 |
Site information
18 |
19 |
20 |
21 | {#
#}
22 |
23 |
24 |
25 |
26 |
27 |
28 | 关闭
29 |
30 | 遮罩层。
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/static/js/myjs/main.js:
--------------------------------------------------------------------------------
1 | function ShowDiv(show_div, bg_div) {
2 | document.getElementById(show_div).style.display = 'block';
3 | document.getElementById(bg_div).style.display = 'block';
4 | var bgdiv = document.getElementById(bg_div);
5 | bgdiv.style.width = document.body.scrollWidth;
6 | // bgdiv.style.height = $(document).height();
7 | $("#" + bg_div).height($(document).height());
8 | };
9 | //关闭弹出层
10 | function CloseDiv(show_div, bg_div) {
11 | document.getElementById(show_div).style.display = 'none';
12 | document.getElementById(bg_div).style.display = 'none';
13 | };
14 |
15 | function ShowLog(taskid){
16 | $.ajax({
17 | url : '/action/showtask?type=log&taskid=' + taskid,
18 | dataType : "json",
19 | timeout: 10000,
20 | error : function(XMLHttpRequest, textStatus, errorThrown){
21 | ShowLogDetail("Nothing here");
22 | },
23 | success : function (data) {
24 | ShowLogDetail(data);
25 | }
26 | });
27 | }
28 | var close_html = "
" +
29 | "关闭
";
30 |
31 | function ShowLogDetail(data) {
32 | $('#hides').empty();
33 | $('#hides').append(close_html);
34 | var html = "";
35 | $.each(data['log'], function(n, value){
36 | for (var key in value){
37 | html += "" + key + "" + ": " + value[key] + " ";
38 | }
39 | html += "
\n";
40 | $('#hides').append(html);
41 | });
42 | ShowDiv('hides','shows');
43 |
44 | }
45 |
46 | function showdatadetail(data){
47 | $('#hides').empty();
48 | $('#hides').append(close_html);
49 | var html = "";
50 | if (data['data'] == []){
51 | return;
52 | }
53 | // alert();
54 | $.each(data['data'][0]['value'][0]['data'], function(n, value){
55 | for (var key in value){
56 | html += "" + key + " " + ": " + value[key] + " ";
57 | }
58 | html += "
\n";
59 | $('#hides').append(html);
60 | });
61 | ShowDiv('hides','shows');
62 | }
63 |
64 |
65 | function ShowPayload(taskid) {
66 | $.ajax({
67 | url : '/action/showtask?type=payload&taskid=' + taskid,
68 | dataType : "json",
69 | timeout: 10000,
70 | error : function(XMLHttpRequest, textStatus, errorThrown){
71 | ShowLogDetail("Nothing here");
72 | },
73 | success : function (data) {
74 | showdatadetail(data);
75 | }
76 | });
77 | }
78 |
--------------------------------------------------------------------------------
/libs/func.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | #!-*- coding:utf-8 -*-
3 |
4 | import os
5 | import sys
6 | import logging
7 | import json
8 | import base64
9 | import requests
10 | import urllib2
11 | import ssl
12 | from urlparse import urlparse
13 | # from models import MySQLHander
14 | import re
15 | import xml.etree.cElementTree as ET
16 | from requests.adapters import HTTPAdapter
17 | from requests.packages.urllib3.poolmanager import PoolManager
18 |
19 |
20 | SPIDER_HEADER = {"User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko)" \
21 | " Version/6.0 Mobile/10A5376e Safari/8536.25"}
22 |
23 | JSON_HEADER={'Content-Type': 'application/json'}
24 |
25 |
26 | def getrootpath():
27 | return os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
28 |
29 | def getrootdomain(domain):
30 | return urlparse(domain).netloc
31 |
32 |
33 | class XMLDOM(object):
34 | def __init__(self):
35 | xml = ET.parse("{0}{1}config.xml".format(getrootpath(), os.path.sep))
36 | self.tree = xml.getroot()
37 |
38 | def GetElementByName(self, name):
39 | return self.tree.find(name).text
40 |
41 | #ensure HTTPAdapter to spider https
42 | class MyAdapter(HTTPAdapter):
43 | def init_poolmanager(self, connections, maxsize, block=False):
44 | self.poolmanager = PoolManager(num_pools=connections,
45 | maxsize=maxsize,
46 | block=block,
47 | ssl_version=ssl.PROTOCOL_TLSv1)
48 | class Tools:
49 | '''
50 | 将request请求对象转换为SQLMAP的设置值
51 | '''
52 | @staticmethod
53 | def do_sqlmap_options(request):
54 | options = {}
55 | for key in request.keys():
56 | if request[key] == "True":
57 | options[key] = request[key]
58 | return options
59 |
60 | @staticmethod
61 | def dict2base64(dictobj):
62 | return base64.b64encode(json.dumps(dictobj))
63 |
64 | @staticmethod
65 | def base642json(string):
66 | return json.loads(base64.b64decode(string))
67 |
68 | @staticmethod
69 | def getjsondata(url, data=None):
70 | if data == None:
71 | try:
72 | text = json.loads(requests.get(url,None, headers=JSON_HEADER).text)
73 | return text
74 | except:
75 | return None
76 | else:
77 | try:
78 | text = json.loads(requests.post(url,data=data, headers=JSON_HEADER).text)
79 | return text
80 | except:
81 | return None
82 |
83 |
84 | if __name__ == '__main__':
85 | print getrootdomain("http://www.108js.com/article/article1/10025.html?id=58")
86 |
87 |
--------------------------------------------------------------------------------
/templates/index.html:
--------------------------------------------------------------------------------
1 | {% include "header.html" %}
2 |
3 | {% include "left.html" %}
4 |
5 |
6 |
7 |
Welcome to Use 。
8 |
9 |
10 |
11 |
快捷操作
12 |
13 |
22 |
23 |
24 |
25 |
系统基本信息
26 |
27 |
28 |
29 | -
30 | fengxuan
31 |
32 | -
33 | Apache/2.2.21 (Win64) PHP/5.3.10
34 |
35 | -
36 | apache2handler
37 |
38 | -
39 | v0.1
40 |
41 |
42 |
43 |
44 |
59 |
60 |
61 |
62 |