Mod Loader for CMD with Multithreading Support

简介

cocmd 工具通过在进程空间中加载多个 cmd.dll 实例实现了真正意义上的多线程执行批处理脚本

其中 cmd.dll 修改自 Win7 SP1 中的 32 位 cmd.exe

不同于 start /b 的启动方式,因为环境变量和进程环境是绑定的,所以多个脚本线程间可以实时共享变量以及 GDI 句柄等资源

不过肯定没有 powershell 这种原生的好用就是了(x

支持 Windows 7~10 32/64 位系统

编译

运行目录下 make.bat 即可编译 cocmd,需要 mingw64 以及 libpthread

线程控制

cocmd 通过多个 cmd 实例并行执行脚本,支持通过锁机制对线程进行控制,避免冲突

启动多线程控制台

cocmd [string1] [string2] ...

举例:cocmd 1.bat 2.bat 3.bat

在同一进程空间下并行执行 1.bat、2.bat、3.bat 三个脚本

启动交互式控制台

cocmd ""

仅启动一个交互式 cmd 实例

获取全局线程锁

set thread=lock

释放全局线程锁

set thread=unlock

API 交互

cocmd 集成了由 Aloxaf 开发的 CAPIx,所有线程均支持 CAPI SetCall 调用

内存操作

set CAPI=Mem Alloc/Free/Put/Print/Copy

调用函数

set CAPI=API Call/Exec

获取基本信息

set CAPI=CAPIDLL Ver

设置调用方式

设置 SetCall 调用方式

set CAPI=SetCall Enable/Disable

设置 GetCall 调用方式

set CAPI=GetCall Enable/Disable

项目引用

CAPIx

https://github.com/Aloxaf/CAPIx

GNU Lesser General Public License v3.0

Similar Resources

My old heavily modified version of bigbase v1, it has an impulse-like scrollbar, ytd header loader, Vector3 fix + gamestate fix and some other misc changes!

My old heavily modified version of bigbase v1, it has an impulse-like scrollbar, ytd header loader, Vector3 fix + gamestate fix and some other misc changes!

Old Bigbase V1 UI This is my old ui for bigbase v1 but i dont need it anymore because the dev of solar mod menu stole it, and the new paragon menu (Fr

Apr 22, 2022

Undetectable Loader for Cobalt Strike Using Syscalls And A External Shellcode

Hellsgate Undetectable Loader for Cobalt Strike Using Syscalls And A External Shellcode Features: Using Syscalls from Hellsgate tech loading the shell

Nov 5, 2021

An advanced loader for infecting devices.

An advanced loader for infecting devices.

loader - An advanced loader for infecting devices. loader is a minimal, advanced loader written in C that uses its built-in parser to parse data from

Nov 24, 2021

loader for .gg/stayfatal - fatality.win crack 2021

fatality-ldr PLEASE MAKE SURE YOU DOWNLOAD LOADER FROM HERE, ALL OTHER SOURCES MAY BE UNTRUSTED. You can download the latest loader here loader for .g

Jun 10, 2022

A single-file GLTF loader with no dependencies.

mvImporter Basic Usage #define MV_IMPORTER_IMPLEMENTATION #include "mvImporter.h" int main() { mvGLTFModel gltfmodel = mvLoadGLTF("C/dev/Resource

Apr 26, 2022

Shellcode loader written in rust. Strives to evade modern EDR solutions.

Pestilence What is pestilence? Pestilence is a shellcode loader written in rust. It strives to evade modern EDR solutions. How does it work? It loads

Jun 16, 2022

Implementation of Linking Loader Algorithm using CPP.

Linking Loader Implementation in CPP Instructions for executing the file First run the Linking_Loader_PASS1.cpp file using the cmd - g++ Linking_Load

Jan 23, 2022

Loader for PDAFT. Click on Wiki or Releases, not Code.

Loader for PDAFT. Click on Wiki or Releases, not Code.

Jun 11, 2022

Evasive shellcode loader for bypassing event-based injection detection (PoC)

Evasive shellcode loader for bypassing event-based injection detection (PoC)

DripLoader (PoC) Evasive shellcode loader for bypassing event-based injection detection, without necessarily suppressing event collection. The project

Jun 18, 2022
Related tags
Inject dll to cmd.exe to prevent file execution.

Console-Process-Execution Inject dll to cmd.exe to prevent file execution. Requierments: Microsoft Detours Library - https://github.com/microsoft/Deto

Dec 19, 2021
Ccd - Edge first cd replacement tool for Windows cmd shell.
Ccd - Edge first cd replacement tool for Windows cmd shell.

Cursorial CD Cursorial CD, or ccd for short, is a cd replacement for Window's cmd shell. Unlike cd, it operates on an edge first search, so you can qu

Feb 2, 2022
the first ever open source zombie killcam mod for bo2 zombies. this repository is the original mod.

BO2 T6ZM Killcams (+ Mod Menu) my zombie killcam mod that is a work-in-progress and open sourced. this may work off plutonium but this was only suppor

Jun 6, 2022
Filter driver which support changing DPI of mouse that does not support hardware dpi changing.

Custom Mouse DPI Driver 하드웨어 DPI 변경이 불가능한 마우스들의 DPI 변경을 가능하게 하는 필터 드라이버 경고: 해당 드라이버는 완전히 테스트 되지 않았습니다 Install 해당 드라이버는 서명이 되어있지않습니다. 드라이버를 사용하려면 tests

Jun 9, 2022
PoC MSVC COFF Object file loader/injector.

COFFInjector A Proof of Concept code - loading and injecting MSVC object file. Blog post with explanation: https://0xpat.github.io/Malware_development

Jun 13, 2022
A python script loader for Grand Theft Auto San Andreas

PyLoader Introduction This is a .asi plugin that allows writing custom Python scripts for GTA SanAndreas. This plugin is still in the early stages of

May 22, 2022
Matryoshka loader is a tool that red team operators can leverage to generate shellcode for Microsoft Office document phishing payloads.

Overview Matryoshka loader is a tool that red team operators can leverage to generate shellcode for an egghunter to bypass size-limitations and perfor

Apr 25, 2022
An implementation of a Windows loader that can load dynamic-linked libraries (DLLs) directly from memory

memory-module-loader memory-module-loader is an implementation of a Windows loader that can load dynamic-link libraries (DLLs) directly from memory. T

Jun 15, 2022
Evasive shellcode loader for bypassing event-based injection detection (PoC)
Evasive shellcode loader for bypassing event-based injection detection (PoC)

(cleaned up version here: https://github.com/xinbailu/DripLoader-Ops) DripLoader (PoC) Evasive shellcode loader for bypassing event-based injection de

Jun 18, 2022
Cobalt Strike User-Defined Reflective Loader written in Assembly & C for advanced evasion capabilities.
Cobalt Strike User-Defined Reflective Loader written in Assembly & C for advanced evasion capabilities.

Cobalt Strike User-Defined Reflective Loader Cobalt Strike User-Defined Reflective Loader written in Assembly & C for advanced evasion capabilities. B

Jun 19, 2022