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 | $ |
Last active
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 | $ |