Giter Site home page Giter Site logo

locker's Introduction

Locker

描述

绕过杀软(静态扫描)

构建

  1. 克隆项目
git clone https://github.com/caizhe666/Locker.git
  1. 安装vcpkg
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.bat
.\vcpkg\vcpkg integrate install

https://github.com/microsoft/vcpkg#quick-start-windows

  1. 使用Visual Studio打开项目
  2. 编译

工作原理

杀软通过字符串扫描,哈希验证导入表扫描来判断一个程序是否携带病毒

字符串扫描

简单来说就是扫描程序中所有字符串,看其中是否含有恶意网址或者类似于\\.\PhysicalDrive这样不怀好意的字符串,如果有,嫌疑大大增加

哈希验证

没什么好说的,就是做个SHA256之类的比较

导入表扫描

PE(可执行文件)中含有一个导入表用于程序重定位后方便调用外部函数而生的,里面包含了程序中静态链接的函数名,以及这些函数所在的Dll(动态链接库)名,杀软通过扫描这些表,加上他们的调用顺序,以此判断程序是否恶意 如:

CreateFileW (参数: "\\.\PhysicalDrive0")
WriteFile (紧跟着CreateFileW)

就可以判断这个程序大概率会修改扇区,再加上没有签名,必杀

绕过

通过lazy-importer,动态调用函数,不在导入表留下信息

LI_FN(ReadFile)(DiskHandle, Sector, static_cast<DWORD>(sizeof(Sector)), &Bytes, nullptr)

通过XorString加密字符串

XorStrW(L"\\\\.\\PhysicalDrive0")

locker's People

Contributors

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