-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,436 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+30.6 KB
content/ctf-writeups/bcactf_5.0/assets/images/forensics/wiretapped/conv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+98.4 KB
content/ctf-writeups/bcactf_5.0/assets/images/forensics/wiretapped/hex_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45 KB
content/ctf-writeups/bcactf_5.0/assets/images/forensics/wiretapped/image.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+70.3 KB
content/ctf-writeups/bcactf_5.0/assets/images/misc-This_is_NOT_the_flag/base64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+182 KB
content/ctf-writeups/bcactf_5.0/assets/images/misc-This_is_NOT_the_flag/xor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.99 KB
content/ctf-writeups/bcactf_5.0/assets/images/pwn-canary-keeper/check_canary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.63 KB
content/ctf-writeups/bcactf_5.0/assets/images/pwn-canary-keeper/check_flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+63 KB
content/ctf-writeups/bcactf_5.0/assets/images/pwn-canary-keeper/main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.1 KB
content/ctf-writeups/bcactf_5.0/assets/images/pwn-inaccessible/main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.3 KB
content/ctf-writeups/bcactf_5.0/assets/images/pwn-inaccessible/win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions
27
content/ctf-writeups/bcactf_5.0/assets/scripts/bjuggler/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM --platform=linux/amd64 ubuntu@sha256:86ac87f73641c920fb42cc9612d4fb57b5626b56ea2a19b894d0673fd5b4f2e9 AS build | ||
|
||
RUN apt-get update && apt-get install -y wget gcc && rm -rf /var/lib/apt/lists/* \ | ||
&& wget -O ynetd.c "https://raw.githubusercontent.com/johnsonjh/ynetd/master/ynetd.c" \ | ||
&& gcc -o ynetd ynetd.c && rm ynetd.c && chmod +x ./ynetd | ||
|
||
COPY chall.c . | ||
RUN gcc -o chall chall.c | ||
|
||
|
||
FROM --platform=linux/amd64 ubuntu@sha256:86ac87f73641c920fb42cc9612d4fb57b5626b56ea2a19b894d0673fd5b4f2e9 | ||
|
||
RUN useradd -m -d /home/ctf -u 12345 ctf | ||
WORKDIR /home/ctf | ||
|
||
COPY --from=build ynetd . | ||
RUN chmod +x ynetd | ||
|
||
COPY --from=build chall chall | ||
COPY flag.txt . | ||
COPY secret_flag.txt . | ||
|
||
RUN chown -R root:root /home/ctf | ||
|
||
USER ctf | ||
EXPOSE 9999 | ||
CMD ./ynetd -p 9999 ./chall |
Binary file not shown.
Binary file added
BIN
+16.5 KB
content/ctf-writeups/bcactf_5.0/assets/scripts/canary-keeper-0/provided
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
content/ctf-writeups/bcactf_5.0/assets/scripts/misc/NOTflag.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nZyenIuZhMiXtoygzoygyJfMoJmTnsaC |
Large diffs are not rendered by default.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
content/ctf-writeups/bcactf_5.0/assets/scripts/rev/slow.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
#include <cstdint> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <vector> | ||
using namespace std; | ||
|
||
vector<int> comb(vector<int> in) { | ||
vector<int> out; | ||
vector<uint64_t> prefix ; | ||
for(int i = 0 ; i < in.size(); i++){ | ||
|
||
} | ||
for (int i = 0; i < in.size(); i++) { | ||
for (int j = i + 1; j < in.size(); j++) { | ||
out.push_back(in[i] * in[j]); | ||
} | ||
out.push_back((in[i] * (in[i] - 1) / 2)); | ||
} | ||
return out; | ||
} | ||
int main() { | ||
ifstream fin("input.txt"); | ||
ofstream fout("slow.out"); | ||
int n, k; | ||
fin >> n >> k; | ||
vector<int> score; | ||
for (int i = 0; i < k; i++) { | ||
int temp; | ||
fin >> temp; | ||
score.push_back(temp); | ||
} | ||
for (int i = k; i < n; i++) { | ||
score.push_back(1); | ||
} | ||
uint64_t output = 0; | ||
for (int j = n; j >= k; j -= 3) { | ||
vector<int> part = vector<int>(score.begin(), score.begin() + j); | ||
vector<int> res = comb(comb(part)); | ||
for (int i = 0; i < res.size(); i++) { | ||
output += res[i]; | ||
} | ||
} | ||
fout << "bcactf{" << output << "}" << endl; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.