-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
creates a setup.py installer and starts deprecation of setup.sh (issue …
- Loading branch information
Ekultek
committed
Dec 1, 2019
1 parent
c06dcbf
commit 133274c
Showing
7 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,7 @@ payloads.txt | |
traffic*.txt | ||
firewalls/* | ||
test-*.json | ||
test_env.sh | ||
test_env.sh | ||
whatwaf.egg-info/* | ||
build/* | ||
dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# have to make it a package... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from setuptools import setup, find_packages | ||
|
||
from lib.settings import VERSION | ||
from lib.formatter import fatal, error | ||
from lib.firewall_found import request_issue_creation | ||
|
||
|
||
try: | ||
setup( | ||
name='whatwaf', | ||
version=VERSION, | ||
packages=find_packages(), | ||
url='https://github.com/ekultek/whatwaf', | ||
license='GPLv3', | ||
author='ekultek', | ||
author_email='god_lok1@protonmail.com', | ||
description='Detect and bypass web application firewalls and protection systems', | ||
scripts=["whatwaf"], | ||
install_requires=open("requirements.txt").read().split("\n") | ||
) | ||
except Exception as e: | ||
import sys, traceback | ||
|
||
sep = "-" * 30 | ||
fatal( | ||
"WhatWaf has caught an unhandled exception with the error message: '{}'.".format(str(e)) | ||
) | ||
exception_data = "Traceback (most recent call):\n{}{}".format( | ||
"".join(traceback.format_tb(sys.exc_info()[2])), str(e) | ||
) | ||
error( | ||
"\n{}\n{}\n{}".format( | ||
sep, exception_data, sep | ||
) | ||
) | ||
request_issue_creation(exception_data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters