-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
249 additions
and
63 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
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,21 @@ | ||
README.md | ||
setup.py | ||
quasar/__init__.py | ||
quasar/__main__.py | ||
quasar/app.py | ||
quasar/dataset.py | ||
quasar/detector.py | ||
quasar/detector_flask.py | ||
quasar/evolution.py | ||
quasar/neuralnet.py | ||
quasar/request.py | ||
quasar/request_parser.py | ||
quasar/visualize.py | ||
quasar.egg-info/PKG-INFO | ||
quasar.egg-info/SOURCES.txt | ||
quasar.egg-info/dependency_links.txt | ||
quasar.egg-info/entry_points.txt | ||
quasar.egg-info/requires.txt | ||
quasar.egg-info/top_level.txt | ||
scripts/proxy.sh | ||
scripts/train.sh |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,9 @@ | ||
""" | ||
Quasar | ||
A fully artificaially intelligent firewall | ||
""" | ||
|
||
__version__ = "1.0.0" | ||
__author__ = 'Kyro' | ||
__credits__ = 'KyroDev' |
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
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,80 @@ | ||
Metadata-Version: 2.1 | ||
Name: quasar-project | ||
Version: 1.0.0 | ||
Summary: An Artificial Intelligent firewall that detects malicious HTTP requests | ||
Home-page: https://github.com/kyro-dev/Quasar-Project | ||
Author: Kyro Dev | ||
Author-email: [email protected] | ||
License: UNKNOWN | ||
Description: # Quasar Firewall | ||
An AI powered firewall designed to detect mallicious HTTP requests and decide weather to process them or not. | ||
|
||
``` | ||
pip install quasar-project-firewall | ||
``` | ||
|
||
# Usage | ||
## As Flask Middleware | ||
*Note: Model must be trained before starting proxy server* | ||
```python | ||
from detector_flask import DetectorMiddleware | ||
... | ||
app.wsgi_app = DetectorMiddleware(app.wsgi_app) | ||
... | ||
``` | ||
## Starting Proxy From Command Line | ||
*Note: Must have python installed on local machine and added to PATH*<br> | ||
*Note: Model must be trained before starting proxy server* | ||
|
||
### **With Bash** | ||
Call `proxy.sh` with paramaters `target` and `port` | ||
- `target` is the proxy destination | ||
- defaults to `http://localhost:8080` | ||
- `port` is the local port to run the server on | ||
- defaults to 5000 | ||
|
||
Example: | ||
```bash | ||
proxy.sh [target] [port] | ||
``` | ||
|
||
### **As Python Module** | ||
- `options` | ||
- `-s` or `--serve` to start the proxy server | ||
- `-t` or `--train` to train the model | ||
- Default | ||
|
||
Example: | ||
```bash | ||
python -m quasar_firewall [options] [target] [port] | ||
``` | ||
|
||
Redirect requests from original server to proxy server | ||
|
||
|
||
## Training the Model | ||
*Note: Must have python installed on local machine and added to PATH* | ||
|
||
### **With Bash** | ||
Call `train.sh` | ||
|
||
Example: | ||
```bash | ||
train.sh | ||
``` | ||
|
||
### **As Python Module** | ||
Example: | ||
```bash | ||
python -m quasar_firewall -t | ||
``` | ||
|
||
|
||
Platform: UNKNOWN | ||
Classifier: Intended Audience :: Developers | ||
Classifier: Intended Audience :: Information Technology | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: License :: OSI Approved :: GNU General Public License (GPL) | ||
Classifier: Operating System :: OS Independent | ||
Requires-Python: >=3.6 | ||
Description-Content-Type: text/markdown |
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,21 @@ | ||
README.md | ||
setup.py | ||
quasar/__init__.py | ||
quasar/__main__.py | ||
quasar/app.py | ||
quasar/dataset.py | ||
quasar/detector.py | ||
quasar/detector_flask.py | ||
quasar/evolution.py | ||
quasar/neuralnet.py | ||
quasar/request.py | ||
quasar/request_parser.py | ||
quasar/visualize.py | ||
quasar_project.egg-info/PKG-INFO | ||
quasar_project.egg-info/SOURCES.txt | ||
quasar_project.egg-info/dependency_links.txt | ||
quasar_project.egg-info/entry_points.txt | ||
quasar_project.egg-info/requires.txt | ||
quasar_project.egg-info/top_level.txt | ||
scripts/proxy.sh | ||
scripts/train.sh |
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 @@ | ||
|
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,3 @@ | ||
[console_scripts] | ||
quasar = quasar.__main__:main | ||
|
Oops, something went wrong.