MaltegoTech / maltego-trx

Maltego Transform library for Python
MIT License
218 stars 45 forks source link

POST Request Testing Transform URL #60

Open cmlh opened 9 months ago

cmlh commented 9 months ago

A POST request is used to test the existence of the Transform URL on cetas.paterva.com as configured below:

image

Can this POST request be specified so the Traceback exception can be caught during this test please?

crest42 commented 8 months ago

Hey Christian, thanks for submitting this issue. Can you elaborate a bit further? What Traceback exception is thrown and where? What do you mean with "specified"? The content and the url?

cmlh commented 8 months ago

The if request.body.len>0: test was removed when the bottle route was defined with Maltego.py

Maltego.py was deprecated by the Python Package.

crest42 commented 8 months ago

Still not sure if I can follow. If I use any of the examples in https://github.com/MaltegoTech/maltego-trx/tree/master/maltego_trx/template_dir and the lastest iTDS version I get a successful check and no exception in TRX.

Can you tell me more about the exception you are seeing?

cmlh commented 8 months ago

I'll reopen this issue once I've documented the next Traceback as I deliberately don't retain logs.

cmlh commented 6 months ago

I've reproduced the error below when accessing the "MaltegoMsg/Request" "Type: str: The input entity type":

Traceback (most recent call last): File "/maltego_trx/server.py", line 40, in run_transform return transform_method(client_msg), 200 # Transform method ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... AttributeError: 'MaltegoMsg' object has no attribute 'Type'