Hello, %s
+MBPTL-13{b20c7cd75fd17802261d0725ae2eb733}
+ + +""" %name) + +if __name__ == "__main__": + app.run(host='0.0.0.0', port=5000) \ No newline at end of file diff --git a/challenges/custom/MBPTL-001/mbptl-app/flag.txt b/challenges/custom/MBPTL-001/mbptl-app/flag.txt new file mode 100644 index 0000000..415fc74 --- /dev/null +++ b/challenges/custom/MBPTL-001/mbptl-app/flag.txt @@ -0,0 +1 @@ +MBPTL-14{c64184222cff6005e728bbfc2a672fe4} \ No newline at end of file diff --git a/challenges/custom/MBPTL-001/mbptl-internal/Dockerfile b/challenges/custom/MBPTL-001/mbptl-internal/Dockerfile new file mode 100644 index 0000000..0886a73 --- /dev/null +++ b/challenges/custom/MBPTL-001/mbptl-internal/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://mirrors.aliyun.com/ubuntu/|g; s|http://security.ubuntu.com/ubuntu/|http://mirrors.aliyun.com/ubuntu/|g' /etc/apt/sources.list + +RUN apt-get update \ + && apt-get install -y --no-install-recommends socat gcc libc6-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /var/cache/apt /usr/share/doc/* /usr/share/man/* + +COPY main.c /main.c +COPY flag.txt /flag.txt +COPY flag16.txt /flag16.txt +RUN gcc /main.c -o /main -no-pie -fno-pic -fno-stack-protector -z execstack \ + && rm -f /main.c \ + && chmod 755 /main \ + && chown nobody:nogroup /main /flag.txt /flag16.txt + +USER nobody:nogroup + +EXPOSE 31337 + +ENTRYPOINT ["socat","tcp-l:31337,reuseaddr,fork","exec:/main"] diff --git a/challenges/custom/MBPTL-001/mbptl-internal/flag.txt b/challenges/custom/MBPTL-001/mbptl-internal/flag.txt new file mode 100755 index 0000000..1dd650a --- /dev/null +++ b/challenges/custom/MBPTL-001/mbptl-internal/flag.txt @@ -0,0 +1 @@ +MBPTL-17{03762a502a18e260a47da040eaae38fa} \ No newline at end of file diff --git a/challenges/custom/MBPTL-001/mbptl-internal/flag16.txt b/challenges/custom/MBPTL-001/mbptl-internal/flag16.txt new file mode 100755 index 0000000..53d4930 --- /dev/null +++ b/challenges/custom/MBPTL-001/mbptl-internal/flag16.txt @@ -0,0 +1 @@ +MBPTL-16{1fb837a73ba131c382cc9bc53d4442f0} diff --git a/challenges/custom/MBPTL-001/mbptl-internal/main.c b/challenges/custom/MBPTL-001/mbptl-internal/main.c new file mode 100644 index 0000000..f5685db --- /dev/null +++ b/challenges/custom/MBPTL-001/mbptl-internal/main.c @@ -0,0 +1,29 @@ +#includeMBPTL-7{e77ac27271c6e54470db47228b9eca09}
+MBPTL-4{eb75482e45154917d44882e0c4a8e68f}
+
+ If you have any questions, please contact us at Github
+MBPTL-3{f74dc48447423d67699b233c461227a4}
+| ID | +Title | +Author | +Action | +
|---|---|---|---|
| {$row['id']} | +{$row['title']} | +{$row['author']} | +View Details | +
| No books found | |||
| ID | +=$id?> | +
|---|---|
| Date of birth | +=$employee['date_of_birth']?> | +
| =make_mail($employee)?> | +|
| Address (GPS) | +
+
+
+
+
+ Investigation marker: FLAG{miro_employee_record} + + |
+
| Registered device IPs | ++ + | +
| ID | +First name | +Last name | +Year of birth | +|
|---|---|---|---|---|
| =$id?> | +=$employee['first_name']?> | +=$employee['last_name']?> | +=substr($employee['date_of_birth'], 0, 4)?> | +=make_mail($employee)?> | +