Git Product home page Git Product logo

scripts's Introduction

Joe Sandbox Scripts

This repository contains some useful scripts for interaction with Joe Sandbox.

jbxbalancer.py
Submit samples to multiple instances of Joe Sandbox. The script load-balances the submissions by choosing the instance with the shortest queue.
jbxmail.py
Download files from an e-mail account and analyze attachements of unread mails.
extractsigs.py
Extract the behavior signatures from downloaded XML reports.
extractscore.py
Extract the score from downloaded XML reports.

Some of the scripts depend on jbxapi.py, a lightweight module for interaction with Joe Sandbox. Install it by copying it to your current working directory or use pip for installation:

pip install jbxapi

License

All scripts in this repository are licensed under the MIT license.

jbxbalancer.py

Requirements: Python 2.7 or 3.3, jbxapi.py

Use this script to submit samples to one of multiple Joe Sandbox installations. Before submitting a sample the script queries the queue length and submits the sample to the server with the shortest queue. If submission fails, the next best server is chosen, until no servers are left.

To use the scripts, specify the servers by changing the SERVERS variable. Please also set your submission defaults in jbxapi.py. Then use it as follows:

> ./jbxbalancer.py --help
usage: jbxbalancer-oem.py [-h] [--url | --sample-url] [--comments COMMENTS]
                          [--wait-for-results] [--outdir OUTDIR]
                          PATH_OR_URL
                          
Submit samples, directories or URLs to the server with the shortest queue.
Uses jbxapi.py. Please set your submission options there.

positional arguments:
  PATH_OR_URL           Path to file or directory.

optional arguments:
  -h, --help            show this help message and exit
  --comments COMMENTS   comments (optional
  --wait-for-results, -wait
                        Set this option to let the script wait for the end of
                        the analysis
  --outdir OUTDIR, -o OUTDIR
                        Directory for saving the xml reports (optional)

submission mode:
  --url                 Analyse the given URL instead of a sample.
  --sample-url          Download the sample from the given url.

jbxmail.py

Requirements: Python 2.7 or 3.3, jbxapi.py

Use this script to analyse e-mail attachments of an IMAP mailbox. Simply adapt the following variables: SERVER, USERNAME, PASSWORD, API_URL, API_KEY, ACCEPT_TAC and modify the submission parameters to your liking.

Then call it as follows:

> ./jbxmail.py
Connecting to imap.example.net ...
Logging in as joe ...
Found 1 unread mail(s).
Submitted Invoice.docx.exe to Joe Sandbox with webid: 45212
Submitted Sample.exe to Joe Sandbox with webid: 45213
======================================================
Submitted 2 samples for analysis.

extractsigs.py

Requirements: Python 2.6

Usage:

./extractsigs dir_to_search

extractscore.py

Requirements: Python 2.6

Usage:

./extractscore dir_to_search

scripts's People

Contributors

abulhol avatar georgschoelly avatar flautossec avatar

Watchers

 avatar

Forkers

cyberdeep

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.