Beispiel #1
0
def test_request_property_mapping():
    register_transform_classes(transforms)
    app.testing = True

    with app.test_client() as test_app:
        response = make_transform_call(test_app,
                                       "/run/testrequestpropertymapping/")
        assert response.status_code == 200
        data = response.data.decode('utf8')
        assert "whois-info found" in data
Beispiel #2
0
import sys
import transforms

from maltego_trx.registry import register_transform_classes
from maltego_trx.server import app
from maltego_trx.handler import handle_run

register_transform_classes(transforms)

handle_run(__name__, sys.argv, app, port=8080)