Exemple #1
0
 def initialize(self):
     # Initialization
     self.report = Report(self.wallet.initial_balance, self.pairs,
                          self.root_report_currency,
                          self.bot.get_pair_delimiter())
     self.report.set_verbosity(self.verbosity)
     self.plot = Plot()
Exemple #2
0
    print "> Processing", sample_path
    
    # Process the sample with sandbox
    sandbox = Sandbox(config_file)
    

    if cpu == 'auto':
        filetype, platform = sandbox.identify_platform(sample_path)
        print "> CPU:", platform
        cpu = platform
    print "> Interpreter:", interpreter
    result = sandbox.execute(sample_path, cpu, '1', interpreter)

    # Process the sanbox result to prepare a DICT report
    reporter =  Report(sample_path, result)

    print "> Generating report"
    # Retrive the report
    report = reporter.get_report()

    # Dump the Report in JSON format

    json_report = json.dumps(report, indent=4, sort_keys=True)
    
    with open(report_path, 'w') as f:
        f.write(json_report)
    
    print "> Report written to", report_path  

    # Store Result in ES
Exemple #3
0
from flask import Flask
from . import templates
from .utils import *

import core.flags as flags
import threading
import requests
import logging
import types
import sys
import os
import re

app = Flask("Slack Events Server")
seen = []
report = Report()
watchlist = reload_watchlist()


def initialize():
    report.set_config(argsc.config)


def command_ping(args):
    return "pong"


def command_help(args):
    code_base_update = True if float(
        metadata["version"]["monitorizer"]) < float(
            metadata_github["version"]["monitorizer"]) else False