Giter Site home page Giter Site logo

patrowlenginesutils's People

Contributors

agrandville avatar ankirama avatar bdoublet91 avatar makyotox avatar sebastien-powl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

patrowlenginesutils's Issues

Making getstatus_scan function name more accurate

Getting functions are idempotents functions, such functions can be called several times and the result should be the same because they does not modify resources.
In class PatrowlEngine, calling getstatus_scan function will overwrite scan.status to FINISHED if all threads are ended.
It would be usefull to use this state to let engine forward errors to the manager console (eg: process missing, bad parameters,...)

ID Severity Message Type Timestamp
6753 ERROR [EngineTasks/startscan_task/86a1aa2e-c087-4c20-bfb4-7e4df73c59ab] CheckStatus - response_status_code=200, response_status=ERROR, response_details=scan#208 options parsing failed ('unknown option', 'check_protocols'). Task failed. ERROR 2020/06/18-09:14:26
6749 INFO [EngineTasks/startscan_task/86a1aa2e-c087-4c20-bfb4-7e4df73c59ab] Engine 'TESTSSL01_ENGINE' has been selected. INFO 2020/06/18-09:14:26
6748 INFO [EngineTasks/startscan_task/86a1aa2e-c087-4c20-bfb4-7e4df73c59ab] Starting task... INFO 2020/06/18-09:14:26

to avoid compatibility issue with current version, the only accepted return values are SCANNING or FINISHED, I proposed to just add a third state 'ERROR' and to add support for this state in PatrowlManager. Reason will be 'undefined' in this version.

A new branch, with a rewrite getstatus_scan who returns new stream like this one:

{
  "finished_at": 1592464466470,
  "reason": "scan#208 options parsing failed ('unknown option', 'check_protocols')",
  "status": "ERROR"
}

a new method updatestatus_scan who return same response and update scan status.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.