commit
6a31c5b358
7 changed files with 451 additions and 0 deletions
@ -0,0 +1,96 @@ |
||||
# ---> Python |
||||
# Byte-compiled / optimized / DLL files |
||||
__pycache__/ |
||||
*.py[cod] |
||||
*$py.class |
||||
|
||||
# C extensions |
||||
*.so |
||||
|
||||
# Distribution / packaging |
||||
.Python |
||||
env/ |
||||
build/ |
||||
develop-eggs/ |
||||
dist/ |
||||
downloads/ |
||||
eggs/ |
||||
.eggs/ |
||||
lib/ |
||||
lib64/ |
||||
parts/ |
||||
sdist/ |
||||
var/ |
||||
wheels/ |
||||
*.egg-info/ |
||||
.installed.cfg |
||||
*.egg |
||||
|
||||
# PyInstaller |
||||
# Usually these files are written by a python script from a template |
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it. |
||||
*.manifest |
||||
*.spec |
||||
|
||||
# Installer logs |
||||
pip-log.txt |
||||
pip-delete-this-directory.txt |
||||
|
||||
# Unit test / coverage reports |
||||
htmlcov/ |
||||
.tox/ |
||||
.coverage |
||||
.coverage.* |
||||
.cache |
||||
nosetests.xml |
||||
coverage.xml |
||||
*,cover |
||||
.hypothesis/ |
||||
|
||||
# Translations |
||||
*.mo |
||||
*.pot |
||||
|
||||
# Django stuff: |
||||
*.log |
||||
local_settings.py |
||||
|
||||
# Flask stuff: |
||||
instance/ |
||||
.webassets-cache |
||||
|
||||
# Scrapy stuff: |
||||
.scrapy |
||||
|
||||
# Sphinx documentation |
||||
docs/_build/ |
||||
|
||||
# PyBuilder |
||||
target/ |
||||
|
||||
# Jupyter Notebook |
||||
.ipynb_checkpoints |
||||
|
||||
# pyenv |
||||
.python-version |
||||
|
||||
# celery beat schedule file |
||||
celerybeat-schedule |
||||
|
||||
# SageMath parsed files |
||||
*.sage.py |
||||
|
||||
# dotenv |
||||
.env |
||||
|
||||
# virtualenv |
||||
.venv |
||||
venv/ |
||||
ENV/ |
||||
|
||||
# Spyder project settings |
||||
.spyderproject |
||||
|
||||
# Rope project settings |
||||
.ropeproject |
||||
|
@ -0,0 +1,5 @@ |
||||
MIT License |
||||
Copyright (c) <year> <copyright holders> |
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
@ -0,0 +1,27 @@ |
||||
package : fws-variables-debug |
||||
version : 1 |
||||
architecture : all |
||||
section : base |
||||
priority : high |
||||
maintainer : Daniel Berteaud <daniel@firewall-services.com> |
||||
description : Encrypted vars debuging package |
||||
depends : |
||||
conflicts : |
||||
maturity : PROD |
||||
locale : |
||||
target_os : windows |
||||
min_os_version : 5.0 |
||||
max_os_version : |
||||
min_wapt_version : 1.5 |
||||
sources : |
||||
installed_size : |
||||
impacted_process : |
||||
editor : Firewall Services |
||||
keywords : |
||||
licence : MIT |
||||
homepage : https://www.firewall-services.com |
||||
package_uuid : |
||||
signer : Daniel Berteaud |
||||
signer_fingerprint: |
||||
signature_date : |
||||
signed_attributes : |
After Width: | Height: | Size: 9.5 KiB |
@ -0,0 +1,27 @@ |
||||
# -*- coding: UTF-8 -*- |
||||
from setuphelpers import * |
||||
|
||||
uninstallkey = [] |
||||
variables = {} |
||||
|
||||
|
||||
# Read local variables file if available |
||||
if isfile(makepath(programfiles32,'wapt','private','symetric.txt')) and isfile(makepath(programfiles32,'wapt','private','variables.txt')): |
||||
print('Reading local encrypted variables file') |
||||
from cryptography.fernet import Fernet |
||||
import yaml |
||||
key = open(makepath(programfiles32,'wapt','private','symetric.txt'),'r').read() |
||||
print('Key is %s', % key) |
||||
f = Fernet(key) |
||||
print('Fernet object created') |
||||
crypted_var = open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read() |
||||
print('Encrypted vars found : %s' % crypted_var) |
||||
decrypted_var = f.decrypt(crypted_var) |
||||
print('Decrypted vars %s' % decrypted_var |
||||
|
||||
def install(): |
||||
print('Nothing to do') |
||||
|
||||
def uninstall(): |
||||
print('Nothing to do') |
||||
|
Loading…
Reference in new issue