An open API service indexing awesome lists of open source software.

https://github.com/strazzere/microengine-eicar


https://github.com/strazzere/microengine-eicar

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# microengine-eicar

A sample microengine capable of identifying "malintent" in the EICAR test file (and nothing else).
tutorial-eicar instructs the user on building this engine on top of microengine-scratch.

## Usage

Follow the instructions on wiki to launch polyswarmd or execute the following:

```
$ ./scripts/compose.sh
```

### Run the eicar.go loally

If you want to run the eicar.go locally,
then, you need to install the go component dependencies:

```
$ ./scripts/run_engine.sh
```

It installs the dependencies and runs the `eicar.go`

### Post bounty

In order to post bounty, first, you need to upload the artifacts

```
$ curl -s -F file=@[artifact_path] http://localhost:31337/artifacts
```

Then, you get the [hash] as console output.

```
$ curl -s -H 'Content-Type: application/json' -d '{"amount": "62500000000000000", "uri": "[hash]", "duration": 10}' http://localhost:31337/bounties?account=[address]"
```