Git Product home page Git Product logo

split_tools's Introduction

前言

​ 每当获取一个命令执行,但是服务器不出网,不能进行远程下载,或者写木马有限制,命令长度也有限制的苛刻条件下,可使用该工具进行木马分割,一键生成写入命令和合并或者追加命令写入木马;

​ windows在苛刻条件下也可以分段写入文本,再合并写入二进制文件,具体可以与Certutil配合,将二进制文件转换为txt,再分段写入后合并还原二进制文件;

功能介绍

  -e string
        指定base64编码文件
  -f string
        指定分割的文本
  -n int
        设置长度进行切割,默认64 (default 64)

​ 1、根据文件后缀进行分割:

当文件是txt时,会直接分割成几个txt
./Split_tools -f 1.txt

当文件是木马后缀时,会分割后生成写入命令
./Split_tools -f 1.jsp

分割txt:

image-20230307093119027

image-20230307093211722

分割木马:

image-20230307093032359

​ 2、可设置分割的长度

./Split_tools -f 1.txt -n 64

​ 3、可对文件进行base64编码

编码文件后,将生成./results/enbase64.txt文件
上传编码文件后,结合certutil -decode xxx.txt xxx.exe命令进行还原;

image-20240104111644639

注意:

目标服务器为windows时,分割的内容中如有双引号,需要闭合才能写入;
或将内容进行base64编码,分段写入后用Certutil解码。

更新记录:

[+] 2024.1.4 新增base64文件编码、输出分割命令文件

split_tools's People

Contributors

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