Code Monkey home page Code Monkey logo

scanner's Introduction

F-Secure Atlant API Examples

This repository contains examples for interacting with F-Secure Atlant API. F-Secure Atlant is a platform for building applications that are able to scan and detect malicious files.

Atlant provides a REST API for scanning files and managing the product configuration. Applications and services can use the API resources to analyze content using always up-to-date heuristics and statistical techniques.

Python Examples

Python examples are available in python directory. The directory contains a Python package that provides a number of utilities that demonstrate how the F-Secure Atlant APIs can be used to configure the product and scan files. The included example utilities are:

  • atlant-token: Tool for fetching access tokens from F-Secure Atlant's internal authorization server
  • atlant-get: Tool for getting setting values using configuration API
  • atlant-set: Tool for changing setting values using configuration API
  • atlant-scan: Tool for scanning files using scanning API
  • atlant-web: Example web app for scanning files
  • atlant-icap: Tool for using the ICAP interface

Running the Python Examples

On a typical Linux system, the simplest way to try out the example utilities is to install them in a virtual environment.

This can be achieved by running the following commands in project's root directory:

python3 -m venv env
source env/bin/activate
cd python
./setup.py develop

Now the example utilities should be available in current shell's path.

Java Examples

In java/scanner, there is an example command line based file scanning client written in Java 11. The client along with its dependencies can be built into a single JAR-file using Gradle:

cd java/scanner
./gradlew shadowJar

The client can be invoked as:

java -jar build/libs/scanner-all.jar AUTH-URL SCAN-URL CLIENT-ID CLIENT-SECRET FILE

Here AUTH-URL is Atlant authorization server address and SCAN-URL is a scanning server address. See F-Secure Atlant user guide for information on how to setup Atlant.

Go Examples

In go/scanner, there is an example Go command line client capable of scanning files using F-Secure Atlant file scanning API. The client can be built with:

cd go/scanner
go build

The client can be invoked as:

atlant-scanner AUTH-URL SCAN-URL CLIENT-ID CLIENT-SECRET FILE

JavaScript Examples

In javascript/scanner, there is an example command line based file scanning client build on top of Node.js. The client can be invoked as:

atlant-scanner AUTH-URL SCAN-URL CLIENT-ID CLIENT-SECRET FILE

scanner's People

Contributors

samuellauren avatar rauhma avatar

Watchers

James Cloos avatar

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.