Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BreakingPoint REST API Python Wraper Module for interfacing to BreakingPoint appliance. Let's you connect to their appliances for simulating real-world legitimate traffic, DDoS, exploits, malware, and fuzzing.
- Loading branch information
Showing
5 changed files
with
97 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PORTNAME= bps_restpy | ||
PORTVERSION= 9.0.2 | ||
CATEGORIES= devel python | ||
MASTER_SITES= PYPI | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
|
||
MAINTAINER= dvl@FreeBSD.org | ||
COMMENT= BreakingPoint REST API Python Wraper | ||
WWW= https://pypi.org/project/bps-restpy/ | ||
|
||
LICENSE= MIT | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} | ||
|
||
USES= python:2.7+ | ||
USE_PYTHON= concurrent distutils | ||
|
||
NO_ARCH= yes | ||
|
||
.include <bsd.port.mk> |
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 @@ | ||
TIMESTAMP = 1677770198 | ||
SHA256 (bps_restpy-9.0.2.tar.gz) = f7e0e926f549e1a095019a16f198184b85791b6cc5e1a5ee7bc83aa4989f500c | ||
SIZE (bps_restpy-9.0.2.tar.gz) = 70138 |
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 @@ | ||
Module for interfacing to BreakingPoint appliance. Let's you connect to their | ||
appliances for simulating real-world legitimate traffic, DDoS, exploits, | ||
malware, and fuzzing. | ||
|
||
# Login to BPS box | ||
bps = BPS(bps_system, bpsuser, bpspass) | ||
bps.login() | ||
|
||
print("Load a canned test: ") | ||
bps.testmodel.load(canned_test_name) | ||
|
||
print("Reserve Ports") | ||
for p in port_list: | ||
bps.topology.reserve([{'slot': slot_number, 'port': p, 'group': 2}]) | ||
|
||
|
||
print("Run test and Get Stats:") | ||
test_id_json = bps.testmodel.run(modelname=canned_test_name, group=2) | ||
testid = str( test_id_json["runid"] ) | ||
run_id = 'TEST-' + testid | ||
print("Test Run Id: %s"%run_id) |
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,51 @@ | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__init__.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/bps%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/bps%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper3%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/__pycache__/restPyWrapper3%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__init__.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsAdminRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsAdminRest%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsRest%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsVEAdminRest%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/__pycache__/bpsVEAdminRest%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsAdminRest.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsRest.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/bpsVEAdminRest.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_restore%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_restore%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_update%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsadmin_update%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsveadmin_addslot%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_bpsveadmin_addslot%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_script%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/__pycache__/sample_script%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsadmin_restore.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsadmin_update.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_bpsveadmin_addslot.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/bps_restpy_v1/restv1_samples/sample_script.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/restPyWrapper.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/restPyWrapper3.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/Sample_AppSim_template.bpt | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s01_New_Reserve_Run%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s01_New_Reserve_Run%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s02_Load_Configure_Run_Report%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s02_Load_Configure_Run_Report%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s06_StrikeLists_and_Strikes%%PYTHON_EXT_SUFFIX%%.opt-1.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/__pycache__/s06_StrikeLists_and_Strikes%%PYTHON_EXT_SUFFIX%%.pyc | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/nn_sample.bpt | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s01_New_Reserve_Run.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s02_Load_Configure_Run_Report.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s03_Flow_SuperFlow_AppProfile.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s04_Configure_Network.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s05_RunCancel_EvaluateReport_and_ExportCapture.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s06_StrikeLists_and_Strikes.py | ||
%%PYTHON_SITELIBDIR%%/bps_restpy/rest_samples/s07_TestModel_Run.py |