Jump to content

Recon Scan API return "Module returned empty response"


Rainybow

Recommended Posts

use python api to scan,return {'error': 'Module returned empty response'}

device:NANO 2.4.2

python :

payload: {"apiToken": "c1e60aafbaff57574dc141a6be5050f32aef704825727150180a507bc0c4b336d1ed529218cbff41f222fd404236ffc4c255f147c5f03e2b05acb4f6ee868154", "system": "notifications", "action": "addNotification", "message": "Hello API"}
url: http://172.16.42.1:1471/api/
headers: {'User-Agent': 'PyPapple v0.1', 'Content-Type': 'application/json', 'Accept': 'application/json,'}
{'success': True}
payload: {"apiToken": "c1e60aafbaff57574dc141a6be5050f32aef704825727150180a507bc0c4b336d1ed529218cbff41f222fd404236ffc4c255f147c5f03e2b05acb4f6ee868154", "system": "notifications", "action": "listNotifications"}
url: http://172.16.42.1:1471/api/
headers: {'User-Agent': 'PyPapple v0.1', 'Content-Type': 'application/json', 'Accept': 'application/json,'}
[{'message': 'Hello API', 'time': '2019-03-23 14:31:29'}]
payload: {"apiToken": "c1e60aafbaff57574dc141a6be5050f32aef704825727150180a507bc0c4b336d1ed529218cbff41f222fd404236ffc4c255f147c5f03e2b05acb4f6ee868154", "module": "Recon", "action": "startScan", "scanType": "apOnly", "scanDuration": 10}
url: http://172.16.42.1:1471/api/
headers: {'User-Agent': 'PyPapple v0.1', 'Content-Type': 'application/json', 'Accept': 'application/json,'}
{'error': 'Module returned empty response'}

 

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...