Skip to content

Releases: threat9/threat9-test-bed

Add `TCPServiceMock` and `UDPServiceMock`

10 Jul 16:55
142f59b
Compare
Choose a tag to compare

Add TCPServiceMock and UDPServiceMock

`TelnetServiceMock` improvements

16 Dec 16:34
95bf6b4
Compare
Choose a tag to compare
  • Add support for adding banner to TelnetServiceMock. (#14)
  • Add support for adding custom credentials to TelnetServiceMock. (#13)

Fix `TelnetServer` deadlock on teardown.

09 Dec 14:42
eb220b6
Compare
Choose a tag to compare

Release dibbed service port in service init

05 Dec 20:21
2bf7c3e
Compare
Choose a tag to compare
v0.5.3

Release dibbed service port in service init. (#7)

Use `werkzeug.serving.make_server` to levrage shared state.

05 Dec 19:54
11be942
Compare
Choose a tag to compare
* Use `werkzeug.serving.make_server` to levrage shared state
* Dib port for service on class init

Pass `host` and `port` arguments to `werkzeug`s server thread

03 Dec 16:52
06f0bf9
Compare
Choose a tag to compare
v0.5.1

Pass `host` and `port` arguments to `werkzeug`s server thread. (#5)

Add SSL support for `HttpServiceMock`

03 Dec 14:19
4ca063e
Compare
Choose a tag to compare

Adhoc SSL support

You can serve HttpScenarioService using adhoc SSL certificate by setting
ssl keyword argument to True:

from threat9_test_bed.service_mocks import HttpScenarioService

@pytest.fixture(scope="session")
def trash_target():
    with HttpScenarioService("127.0.0.1", 8443, HttpScenario.TRASH, 
                             ssl=True) as http_service:
        yield http_service

Add `Telnet` service

29 Nov 18:43
42afc75
Compare
Choose a tag to compare
v0.4.0

Add Telnet service. (#3)

Add gunicorn to requirements

19 Nov 20:44
Compare
Choose a tag to compare
v0.3.1

Add gunicorn to requirements.

Handle unbuffered requests

19 Nov 20:03
657c706
Compare
Choose a tag to compare
  • GunicornBasedHttpService
    Flask application served using gunicorn in separate process using async workers (threads in this case). Application served by this base class suppose to handle unbuffered requests, nginx in this case is no option hence async workers.
  • WSGIRefBasedHttpService
    Flask application served using wsgiref in separate thread. We can leverage shared state between main thread and thread handling wsgiref server and dynamically attach Mock object as view functions.
  • adhoc ssl support
  • random port discovery