• Stars
    star
    271
  • Rank 150,908 (Top 3 %)
  • Language
    C++
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

通过反射DLL注入、Win API、C#、以及底层实现NetUserAdd方式实现BypassAV进行增加用户的功能,实现Cobalt Strike插件化

BypassUserAdd

Subscription

通过反射DLL注入、Win API、C#、以及底层实现NetUserAdd方式实现BypassAV进行增加用户的功能,实现Cobalt Strike插件化

Usage

结合cna使用,直接load cna然后选对应的UserAdd方式即可

Note

暂时先只支持x64

部分代码参考idiotc4t师傅,非常感谢师傅的分享 主要实现了四种方式:

    1. 通过编写反射DLL实现API(NetUserAdd)添加用户
    1. 通过编写反射DLL实现重新实现NetUserAdd底层封装(主要是利用MS-SAMR)进行用户添加
    1. 通过微软提供C#利用活动目录创建用户方式,实现内存调用(execute-assembly) 参考:https://docs.microsoft.com/zh-cn/troubleshoot/dotnet/csharp/add-user-local-system
    1. 通过上传重写NetUserAdd底层实现添加用户的可执行程序实现添加用户

使用过程中第2和4种方式设置的用户默认是未启用状态,AV一般不会监控账户启用而会监控账户禁用,因此还需要net user 对应的账户名称 /active:yes

More Repositories

1

RasmanPotato

Abuse Impersonate Privilege from Service to SYSTEM like other potatoes do
C
331
star
2

Shellcode_Memory_Loader

基于Golang实现的Shellcode内存加载器,共实现3中内存加载shellcode方式,UUID加载,MAC加载和IPv4加载,目前能过主流杀软(包括Windows Defender)
Go
233
star
3

PetitPotam

替代PrintBug用于本地提权的新方式,主要利用MS-EFSR协议中的接口函数 借鉴了Potitpotam中对于EFSR协议的利用,实现了本地提权的一系列方式 Drawing on the use of the EFSR protocol in Potitpotam, a series of local rights escalation methods have been realized
C
140
star
4

PrintSpoofer

PrintSpoofer的反射dll实现,结合Cobalt Strike使用
C
76
star
5

net_memory_webshell

用来存放平时写的一些net内存马,仅用于练手,需要可以自行修改
C#
75
star
6

magicNetdefs

Similar to Petitpotam, the netdfs service is enabled in Windows Server and AD environments, and the abused RPC method allows privileged processes to access malicious pipes for exploitation
C
50
star
7

Extracted_WD_VDM

Windows Defender VDM lua collections
Lua
39
star
8

goHashDumper

用于Dump指定进程的内存,主要利用静默退出机制(SilentProcessExit)和Windows API(MiniDumpW)实现
25
star
9

magicDiagTrack

DiagTrack Eop (From Service Account to SYSTEM)
C
20
star
10

magicAzureAttestService

针对于AzureAttestService服务的本地提权Eop,微软表示已经进行修复
C
19
star
11

sucksAV

This project used to learn golang and try to bypass AV
Go
18
star
12

Laravel_CVE-2021-3129_EXP

Python
17
star
13

ProcessPlayer

一些进程注入或者Shellcode注入的实例代码,用于练习和熟悉
C
17
star
14

listTokeninfoByPipe

用于列出基于管道模拟RPC客户端获得令牌时的令牌详细信息和通过转化为主令牌从而执行创建进程等相关操作
C++
6
star
15

crisprss

1
star
16

wikicrawl

Python
1
star
17

crisprss.github.io

HTML
1
star
18

csdn_crawl

Python
1
star
19

token_vault

Used to be familiar with and understand the related mechanism of Token in Windows
Rust
1
star
20

zhipinspider

Python
1
star
21

CVEs

List for some of my cves
1
star
22

ProcessMonitor

ProcessMonitor
C++
1
star