This API accepts Portable-Executable (PE) files and saves them for future consumption
-
Clone the repository
-
In pe-server/Dockerfile, update the environment variables
-
AWS_ACCESS_KEY
andAWS_SECRET_ACCESS_KEY
to your AWS access and secret keys. -
Run this command from inside the pe-file-processor directory
docker-compose up
This starts up redis
and the api server on port 8080
To send a request to the accept-file app:
POST http://localhost:8080/pe-file
This endpoint requires a multipart file parameter named peFile
If a previously unseen PE file is sent,the API responds with
200 OK
{
success: true
}
If a duplicate of a previously uploaded file is sent, the API responds with
409 Conflict
{
count: 2
}
where count is the number of times the file has been received.