Commit bc47b34 committed Feb 3, 2025 Verified
1 parent fbe8f03 commit bc47b34 Copy full SHA for bc47b34
File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ RUN echo '#!/bin/bash' > /entrypoint.sh \
15
15
&& echo 'mkdir -p /workspace/bin/' >> /entrypoint.sh \
16
16
&& echo 'cd /workspace/src/' >> /entrypoint.sh \
17
17
&& echo '/usr/local/go/bin/go clean' >> /entrypoint.sh \
18
- && echo 'echo "[+] Building"' >> /entrypoint.sh \
19
18
&& echo 'if [ $# -ge 2 ]; then' >> /entrypoint.sh \
20
19
&& echo ' OS=$1' >> /entrypoint.sh \
21
20
&& echo ' GOARCH=$2' >> /entrypoint.sh \
@@ -30,9 +29,12 @@ RUN echo '#!/bin/bash' > /entrypoint.sh \
30
29
&& echo ' *) echo "Unsupported architecture $ARCH"; exit 1 ;;' >> /entrypoint.sh \
31
30
&& echo ' esac' >> /entrypoint.sh \
32
31
&& echo 'fi' >> /entrypoint.sh \
33
- && echo 'echo " ├── [>] Building for $OS $GOARCH"' >> /entrypoint.sh \
32
+ && echo 'echo "[>] Building for GOOS= $OS GOARCH= $GOARCH"' >> /entrypoint.sh \
34
33
&& echo 'mkdir -p "/workspace/bin/$OS/$GOARCH/"' >> /entrypoint.sh \
34
+ && echo 'echo "[>] Writing binaries in ./bin/$OS/$GOARCH/"' >> /entrypoint.sh \
35
+ && echo 'echo "[>] Building: GOOS=$OS GOARCH=$GOARCH /usr/local/go/bin/go build -o "/workspace/bin/$OS/$GOARCH/" -buildvcs=false"' >> /entrypoint.sh \
35
36
&& echo 'GOOS=$OS GOARCH=$GOARCH /usr/local/go/bin/go build -o "/workspace/bin/$OS/$GOARCH/" -buildvcs=false' >> /entrypoint.sh \
37
+ && echo 'echo "[>] Done"' >> /entrypoint.sh \
36
38
&& chmod +x /entrypoint.sh
37
39
38
40
# Prepare workspace volume
Original file line number Diff line number Diff line change 10
10
<br>
11
11
</p >
12
12
13
+
13
14
## Features
14
15
15
16
- [x] Reads source value from a file containing a raw ntSecurityDescriptor structure, in raw bytes, hex string or base64 string formats.
@@ -68,6 +69,7 @@ Usage: DescribeNTSecurityDescriptor [--debug] [--domain <string>] [--username <s
68
69
-vb, --value-base64 <string> Raw base64 encoded value of NTSecurityDescriptor. (default: "")
69
70
```
70
71
72
+
71
73
## Demonstration with a ` --distinguished-name `
72
74
73
75
``` bash
@@ -84,6 +86,22 @@ Usage: DescribeNTSecurityDescriptor [--debug] [--domain <string>] [--username <s
84
86
85
87
![ ] ( ./.github/example_value.png )
86
88
89
+
90
+ ## Building the project
91
+
92
+ To build the project, use the following Docker command in this directory:
93
+
94
+ ``` bash
95
+ docker run -v $( pwd) :/workspace/ podalirius/build-go-project
96
+ ```
97
+
98
+ Or, if you want to build it manually, you can use the following commands:
99
+
100
+ ```
101
+ GOOS=linux GOARCH=amd64; mkdir -p "/workspace/bin/linux/${GOOS}/${GOARCH}/" && /usr/local/go/bin/go build -o "/workspace/bin/linux/${GOOS}/${GOARCH}/" -buildvcs=false
102
+ ```
103
+
104
+
87
105
## Contributing
88
106
89
107
Pull requests are welcome. Feel free to open an issue if you want to add other features.
You can’t perform that action at this time.
0 commit comments