Giter VIP home page Giter VIP logo

vthunt's Introduction

HOW TO INSTALL

vtreport.py

This module crawl virustotal report and store it to local database using public API. Needs virustotal package, don't forget to copy/paste it.

vtnoti.py

This module stands for gathering virustotal hunting notification. Needs virustotal private API.

vtdownload.py

This module stands for downloading samples which filtered out by virustotal hunting rule. Needs virustotal private API. Make sure that /usr/src/app/log path is as same as config['log']['logfile']

Creating Docker Image

# 베이스 이미지
FROM python:3
# 폴더관련 작업(생성, 작업폴더설정, 외부노출)
RUN mkdir -p /usr/src/app
RUN mkdir -p /usr/src/app/log
WORKDIR /usr/src/app
VOLUME /usr/src/app/log
# requirements.txt 이미지로 복사 및 모듈 설치
COPY requirements.txt ./
RUN pip install --no-cache-dir --requirement requirements.txt
# 소스코드 복사
COPY . .
# 스크립트 실행
CMD [ "python", "./main.py" ]
docker build -t vthunt .

Creating Container

docker \
  run \
  -d \
  -it \
  --volume /volume1/docker/python/vthunt:/usr/src/app/log \
  --name vthunt_con \
  vthunt

store.py

This module stands for storing samples to sample server from specific local directory. Manual uploading to sample server has no effects because sample server has own database describing sample binary's location in its filesystem. store.py monitors local directory every 2 seconds, and stores all files to sample server. Monitoring directory in container is /usr/src/app/monitor, configurable at config.yaml

Creating Docker Image

# 베이스 이미지
FROM python:3
# 폴더관련 작업(생성, 작업폴더설정, 외부노출)
RUN mkdir -p /usr/src/app
RUN mkdir -p /usr/src/app/log
WORKDIR /usr/src/app
VOLUME /usr/src/app/log
# requirements.txt 이미지로 복사 및 모듈 설치
COPY requirements.txt ./
RUN pip install --no-cache-dir --requirement requirements.txt
# 모니터링 폴더 노출
RUN mkdir -p /usr/src/app/monitor
VOLUME /usr/src/app/monitor
# 소스코드 복사
COPY . .
# 스크립트 실행
CMD [ "python", "./store.py" ]
docker build -t store .

Creating Container

docker \
  run \
  -d \
  -it \
  --volume /volume1/docker/python/store_sample:/usr/src/app/log \
  --volume /volume1/docker/python/store_sample/monitor:/usr/src/app/monitor \
  --name store_con \
  store

vthunt's People

Contributors

alzip avatar

Watchers

James Cloos avatar

Forkers

alzip

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.