AiPT is a powerful command-line tool that executes a series of commands defined in a JSON file. It supports both local and remote command sources, making it flexible for various use cases.
- Execute commands from a local JSON file or a remote URL
- Cross-platform support (Windows and Unix-based systems)
- Built-in commands for shell execution, file operations, process management, and system information
- Recursive and non-recursive directory listing
- Compact binary size with optional UPX compression
-
Clone the repository:
git clone https://github.com/Karib0u/AiPT.git cd AiPT
-
Build the project:
go build -ldflags="-s -w" -o AiPT
This command will create an optimized binary with reduced size.
-
(Optional) Further compress the binary using UPX:
- Download and install UPX from https://upx.github.io/
- Run the following command:
upx --best --lzma AiPT
Run AiPT with a command source:
./AiPT [command_source]
If no command source is provided, it will use the default remote URL: https://example.com/commands_to_execute.json
To use a local test file:
./AiPT test
This will use the local file commands_to_execute.json
instead of the remote URL.
AiPT supports the following built-in commands:
-
shell
: Execute a shell command- Usage:
shell [command]
- Usage:
-
file
: Perform file operations- Usage:
file [action] [path] [content]
- Actions: create, update, read, delete, list, tree
- Usage:
-
process
: Manage processes- Usage:
process [action] [args]
- Actions: list, create, kill
- Usage:
-
sysinfo
: Display system information- Usage:
sysinfo
- Usage:
The command source should be a JSON file containing an array of objects with the following structure:
[
{
"name": "command_name",
"params": ["param1", "param2", ...]
},
...
]
AiPT uses the following external libraries:
github.com/shirou/gopsutil/v3
: For system and process information
[Add your license information here]
[Add contribution guidelines here]