├── ptn ├── __init__.py ├── errors.py ├── templates │ ├── 500.html │ ├── 404.html │ ├── item.html │ ├── notes.html │ ├── base.html │ ├── index.html │ ├── import.html │ ├── projects.html │ ├── host.html │ ├── project.html │ ├── hosts.html │ ├── attack.html │ └── about.html ├── static │ ├── ptnotes.js │ └── ptnotes.css ├── validate.py ├── attacks.py ├── webserver.py ├── importscan.py └── database.py ├── Dockerfile ├── .gitignore ├── LICENSE ├── server ├── config ├── cert.pem └── key.pem ├── README.md └── data └── attacks.json /ptn/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ptn/errors.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | 4 | class ScanImportError(Exception): 5 | pass 6 | -------------------------------------------------------------------------------- /ptn/templates/500.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block data %} 3 |
Return to the Projects page.
6 | {% endblock %} 7 | -------------------------------------------------------------------------------- /ptn/templates/404.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block data %} 3 |Return to the Projects page.
6 | {% endblock %} 7 | -------------------------------------------------------------------------------- /ptn/static/ptnotes.js: -------------------------------------------------------------------------------- 1 | function toggle(id) 2 | { 3 | var e = document.getElementById(id); 4 | if ( e.style.display == 'block' ) 5 | e.style.display = 'none'; 6 | else 7 | e.style.display = 'block'; 8 | } -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine 2 | MAINTAINER Jayson Grace6 | Project Summary | 7 | Imported Hosts | 8 | Attack Notes | 9 | Host Notes | 10 | Import Data 11 |
12 | 13 | {% if item != {} %} 14 |{{ item['note'] }}
17 | {% endif %}
18 | {% endblock %}
19 |
--------------------------------------------------------------------------------
/ptn/templates/notes.html:
--------------------------------------------------------------------------------
1 | {% extends "base.html" %}
2 | {% block data %}
3 |
4 | 6 | Project Summary | 7 | Imported Hosts | 8 | Attack Notes | 9 | Host Notes | 10 | Import Data 11 |
12 | 13 | {% for note in notes %} 14 | {% if note[1] != "" and note[1] != None %} 15 |{{ note[1] }}
17 | {% endif %}
18 | {% endfor %}
19 | {% endblock %}
20 |
--------------------------------------------------------------------------------
/ptn/templates/base.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |