Skip to content

tomialagbe/pe-file-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PE File Processor

This API accepts Portable-Executable (PE) files and saves them for future consumption

Running the project

  • Clone the repository

  • In pe-server/Dockerfile, update the environment variables

  • AWS_ACCESS_KEY and AWS_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

Making a request

To send a request to the accept-file app:

POST http://localhost:8080/pe-file

This endpoint requires a multipart file parameter named peFile

Responses

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published