gchq/CyberChef-server là một trong những repo mã nguồn mở mà TopGit theo dõi, hiện có 180 sao, viết chủ yếu bằng JavaScript. A server providing RESTful access to CyberChef
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Run CyberChef in a server and provide an API for clients to send Cyberchef recipes to bake.
Motivation
CyberChef has a useful Node.js API, but sometimes we want to be able to programmatically run CyberChef recipes in languages other than JavaScript. By running this server, you can use CyberChef operations in any language, as long as you can communicate via HTTP.
Example use
Assuming you've downloaded the repository and are running it locally:
{
value: "SO LONG, AND THANKS FOR ALL THE FISH",
type: "string"
}
Features
Compatible with recipes saved from CyberChef.
After using CyberChef to experiment and find a suitable recipe, the exported recipe JSON can be used to post to the /bake endpoint. Just copy/paste it in as your recipe property as part of the POST body.
Installing
While the instructions below are straightforward, it's worth understanding what happens under the hood as quirks in the installation process can cause issues with upgrades etc. The upstream CyberChef library uses a postinstall script to manipulate some dependencies after installation. That postinstall script doesn't work when installing CC as a dependency into another project, so we now have our own postinstall process to install the CyberChef library (hence it does not appear in the package.json dependency list).
This process can cause problems when updating libs, so the recommended approach is to remove node_modules and package-lock.json and install from scratch.
Clone the repository
cd into the project and run npm install
Run npm run
In a browser, navigate to localhost:3000 to see usage documentation.
Docker
A Docker image can be built, then run by doing the following:
docker run -it --rm --name=cyberchef-server -p 3000:3000 cyberchef-server
API overview
For full documentation of the API, you can find the swagger page hosted at the root url. See Installing to run the application and browse the docs.
The server has two endpoints: /bake and /magic.
/bake
/bake allows a user to POST some input and configuration for a CyberChef Recipe. The application will run the input through the recipe and return the baked operation.
This endpoint accepts a POST request with the following body:
Parameter
Type
Description
input
String
The input data for the recipe. Currently accepts strings.
recipe
String or Object or Array
One or more operations, with optional arguments. Uses default arguments if they're not defined here.
outputType (optional)
String
The Data Type that you would like the result of the bake to be returned as. This will not work with File or List<File> at the moment.
{
// Be wary, type conversions do not always behave as expected.
"value": 79,
"type": "number"
}
/batch/bake
/batch/bake allows a user to POST multiple input values and a configuration for a CyberChef Recipe. The application will run each elemnt of the input through the recipe and return the results as an array of output objects.
This endpoint accepts a POST request with the following body:
Parameter
Type
Description
input
Array
The input data for the recipe. Currently accepts an array of Strings.
recipe
String or Object or Array
One or more operations, with optional arguments. Uses default arguments if they're not defined here.
outputType (optional)
String
The Data Type that you would like the result of the bakes to be returned as. This will not work with File or List<File> at the moment.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/gchq/CyberChef-server là nguồn chính thức.
gchq/CyberChef-server có phải mã nguồn mở không?
Có — gchq/CyberChef-server phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/gchq/CyberChef-server.
gchq/CyberChef-server có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho gchq/CyberChef-server. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
gchq/CyberChef-server có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho gchq/CyberChef-server. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
gchq/CyberChef-server còn đang phát triển không?
Commit gần nhất trên gchq/CyberChef-server là 1 tháng trước (theo timestamp GitHub). Repo có 66 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
gchq/CyberChef-server dùng license gì?
gchq/CyberChef-server phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về CyberChef-server?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về CyberChef-server.