Skip to content

Commit df32cc8

Browse files
committed
Fix whitespace and formatting in bash++ writeup
1 parent b34b172 commit df32cc8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

content/writeups/LakeCTF2025Quals/bash++.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Variable {
128128
long l;
129129
char* s;
130130
} value;
131-
131+
132132
Variable(long l) : type(LONG) {
133133
value.l = l;
134134
}
@@ -248,14 +248,14 @@ Lets read some docs:
248248
```
249249
function strdup
250250

251-
provided by <string.h>
251+
provided by <string.h>
252252
──────────────────────────────────────────────────────
253253
→ char *
254-
Parameters:
254+
Parameters:
255255

256256
* const char * __s
257257

258-
Duplicate S, returning an identical malloc'd string.
258+
Duplicate S, returning an identical malloc'd string.
259259
```
260260
261261
Once again, we are dealing with an object on the heap. This means our object will be adjectent in memory to the `Variable(s)` and most importantly, even with ASLR enabled itll be a contant offset from them.
@@ -496,7 +496,6 @@ if __name__ == "__main__":
496496
497497
Note : due to ASLR this may fail sometimes if any addresses contains a newline.
498498
499-
500499
## Flag
501500
502501
`EPFL{why_add_a_logging_feature_in_the_first_place}`

0 commit comments

Comments
 (0)