GithubHelp home page GithubHelp logo

n0viii / avred-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dobin/avred-server

0.0 0.0 0.0 37 KB

The AMSI server for Avred

License: GNU General Public License v3.0

Python 100.00%

avred-server's Introduction

avred-server

Provides an HTTP interface to scan files with the installed AntiVirus software on Windows via AMSI.

Details

To be used with the AV Reduction (avred) project. Exposes a port, which accepts a (virus) file and runs an AV against it.

Returns {"detected": true} if file was detected by AV, or {"detected": false} if it wasn't.

Setup

  1. Create a Windows VM and install the AV of your choosing (or use pre-installed Defender)
  2. install python3, pip3
  3. pip -r requirements.txt
  4. Disable sample submission on your AV
  5. Browser to http://localhost:8001/test to check if it works

Note: If you get a `ImportError: DLL load failed while importing _brotli", see google/brotli#782, solution is:

install "vc_redist.x64.exe" from this link https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

Run it as a windows service

Use nssm 2.24.101 from https://nssm.cc/ 64 bit version, use a admin terminal.

Find python.exe path:

C:\Users\hacker\Downloads>where python.exe
C:\Users\hacker\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\hacker\AppData\Local\Microsoft\WindowsApps\python.exe

Configure service:

nssm.exe install AvredServer

Set exe, working directory and target python. Like:

nssm.exe set AvredServer Application "C:\Users\hacker\AppData\Local\Programs\Python\Python310\python.exe"
nssm.exe set AvredServer AppDirectory "C:\Users\hacker\Desktop\avred-server\"
nssm.exe set AvredServer AppParameters "C:\Users\hacker\Desktop\avred-server\avred_server.py"
nssm.exe start AvredServer

Test with http://localhost:8001/test

avred-server's People

Contributors

dobin 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.