Skip to content

Commit f2703c9

Browse files
author
Haroun AL MOUNAYAR
committed
Updated Readme and workflow
1 parent 62f7fe0 commit f2703c9

6 files changed

Lines changed: 43 additions & 110 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Create Release
19+
id: create_release
20+
uses: actions/create-release@v1
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
23+
with:
24+
tag_name: ${{ github.ref_name }}
25+
release_name: Release ${{ github.ref_name }}
26+
draft: false
27+
prerelease: false

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:19.5.0-slim
2+
gin docker
23

34
WORKDIR /usr/src/app
45

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,17 @@ server except those made to the **/logs** page and the **/craft** page.
1212
The logs can be foung in JSON format to be exported by doing a GET request to
1313
**/api/logs**
1414

15+
Example:
16+
17+
![image](./a_ciphered_request.png "An example")
18+
19+
![image](./a_deciphered_request.png "An example")
20+
21+
![image](./a_crafted_response.png "An example")
22+
1523
In the **/craft** page you can craft responses to GET requests at a specific URL.
1624
You can even specify the Content Type of the response.
25+
1726
For example for the crafted response in the below image, when you do a GET
1827
to **/test** you will get an empty JSON as a response.
1928

@@ -33,18 +42,17 @@ EXPLOIT_SERVER_KEY=mushokutensei npm start
3342

3443
EXPLOIT_SERVER_KEY is the password that we will generate a symmetric key from that will be used to encrypt the logs.
3544

36-
In `test/requester.sh` there is a small script that will assess the performance by sending a lotf of request to the exploit server locally.
37-
38-
If you want to develop, fork this repo, do your stuff in your fork in development branch, then do a PR to development. Then on each new release, the development branch will be merged with master.
39-
40-
PR from fork should not be made to master.
45+
In `test/requester.sh` there is a small script that will assess the performance by sending a lot of request to the exploit server locally.
4146

4247
## Deployment
4348

4449
It was designed to be deployed internally in a Kubernetes or Openshift Cluster to aid internal pentest engagement.
4550

51+
A Docker image is available.
4652

53+
```
4754
48-
The link to the image:
49-
TODO
55+
docker run -it -e "EXPLOIT_SERVER_KEY=mushokutensei" -p 3000:3000 h4r0r/exploit-server:1.0
56+
57+
```
5058

a_ciphered_request.png

53 KB
Loading

a_deciphered_request.png

125 KB
Loading

0 commit comments

Comments
 (0)