how.txt
· 228 B · Text
Неформатований
$ cat magicjump.sh
cc -xc - <<EOF
#include <unistd.h>
int main(void) {
lseek(100,100,0);
}
EOF
./a.out
if false; then
echo pwned
exit
fi
$
$ bash magicjump.sh
$ zsh magicjump.sh
$ osh magicjump.sh
pwned
$
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 | $ |