Giter VIP home page Giter VIP logo

collector's People

Contributors

andresriancho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

collector's Issues

Upload compressed data to S3

For historical reasons it would be really good to have the data in S3

The file we want to upload is OUTPUT_FILE = 'collect-output.tar.bz2', to make things easier we just:

  • Download the file from the collector EC2 instance to our host (where the AWS credentials live)
  • Upload collect-output.tar.bz2 to S3

The configuration should be part of main:

main:
 - S3: name-of-bucket/

The file should be renamed to something more unique like: revision-date.tar.bz2

Upload to s3 from EC2

Upload to s3 from EC2 instead of downloading to host running collector and then uploading.

config.yml should support calling wpa

TODO

  • config.yml should support calling wpa
  • Configure it for the w3af example
  • Make sure it works, it requires me to use the patched python to call wpa, most likely will have to use full paths in my config?

Clear network stats before w3af run

Clear network stats before w3af run so we get a better/real understanding of how much traffic w3af generated, vs. the traffic generated during install+run

Check +x

Before starting, the collection tool will make sure that all the scripts referenced by the configuration exist, and are marked +x.

Create docker image to run w3af inside

Create docker image to run w3af inside which will speedup the setup phase. Remember that we have to re-compile python now to have support for some of our tools.

TODO

  • Create a Dockerfile in collector/examples/w3af based on the w3af docker image but installing all the other things I need for profiling
  • Also update the ami to point to one that already has docker installed:
main:
  ami: ami-48eb2f20
  • Create a script to run w3af inside docker and save the profiling output to a place where I can easily download afterwards

Generic performance output

It is a good idea to also include some generic performance output which the collection tool can gather using the psutils module. Even if w3af can collect it itself, the generic output would be useful to others that don't want to modify their software.

Cache metrics for w3af example

I would like to have a log for the different caches in w3af, at least these caches are important and need to be analyzed:

  • HTTP request/response cache
  • DocumentParser cache

The log can look like this:

epoch,result,key
123,MISS,http://foo.com/abc
124,HIT,http://foo.com/abc

I'll parse it in the analyzer to get the real stats.

Tests must be reproduceable from output

User story

As a user I want to be able to retrieve the collector output and be able to run EXACTLY THE SAME TEST again. In order to do this I need this information to be in the output file:

  • The config.yml
  • Collector version/git revision
  • All files referenced by config.yml
  • Any command line arguments passed to the collector

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.