├── analyzer ├── app │ ├── stderror │ ├── __init__.py │ ├── migrations │ │ ├── __init__.py │ │ └── 0001_initial.py │ ├── pidfile │ │ └── 5aSn5YyF │ ├── tests.py │ ├── admin.py │ ├── static │ │ ├── css.rar │ │ ├── img │ │ │ ├── bung.png │ │ │ └── favicon.png │ │ ├── media │ │ │ ├── images │ │ │ │ ├── favicon.ico │ │ │ │ ├── sort_asc.png │ │ │ │ ├── sort_both.png │ │ │ │ ├── sort_desc.png │ │ │ │ ├── Sorting icons.psd │ │ │ │ ├── sort_asc_disabled.png │ │ │ │ └── sort_desc_disabled.png │ │ │ ├── js │ │ │ │ ├── dataTables.bootstrap.min.js │ │ │ │ ├── dataTables.bootstrap4.min.js │ │ │ │ ├── dataTables.foundation.min.js │ │ │ │ ├── dataTables.material.min.js │ │ │ │ ├── dataTables.semanticui.min.js │ │ │ │ ├── dataTables.uikit.min.js │ │ │ │ └── dataTables.jqueryui.min.js │ │ │ ├── css │ │ │ │ ├── dataTables.material.min.css │ │ │ │ ├── dataTables.foundation.min.css │ │ │ │ ├── dataTables.semanticui.min.css │ │ │ │ ├── dataTables.material.css │ │ │ │ ├── dataTables.uikit.min.css │ │ │ │ ├── dataTables.semanticui.css │ │ │ │ ├── dataTables.foundation.css │ │ │ │ ├── dataTables.bootstrap.min.css │ │ │ │ ├── dataTables.uikit.css │ │ │ │ └── dataTables.bootstrap4.min.css │ │ │ └── index.html │ │ ├── css │ │ │ ├── laydate │ │ │ │ └── skins │ │ │ │ │ ├── molv │ │ │ │ │ ├── icon.png │ │ │ │ │ └── laydate.css │ │ │ │ │ ├── dahong │ │ │ │ │ ├── icon.png │ │ │ │ │ └── laydate.css │ │ │ │ │ └── default │ │ │ │ │ ├── icon.png │ │ │ │ │ └── laydate.css │ │ │ ├── home.css │ │ │ ├── jquery.fileupload.css │ │ │ ├── dateselect.css │ │ │ └── kkpager_orange.css │ │ ├── js │ │ │ ├── layer │ │ │ │ └── skin │ │ │ │ │ └── default │ │ │ │ │ ├── icon.png │ │ │ │ │ ├── icon-ext.png │ │ │ │ │ ├── loading-0.gif │ │ │ │ │ ├── loading-1.gif │ │ │ │ │ └── loading-2.gif │ │ │ ├── npm.js │ │ │ ├── fixtableheader.js │ │ │ ├── cookie_util.js │ │ │ ├── analyze.js │ │ │ ├── MultiSelectDropList.js │ │ │ ├── jquery.cookie.js │ │ │ ├── upload.js │ │ │ └── mybugs.js │ │ ├── themes │ │ │ ├── basic │ │ │ │ └── assets │ │ │ │ │ └── fonts │ │ │ │ │ ├── icons.eot │ │ │ │ │ ├── icons.ttf │ │ │ │ │ └── icons.woff │ │ │ └── default │ │ │ │ └── assets │ │ │ │ ├── fonts │ │ │ │ ├── icons.eot │ │ │ │ ├── icons.otf │ │ │ │ ├── icons.ttf │ │ │ │ └── icons.woff │ │ │ │ └── images │ │ │ │ └── flags.png │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ ├── bpfall_files │ │ │ ├── 02e60f63-0000-0000-0000-000000000000.woff │ │ │ ├── 58b9817b-0002-0000-0000-000000000000.woff │ │ │ └── 97e87c08-0001-0000-0000-000000000000.woff │ │ └── components │ │ │ ├── sticky.min.css │ │ │ ├── tab.min.css │ │ │ ├── rail.min.css │ │ │ ├── breadcrumb.min.css │ │ │ ├── site.min.css │ │ │ ├── video.min.css │ │ │ ├── nag.min.css │ │ │ ├── shape.min.css │ │ │ ├── sticky.css │ │ │ ├── ad.min.css │ │ │ ├── tab.css │ │ │ ├── reset.min.css │ │ │ ├── dimmer.min.css │ │ │ ├── breadcrumb.css │ │ │ ├── comment.min.css │ │ │ ├── rail.css │ │ │ ├── image.min.css │ │ │ ├── video.css │ │ │ ├── popup.min.css │ │ │ ├── site.css │ │ │ ├── divider.min.css │ │ │ ├── colorize.min.js │ │ │ ├── feed.min.css │ │ │ ├── loader.min.css │ │ │ ├── nag.css │ │ │ ├── shape.css │ │ │ ├── search.min.css │ │ │ ├── dimmer.css │ │ │ ├── rating.min.js │ │ │ └── message.min.css │ ├── pcapfiles │ │ ├── 1_165028212764.pcap │ │ └── 1_165028212764 │ │ │ └── easyedu_00000_20220418114207 │ ├── apps.py │ ├── app01_config │ ├── models.py │ ├── urls.py │ ├── start_sniff.py │ └── payloads │ │ └── inline_query.xml ├── analyzer │ ├── __init__.py │ ├── wsgi.py │ ├── urls.py │ ├── Serv.py │ └── settings.py ├── manage.py ├── require.txt ├── templates │ ├── 404.html │ ├── verify.html │ ├── base.html │ ├── bugs_content.html │ └── prolist.html └── .gitignore ├── layer.jpeg ├── packet.jpeg ├── .gitignore └── README.md /analyzer/app/stderror: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /analyzer/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /analyzer/analyzer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /analyzer/app/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /analyzer/app/pidfile/5aSn5YyF: -------------------------------------------------------------------------------- 1 | 1179 2 | -------------------------------------------------------------------------------- /layer.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/layer.jpeg -------------------------------------------------------------------------------- /packet.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/packet.jpeg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.zip 3 | /analyzer/app01/repoters/* 4 | /analyzer/migrations/* 5 | -------------------------------------------------------------------------------- /analyzer/app/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /analyzer/app/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /analyzer/app/static/css.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/css.rar -------------------------------------------------------------------------------- /analyzer/app/static/img/bung.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/img/bung.png -------------------------------------------------------------------------------- /analyzer/app/static/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/img/favicon.png -------------------------------------------------------------------------------- /analyzer/app/pcapfiles/1_165028212764.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/pcapfiles/1_165028212764.pcap -------------------------------------------------------------------------------- /analyzer/app/static/media/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/media/images/favicon.ico -------------------------------------------------------------------------------- /analyzer/app/static/media/images/sort_asc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/media/images/sort_asc.png -------------------------------------------------------------------------------- /analyzer/app/static/media/images/sort_both.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/media/images/sort_both.png -------------------------------------------------------------------------------- /analyzer/app/static/media/images/sort_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/media/images/sort_desc.png -------------------------------------------------------------------------------- /analyzer/app/static/css/laydate/skins/molv/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/css/laydate/skins/molv/icon.png -------------------------------------------------------------------------------- /analyzer/app/static/js/layer/skin/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/js/layer/skin/default/icon.png -------------------------------------------------------------------------------- /analyzer/app/static/media/images/Sorting icons.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/media/images/Sorting icons.psd -------------------------------------------------------------------------------- /analyzer/app/static/css/laydate/skins/dahong/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/css/laydate/skins/dahong/icon.png -------------------------------------------------------------------------------- /analyzer/app/static/css/laydate/skins/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/css/laydate/skins/default/icon.png -------------------------------------------------------------------------------- /analyzer/app/static/js/layer/skin/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/js/layer/skin/default/icon-ext.png -------------------------------------------------------------------------------- /analyzer/app/static/js/layer/skin/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/js/layer/skin/default/loading-0.gif -------------------------------------------------------------------------------- /analyzer/app/static/js/layer/skin/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/js/layer/skin/default/loading-1.gif -------------------------------------------------------------------------------- /analyzer/app/static/js/layer/skin/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/js/layer/skin/default/loading-2.gif -------------------------------------------------------------------------------- /analyzer/app/static/media/images/sort_asc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/media/images/sort_asc_disabled.png -------------------------------------------------------------------------------- /analyzer/app/static/media/images/sort_desc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/media/images/sort_desc_disabled.png -------------------------------------------------------------------------------- /analyzer/app/static/themes/basic/assets/fonts/icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/basic/assets/fonts/icons.eot -------------------------------------------------------------------------------- /analyzer/app/static/themes/basic/assets/fonts/icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/basic/assets/fonts/icons.ttf -------------------------------------------------------------------------------- /analyzer/app/static/themes/basic/assets/fonts/icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/basic/assets/fonts/icons.woff -------------------------------------------------------------------------------- /analyzer/app/apps.py: -------------------------------------------------------------------------------- 1 | from __future__ import unicode_literals 2 | 3 | from django.apps import AppConfig 4 | 5 | 6 | class AppConfig(AppConfig): 7 | name = 'app' 8 | -------------------------------------------------------------------------------- /analyzer/app/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /analyzer/app/static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /analyzer/app/static/themes/default/assets/fonts/icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/default/assets/fonts/icons.eot -------------------------------------------------------------------------------- /analyzer/app/static/themes/default/assets/fonts/icons.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/default/assets/fonts/icons.otf -------------------------------------------------------------------------------- /analyzer/app/static/themes/default/assets/fonts/icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/default/assets/fonts/icons.ttf -------------------------------------------------------------------------------- /analyzer/app/static/themes/default/assets/fonts/icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/default/assets/fonts/icons.woff -------------------------------------------------------------------------------- /analyzer/app/static/themes/default/assets/images/flags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/themes/default/assets/images/flags.png -------------------------------------------------------------------------------- /analyzer/app/static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /analyzer/app/pcapfiles/1_165028212764/easyedu_00000_20220418114207: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/pcapfiles/1_165028212764/easyedu_00000_20220418114207 -------------------------------------------------------------------------------- /analyzer/app/static/bpfall_files/02e60f63-0000-0000-0000-000000000000.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/bpfall_files/02e60f63-0000-0000-0000-000000000000.woff -------------------------------------------------------------------------------- /analyzer/app/static/bpfall_files/58b9817b-0002-0000-0000-000000000000.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/bpfall_files/58b9817b-0002-0000-0000-000000000000.woff -------------------------------------------------------------------------------- /analyzer/app/static/bpfall_files/97e87c08-0001-0000-0000-000000000000.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pythonran/Pcap_tools/HEAD/analyzer/app/static/bpfall_files/97e87c08-0001-0000-0000-000000000000.woff -------------------------------------------------------------------------------- /analyzer/app/static/css/home.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #E9E9E9; 3 | /*background-image: url(/../img/2.gif);*/ 4 | } 5 | 6 | #wrapper{ 7 | margin-top:3.5rem; 8 | margin-left:10rem; 9 | margin-right:10rem; 10 | } -------------------------------------------------------------------------------- /analyzer/manage.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | 4 | if __name__ == "__main__": 5 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "analyzer.settings") 6 | 7 | from django.core.management import execute_from_command_line 8 | 9 | execute_from_command_line(sys.argv) 10 | -------------------------------------------------------------------------------- /analyzer/analyzer/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for analyzer project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "analyzer.settings") 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /analyzer/app/app01_config: -------------------------------------------------------------------------------- 1 | [example_bpf] 2 | 监听物理地址 = ether host 00:00:5e:00:53:00 3 | 监听ARP = ether proto 0x0806 4 | 滤出广播和多播 = not broadcast and not multicast 5 | 滤出ARP = not arp 6 | 只要IP4 = ip 7 | IPv4地址 = host 192.0.2.1 8 | 只要IPv6 = ip6 9 | IPv6地址 = host 2001:db8::1 10 | 只要TCP = tcp 11 | 只要UDP = udp 12 | 80端口 = port 80 13 | TCP80端口 = tcp port 80 14 | 滤出ARP、DNS = not arp and port not 53 15 | 谷歌的非HTTP、SMTP包 = not port 80 and not port 25 and host www.google.org 16 | [report] 17 | downloadurl = http://192.168.137.100:8000/ 18 | -------------------------------------------------------------------------------- /analyzer/app/static/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pcap_tools 2 | 安装 3 | ========== 4 | 5 | ```cd analyzer 6 | pip2 install -r require.txt 7 | python2 manage.py check 8 | python2 manage.py migrate 9 | python2 manage.py runserver 0.0.0.0:9000 10 | ``` 11 | 部分效果图 12 | =========== 13 | ![](https://github.com/pythonran/Pcap_tools/blob/master/layer.jpeg) 14 | ![](https://github.com/pythonran/Pcap_tools/blob/master/packet.jpeg) 15 | 16 | 打赏作者杯咖啡 17 | ========================= 18 | 你也不一定要赞赏,芸芸众生,相遇相识是一种缘份。 19 | 20 | 赞赏码 21 | -------------------------------------------------------------------------------- /analyzer/app/static/components/sticky.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | .ui.sticky{position:static;-webkit-transition:width .2s ease,height .2s ease,top .2s ease,bottom .2s ease;transition:width .2s ease,height .2s ease,top .2s ease,bottom .2s ease;z-index:800}.ui.sticky.bound{position:absolute;left:auto;right:auto}.ui.sticky.fixed{position:fixed;left:auto;right:auto}.ui.sticky.bound.top,.ui.sticky.fixed.top{top:0;bottom:auto}.ui.sticky.bound.bottom,.ui.sticky.fixed.bottom{top:auto;bottom:0}.ui.native.sticky{position:-webkit-sticky;position:-moz-sticky;position:-ms-sticky;position:-o-sticky;position:sticky} -------------------------------------------------------------------------------- /analyzer/app/static/css/jquery.fileupload.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /* 3 | * jQuery File Upload Plugin CSS 1.3.0 4 | * https://github.com/blueimp/jQuery-File-Upload 5 | * 6 | * Copyright 2013, Sebastian Tschan 7 | * https://blueimp.net 8 | * 9 | * Licensed under the MIT license: 10 | * http://www.opensource.org/licenses/MIT 11 | */ 12 | 13 | .fileinput-button { 14 | position: relative; 15 | overflow: hidden; 16 | } 17 | .fileinput-button input { 18 | position: absolute; 19 | top: 0; 20 | right: 0; 21 | margin: 0; 22 | opacity: 0; 23 | -ms-filter: 'alpha(opacity=0)'; 24 | font-size: 200px; 25 | direction: ltr; 26 | cursor: pointer; 27 | } 28 | 29 | /* Fixes for IE < 8 */ 30 | @media screen\9 { 31 | .fileinput-button input { 32 | filter: alpha(opacity=0); 33 | font-size: 100%; 34 | height: 100%; 35 | } 36 | } -------------------------------------------------------------------------------- /analyzer/analyzer/urls.py: -------------------------------------------------------------------------------- 1 | """analyzer URL Configuration 2 | 3 | The `urlpatterns` list routes URLs to views. For more information please see: 4 | https://docs.djangoproject.com/en/1.9/topics/http/urls/ 5 | Examples: 6 | Function views 7 | 1. Add an import: from my_app import views 8 | 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') 9 | Class-based views 10 | 1. Add an import: from other_app.views import Home 11 | 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') 12 | Including another URLconf 13 | 1. Import the include() function: from django.conf.urls import url, include 14 | 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) 15 | """ 16 | from django.conf.urls import url,include 17 | from django.contrib import admin 18 | 19 | urlpatterns = [ 20 | #url(r'^admin/', admin.site.urls), 21 | url(r'',include('app.urls'), name='app'), 22 | ] 23 | -------------------------------------------------------------------------------- /analyzer/app/static/css/dateselect.css: -------------------------------------------------------------------------------- 1 | .multi_select { 2 | height:auto; 3 | overflow:hidden; 4 | float:left; 5 | z-index:1000; 6 | } 7 | .multi_select_focus { 8 | border:1px solid #5394DD; 9 | border-right:2px solid #5394DD; 10 | border-left:2px solid #5394DD; 11 | } 12 | .multi_select input:first-child{ 13 | margin: 2px; 14 | } 15 | .container { 16 | width: 100%; 17 | border: 1px solid gray; 18 | margin-left: -2px; 19 | } 20 | 21 | .top { 22 | background: #DBEAF9; 23 | border-bottom: 1px solid gray; 24 | 25 | } 26 | .content { 27 | width: 100%; 28 | background-color: #fff; 29 | overflow-y: auto; 30 | } 31 | .content div{ 32 | border-bottom: 1px solid gray; 33 | margin-top:0px; 34 | height:24px; 35 | } 36 | .content div:last-child{ 37 | border-bottom: none; 38 | } 39 | .ok { 40 | 41 | display: block; 42 | float: right; 43 | height: 22px; 44 | } 45 | 46 | .hidden { 47 | display:none; 48 | } -------------------------------------------------------------------------------- /analyzer/require.txt: -------------------------------------------------------------------------------- 1 | Package Version 2 | ----------------------------- ------- 3 | backports-abc 0.5 4 | backports.functools-lru-cache 1.6.4 5 | beautifulsoup4 4.9.3 6 | chardet 4.0.0 7 | configparser 4.0.2 8 | Django 1.10 9 | djangorestframework 3.9.4 10 | futures 3.3.0 11 | Logbook 1.5.3 12 | lxml 4.8.0 13 | pip 20.3.4 14 | psutil 5.9.0 15 | py 1.11.0 16 | pyshark 0.3.7.2 17 | pytz 2022.1 18 | scapy 2.3.3 19 | setuptools 44.1.1 20 | simplejson 3.17.6 21 | singledispatch 3.7.0 22 | six 1.16.0 23 | soupsieve 1.9.6 24 | tornado 5.1.1 25 | trollius 1.0.4 26 | Werkzeug 1.0.1 27 | wheel 0.37.1 28 | -------------------------------------------------------------------------------- /analyzer/app/static/components/tab.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | .ui.tab{display:none}.ui.tab.active,.ui.tab.open{display:block}.ui.tab.loading{position:relative;overflow:hidden;display:block;min-height:250px}.ui.tab.loading *{position:relative!important;left:-10000px!important}.ui.tab.loading.segment:before,.ui.tab.loading:before{position:absolute;content:'';top:100px;left:50%;margin:-1.25em 0 0 -1.25em;width:2.5em;height:2.5em;border-radius:500rem;border:.2em solid rgba(0,0,0,.1)}.ui.tab.loading.segment:after,.ui.tab.loading:after{position:absolute;content:'';top:100px;left:50%;margin:-1.25em 0 0 -1.25em;width:2.5em;height:2.5em;-webkit-animation:button-spin .6s linear;animation:button-spin .6s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;border-radius:500rem;border-color:#aaa transparent transparent;border-style:solid;border-width:.2em;box-shadow:0 0 0 1px transparent} -------------------------------------------------------------------------------- /analyzer/app/static/components/rail.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | .ui.rail{position:absolute;top:0;width:300px;box-sizing:content-box}.ui.left.rail{left:auto;right:100%;padding:0 2rem 0 0;margin:0 2rem 0 0}.ui.right.rail{left:100%;right:auto;padding:0 0 0 2rem;margin:0 0 0 2rem}.ui.left.internal.rail{left:0;right:auto;padding:0 0 0 2rem;margin:0 0 0 2rem}.ui.right.internal.rail{left:auto;right:0;padding:0 2rem 0 0;margin:0 2rem 0 0}.ui.left.dividing.rail{padding:0 2.5rem 0 0;margin:0 2.5rem 0 0;border-right:1px solid rgba(39,41,43,.15)}.ui.right.dividing.rail{border-left:1px solid rgba(39,41,43,.15);padding:0 0 0 2.5rem;margin:0 0 0 2.5rem}.ui.close.left.rail{padding:0 1em 0 0;margin:0 1em 0 0}.ui.close.right.rail{padding:0 0 0 1em;margin:0 0 0 1em}.ui.very.close.left.rail{padding:0 .5em 0 0;margin:0 .5em 0 0}.ui.very.close.right.rail{padding:0 0 0 .5em;margin:0 0 0 .5em}.ui.attached.left.rail,.ui.attached.right.rail{padding:0;margin:0}.ui.rail{font-size:1em} -------------------------------------------------------------------------------- /analyzer/app/static/components/breadcrumb.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | .ui.breadcrumb{margin:1em 0;display:inline-block;vertical-align:middle}.ui.breadcrumb:first-child{margin-top:0}.ui.breadcrumb:last-child{margin-bottom:0}.ui.breadcrumb .divider{display:inline-block;opacity:.5;margin:0 .2rem;font-size:.9em;color:rgba(0,0,0,.4);vertical-align:baseline}.ui.breadcrumb a{color:#009fda}.ui.breadcrumb a:hover{color:#00b2f3}.ui.breadcrumb .icon.divider{font-size:.7em;vertical-align:middle}.ui.breadcrumb a.section{cursor:pointer}.ui.breadcrumb .section{display:inline-block;margin:0;padding:0}.ui.breadcrumb.segment{display:inline-block;padding:.5em 1em}.ui.breadcrumb .active.section{font-weight:700}.ui.mini.breadcrumb{font-size:.65em}.ui.tiny.breadcrumb{font-size:.7em}.ui.small.breadcrumb{font-size:.75em}.ui.breadcrumb{font-size:1em}.ui.large.breadcrumb{font-size:1.1em}.ui.big.breadcrumb{font-size:1.05em}.ui.huge.breadcrumb{font-size:1.3em}.ui.massive.breadcrumb{font-size:1.5em} -------------------------------------------------------------------------------- /analyzer/analyzer/Serv.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | import sys 4 | 5 | from tornado.options import options, define, parse_command_line 6 | 7 | import django.core.handlers.wsgi 8 | 9 | import tornado.httpserver 10 | 11 | import tornado.ioloop 12 | 13 | import tornado.web 14 | 15 | import tornado.wsgi 16 | 17 | 18 | _HERE = os.path.dirname(os.path.abspath(__file__)) 19 | 20 | sys.path.append(_HERE) 21 | 22 | sys.path.append(os.path.join(_HERE, '..')) 23 | 24 | sys.path.append(os.path.join(_HERE, '../contrib')) 25 | 26 | os.environ['DJANGO_SETTINGS_MODULE'] = "analyzer.settings" 27 | 28 | 29 | import django 30 | django.setup() 31 | 32 | 33 | def main(port): 34 | 35 | wsgi_app = tornado.wsgi.WSGIContainer( 36 | 37 | django.core.handlers.wsgi.WSGIHandler() 38 | ) 39 | 40 | tornado_app = tornado.web.Application( 41 | 42 | [ 43 | ('.*', tornado.web.FallbackHandler, dict(fallback=wsgi_app)), 44 | 45 | ]) 46 | 47 | server = tornado.httpserver.HTTPServer(tornado_app) 48 | 49 | server.listen(port,address="127.0.0.1") 50 | 51 | tornado.ioloop.IOLoop.instance().start() 52 | 53 | 54 | if __name__ == '__main__': 55 | 56 | main(int(sys.argv[1])) 57 | -------------------------------------------------------------------------------- /analyzer/templates/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 404 7 | 18 | 19 | 20 | 21 |
22 |
23 |
24 |

Sorry..页面没有找到

25 |

26 |

{{ msg }}

27 |

28 |
29 | 30 |
31 |
32 | 33 | -------------------------------------------------------------------------------- /analyzer/templates/verify.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 404 7 | 18 | 19 | 20 | 21 |
22 |
23 |
24 |

Sorry..页面没有找到

25 |

26 |

{{ msg }}

27 |

28 |
29 | 30 |
31 |
32 | 33 | -------------------------------------------------------------------------------- /analyzer/app/static/components/site.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | @import 'http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic';*,:after,:before{box-sizing:border-box}body,html{height:100%}html{font-size:14px}body{margin:0;padding:0;min-width:278px;background:#f7f7f7;font-family:Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;font-size:14px;line-height:1.33;color:rgba(0,0,0,.8);font-smoothing:antialiased}h1,h2,h3,h4,h5{font-family:Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;line-height:1.33em;margin:-webkit-calc(2rem - .165em) 0 1rem;margin:calc(2rem - .165em) 0 1rem;font-weight:700;padding:0}h1{min-height:1rem;font-size:2rem}h2{font-size:1.714rem}h3{font-size:1.28rem}h4{font-size:1.071rem}h5{font-size:1rem}p{margin:0 0 1em;line-height:1.33}p:first-child{margin-top:0}p:last-child{margin-bottom:0}a{color:#009fda;text-decoration:none}a:hover{color:#00b2f3}::-webkit-selection{background-color:rgba(255,255,160,.4);color:rgba(0,0,0,.8)}::-moz-selection{background-color:rgba(255,255,160,.4);color:rgba(0,0,0,.8)}::selection{background-color:rgba(255,255,160,.4);color:rgba(0,0,0,.8)} -------------------------------------------------------------------------------- /analyzer/app/static/components/video.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | .ui.video{background-color:#ddd;position:relative;max-width:100%;padding-bottom:56.25%;height:0;overflow:hidden}.ui.video .placeholder{background-color:#333}.ui.video .play{cursor:pointer;position:absolute;top:0;left:0;z-index:10;width:100%;height:100%;opacity:.8;-webkit-transition:opacity .3s;transition:opacity .3s}.ui.video .play.icon:before{position:absolute;top:50%;left:50%;z-index:11;background:rgba(0,0,0,.3);width:8rem;height:8rem;line-height:8rem;border-radius:500rem;color:#fff;font-size:8rem;text-shadow:none;-webkit-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.ui.video .placeholder{position:absolute;top:0;left:0;display:block;width:100%;height:100%}.ui.video .embed embed,.ui.video .embed iframe,.ui.video .embed object{position:absolute;border:none;width:100%;height:100%;top:0;left:0;margin:0;padding:0}.ui.video .play:hover{opacity:1}.ui.video.active .placeholder,.ui.video.active .play{display:none}.ui.video.active .embed{display:inline} -------------------------------------------------------------------------------- /analyzer/.gitignore: -------------------------------------------------------------------------------- 1 | # PyInstaller 2 | # Usually these files are written by a python script from a template 3 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 4 | *.manifest 5 | *.spec 6 | 7 | # Installer logs 8 | pip-log.txt 9 | pip-delete-this-directory.txt 10 | 11 | # Unit test / coverage reports 12 | htmlcov/ 13 | .tox/ 14 | .coverage 15 | .coverage.* 16 | .cache 17 | nosetests.xml 18 | coverage.xml 19 | *.cover 20 | .hypothesis/ 21 | .pytest_cache/ 22 | 23 | # Translations 24 | *.mo 25 | *.pot 26 | 27 | # Django stuff: 28 | *.log 29 | local_settings.py 30 | db.sqlite3 31 | 32 | # Flask stuff: 33 | instance/ 34 | .webassets-cache 35 | 36 | # Scrapy stuff: 37 | .scrapy 38 | 39 | # Sphinx documentation 40 | docs/_build/ 41 | 42 | # PyBuilder 43 | target/ 44 | 45 | # Jupyter Notebook 46 | .ipynb_checkpoints 47 | 48 | # IPython 49 | profile_default/ 50 | ipython_config.py 51 | 52 | # pyenv 53 | .python-version 54 | 55 | # celery beat schedule file 56 | celerybeat-schedule 57 | 58 | # SageMath parsed files 59 | *.sage.py 60 | 61 | # Environments 62 | .env 63 | .venv 64 | env/ 65 | venv/ 66 | ENV/ 67 | env.bak/ 68 | venv.bak/ 69 | 70 | # Spyder project settings 71 | .spyderproject 72 | .spyproject 73 | 74 | # Rope project settings 75 | .ropeproject 76 | 77 | # mkdocs documentation 78 | /site 79 | 80 | # mypy 81 | .mypy_cache/ 82 | .dmypy.json 83 | dmypy.json 84 | -------------------------------------------------------------------------------- /analyzer/app/static/components/nag.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | .ui.nag{display:none;opacity:.95;position:relative;top:0;left:0;z-index:999;min-height:0;width:100%;margin:0;padding:.75em 1em;background:#555;box-shadow:0 1px 2px 0 rgba(0,0,0,.2);font-size:1rem;text-align:center;color:rgba(0,0,0,.8);border-radius:0 0 .2857rem .2857rem;-webkit-transition:.2s background ease;transition:.2s background ease}a.ui.nag{cursor:pointer}.ui.nag>.title{display:inline-block;margin:0 .5em;color:#fff}.ui.nag>.close.icon{cursor:pointer;opacity:.4;position:absolute;top:50%;right:1em;font-size:1em;margin:-.5em 0 0;color:#fff;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.ui.nag:hover{background:#555;opacity:1}.ui.nag .close:hover{opacity:1}.ui.overlay.nag{position:absolute;display:block}.ui.fixed.nag{position:fixed}.ui.bottom.nag,.ui.bottom.nags{border-radius:.2857rem .2857rem 0 0;top:auto;bottom:0}.ui.inverted.nag,.ui.inverted.nags .nag{background-color:#f0f0f0;color:rgba(0,0,0,.85)}.ui.inverted.nag .close,.ui.inverted.nag .title,.ui.inverted.nags .nag .close,.ui.inverted.nags .nag .title{color:rgba(0,0,0,.4)}.ui.nags .nag{border-radius:0!important}.ui.nags .nag:last-child{border-radius:0 0 .2857rem .2857rem}.ui.bottom.nags .nag:last-child{border-radius:.2857rem .2857rem 0 0} -------------------------------------------------------------------------------- /analyzer/app/static/components/shape.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | .ui.shape{position:relative;display:inline-block;-webkit-perspective:2000px;perspective:2000px}.ui.shape .sides{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.ui.shape .side{opacity:1;width:100%;margin:0!important;-webkit-backface-visibility:hidden;backface-visibility:hidden;display:none}.ui.shape .side>*{-webkit-backface-visibility:visible!important;backface-visibility:visible!important}.ui.cube.shape .side{min-width:15em;height:15em;padding:2em;background-color:#e6e6e6;color:rgba(0,0,0,.8);box-shadow:0 0 2px rgba(0,0,0,.3)}.ui.cube.shape .side>.content{width:100%;height:100%;display:table;text-align:center;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ui.cube.shape .side>.content>div{display:table-cell;vertical-align:middle;font-size:2em}.ui.text.shape.animating .sides{position:static}.ui.text.shape .side{white-space:nowrap}.ui.text.shape .side>*{white-space:normal}.ui.loading.shape{position:absolute;top:-9999px;left:-9999px}.ui.shape .animating.side{position:absolute;top:0;left:0;z-index:100}.ui.shape .hidden.side{opacity:.4}.ui.shape.animating{-webkit-transition:all .6s ease-in-out;transition:all .6s ease-in-out}.ui.shape.animating .sides{position:absolute;-webkit-transition:all .6s ease-in-out;transition:all .6s ease-in-out}.ui.shape.animating .side{-webkit-transition:opacity .6s ease-in-out;transition:opacity .6s ease-in-out}.ui.shape .active.side{display:block} -------------------------------------------------------------------------------- /analyzer/app/static/components/sticky.css: -------------------------------------------------------------------------------- 1 | /* 2 | * # Semantic UI 3 | * https://github.com/Semantic-Org/Semantic-UI 4 | * http://www.semantic-ui.com/ 5 | * 6 | * Copyright 2014 Contributors 7 | * Released under the MIT license 8 | * http://opensource.org/licenses/MIT 9 | * 10 | */ 11 | 12 | 13 | 14 | /******************************* 15 | Sticky 16 | *******************************/ 17 | 18 | .ui.sticky { 19 | position: static; 20 | -webkit-transition: width 0.2s ease, height 0.2s ease, top 0.2s ease, bottom 0.2s ease; 21 | transition: width 0.2s ease, height 0.2s ease, top 0.2s ease, bottom 0.2s ease; 22 | z-index: 800; 23 | } 24 | 25 | 26 | /******************************* 27 | States 28 | *******************************/ 29 | 30 | 31 | /* Bound */ 32 | .ui.sticky.bound { 33 | position: absolute; 34 | left: auto; 35 | right: auto; 36 | } 37 | 38 | /* Fixed */ 39 | .ui.sticky.fixed { 40 | position: fixed; 41 | left: auto; 42 | right: auto; 43 | } 44 | 45 | /* Bound/Fixed Position */ 46 | .ui.sticky.bound.top, 47 | .ui.sticky.fixed.top { 48 | top: 0px; 49 | bottom: auto; 50 | } 51 | .ui.sticky.bound.bottom, 52 | .ui.sticky.fixed.bottom { 53 | top: auto; 54 | bottom: 0px; 55 | } 56 | 57 | 58 | /******************************* 59 | Types 60 | *******************************/ 61 | 62 | .ui.native.sticky { 63 | position: -webkit-sticky; 64 | position: -moz-sticky; 65 | position: -ms-sticky; 66 | position: -o-sticky; 67 | position: sticky; 68 | } 69 | 70 | 71 | /******************************* 72 | Theme Overrides 73 | *******************************/ 74 | 75 | 76 | 77 | /******************************* 78 | Site Overrides 79 | *******************************/ 80 | 81 | -------------------------------------------------------------------------------- /analyzer/app/models.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | from __future__ import unicode_literals 3 | 4 | from django.db import models 5 | 6 | 7 | class File_pcap(models.Model): 8 | 9 | name = models.CharField(max_length=64) 10 | size = models.CharField(max_length=64) 11 | pkt_counts = models.CharField(max_length=64) 12 | uploaddate = models.CharField(max_length=64,default=0) 13 | 14 | 15 | class sniff_Project(models.Model): 16 | 17 | pro_name = models.CharField(unique=True,max_length=64) 18 | filter = models.CharField(max_length=256) 19 | pcap_name = models.CharField(max_length=128) 20 | netcard = models.CharField(max_length=128) 21 | pkt_counts = models.IntegerField(null=True) 22 | pcap_size = models.CharField(max_length=32) 23 | stat = models.IntegerField(default=0) 24 | 25 | 26 | class Bugs(models.Model): 27 | 28 | name = models.CharField(max_length=64) 29 | desc = models.CharField(max_length=256) 30 | 31 | 32 | class Bugs_content(models.Model): 33 | 34 | name = models.ForeignKey(Bugs) 35 | filter_string = models.TextField() 36 | 37 | 38 | class Scan_result(models.Model): 39 | 40 | match_hash = models.CharField(max_length=256) 41 | pcap_name = models.CharField(max_length=256, default="") 42 | start_time = models.CharField(max_length=256) 43 | stop_time = models.CharField(max_length=256) 44 | filter = models.TextField() 45 | pass 46 | 47 | class Repoters(models.Model): 48 | 49 | user_id = models.IntegerField() 50 | repoter_name = models.CharField(max_length=256, default="") 51 | repoter_summary = models.TextField(default="") 52 | pcap_name = models.CharField(max_length=256, default="") 53 | report_down = models.CharField(max_length=256, default="") 54 | update_time = models.CharField(max_length=256, default="2016-11-11 11:11") 55 | pass 56 | 57 | -------------------------------------------------------------------------------- /analyzer/app/static/media/js/dataTables.bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | DataTables Bootstrap 3 integration 3 | ©2011-2015 SpryMedia Ltd - datatables.net/license 4 | */ 5 | (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return b(d,a,a.document)}:b(jQuery,window,document)})(function(b,a,d){var f=b.fn.dataTable;b.extend(!0,f.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"});b.extend(f.ext.classes, 6 | {sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"});f.ext.renderer.pageButton.bootstrap=function(a,h,r,m,j,n){var o=new f.Api(a),s=a.oClasses,k=a.oLanguage.oPaginate,t=a.oLanguage.oAria.paginate||{},e,g,p=0,q=function(d,f){var l,h,i,c,m=function(a){a.preventDefault();!b(a.currentTarget).hasClass("disabled")&&o.page()!=a.data.action&&o.page(a.data.action).draw("page")}; 7 | l=0;for(h=f.length;l",{"class":s.sPageButton+" "+g,id:0===r&&"string"===typeof c?a.sTableId+"_"+c:null}).append(b("",{href:"#", 8 | "aria-controls":a.sTableId,"aria-label":t[c],"data-dt-idx":p,tabindex:a.iTabIndex}).html(e)).appendTo(d),a.oApi._fnBindAction(i,{action:c},m),p++)}},i;try{i=b(h).find(d.activeElement).data("dt-idx")}catch(u){}q(b(h).empty().html('