Last active 1713928813

screwdriver revised this gist 1713928812. Go to revision

1 file changed, 18 insertions

how.txt(file created)

@@ -0,0 +1,18 @@
1 + $ cat magicjump.sh
2 + cc -xc - <<EOF
3 + #include <unistd.h>
4 + int main(void) {
5 + lseek(100,100,0);
6 + }
7 + EOF
8 + ./a.out
9 + if false; then
10 + echo pwned
11 + exit
12 + fi
13 + $
14 + $ bash magicjump.sh
15 + $ zsh magicjump.sh
16 + $ osh magicjump.sh
17 + pwned
18 + $
Newer Older