mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Allow collapsible blocks to be tightly together
This commit is contained in:
@@ -43,7 +43,7 @@ You’re taking a stroll in the lab, when Dr. Klostermann is calling your name:
|
|||||||
|
|
||||||
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/4/attachment.zip)
|
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/4/attachment.zip)
|
||||||
|
|
||||||
{{< collapsible-block badge="c" title="chal.c" isCollapsed="true" >}}
|
{{< collapsible-block badge="c" title="chal.c" isCollapsed="true" class="tight" >}}
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ As you and Gökhan are leaving the crates to enter a car, you spot the tough guy
|
|||||||
|
|
||||||
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/5/attachment.zip)
|
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/5/attachment.zip)
|
||||||
|
|
||||||
{{< collapsible-block badge="py" title="RoboCaller1337.py" isCollapsed="true" >}}
|
{{< collapsible-block badge="py" title="RoboCaller1337.py" isCollapsed="true" class="tight" >}}
|
||||||
|
|
||||||
```py
|
```py
|
||||||
import random
|
import random
|
||||||
@@ -105,7 +105,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
{{< /collapsible-block >}}
|
{{< /collapsible-block >}}
|
||||||
|
|
||||||
{{< collapsible-block badge="txt" title="robo_numbers_list.txt" isCollapsed="true" >}}
|
{{< collapsible-block badge="txt" title="robo_numbers_list.txt" isCollapsed="true" class="tight" >}}
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
263-170-6234
|
263-170-6234
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ After having climbed through the window, you wait for a while on the ground. The
|
|||||||
|
|
||||||
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/6/attachment.zip)
|
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/6/attachment.zip)
|
||||||
|
|
||||||
{{< collapsible-block badge="txt" title="encodings" isCollapsed="true" >}}
|
{{< collapsible-block badge="txt" title="encodings" isCollapsed="true" class="tight" >}}
|
||||||
|
|
||||||
```text
|
```text
|
||||||
I made a super secret encoder. I remember using:
|
I made a super secret encoder. I remember using:
|
||||||
@@ -66,7 +66,7 @@ I also use gzip and zlib (to compress the stuff) and I like hiding things in fil
|
|||||||
|
|
||||||
{{< /collapsible-block >}}
|
{{< /collapsible-block >}}
|
||||||
|
|
||||||
{{< collapsible-block badge="txt" title="chall.txt" isCollapsed="true" >}}
|
{{< collapsible-block badge="txt" title="chall.txt" isCollapsed="true" class="tight" >}}
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
File is too large to display here.
|
File is too large to display here.
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ Nowak is very impressed by your skills. You and him sit down by a table, and you
|
|||||||
|
|
||||||
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/7/attachment.zip)
|
[attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/7/attachment.zip)
|
||||||
|
|
||||||
{{< collapsible-block badge="python" title="chall.py" isCollapsed="true" >}}
|
{{< collapsible-block badge="python" title="chall.py" isCollapsed="true" class="tight" >}}
|
||||||
|
|
||||||
```py
|
```py
|
||||||
from Crypto.Util.number import *
|
from Crypto.Util.number import *
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
.collapsible-block {
|
.collapsible-block {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 40px 0;
|
margin: 30px 0;
|
||||||
|
|
||||||
|
&.tight {
|
||||||
|
margin: 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{ $id := delimit (shuffle (seq 1 9)) "" }}
|
{{ $id := delimit (shuffle (seq 1 9)) "" }}
|
||||||
|
|
||||||
<div class="collapsible-block">
|
<div class="collapsible-block {{- with .Get "class" }} {{ . }}{{ end }}">
|
||||||
<input id="{{ .Get "id" | default $id }}" type="checkbox" {{ if ( eq ( .Get "isCollapsed" ) "true" ) -}} checked
|
<input id="{{ .Get "id" | default $id }}" type="checkbox" {{ if ( eq ( .Get "isCollapsed" ) "true" ) -}} checked
|
||||||
{{- end }} />
|
{{- end }} />
|
||||||
<label for="{{ .Get "id" | default $id }}">
|
<label for="{{ .Get "id" | default $id }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user