Code Monkey home page Code Monkey logo

nimsyscalls's Introduction

NimSysCalls

从挂起进程内存中获取干净的ntdll副本,使用syscall绕过AV/EDR

简体中文说明 | English README

更新

  • 20220315:获取ntdll中syscall地址,然后调用。能够绕过对syscall指令执行的位置的检查

介绍

  1. 创建一个挂起的进程
  2. 获取ntdll的基址
  3. 从挂起的进程中获取ntdll内容复制到本进程
  4. 保存syscall的调用代码
  5. 执行syscall调用

如何使用

  1. 下载仓库到本地
  2. 将需要syscall调用的函数写到 functions.txt文件中
  3. 执行 python3 NimSysCalls.py 生成一个syscalls.nim文件
  4. 编译并执行,例子在example.nim.

实例

>> nim c -d:strip --opt:size -d:release -f -r example.nim
[*] Create process notepad.exe
[*] Read clean copy of ntdll from notepad.exe and kill the process
[*] Get export function from clean copy of ntdll
[*] Start create C:\Users\pw.log
[*] Syscall code: 85
[*] NtCreateFile return: 0
[*] Create file C:\Users\pw.log success

引用

nimsyscalls's People

Contributors

aeverj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.