-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.sh
43 lines (37 loc) · 1018 Bytes
/
demo.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
40
41
42
43
set -x
#printf 'press [ENTER] to continue ...'
#read _
cd /home/sre/proj/tcc-vuln/target-mako
sudo ./compromise.sh
cd /tmp
rm -rf tcctmp
mkdir tcctmp
cd tcctmp
#printf 'press [ENTER] to continue ...'
#read _
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/tcc/0.9.27+git20200814.62c30a4a-1/tcc_0.9.27+git20200814.62c30a4a.orig.tar.bz2
#printf 'press [ENTER] to continue ...'
#read _
tar -xjvf tcc_0.9.27+git20200814.62c30a4a.orig.tar.bz2
./configure --cc=tcc
#printf 'press [ENTER] to continue ...'
#read _
make
sudo make install
rm -rf /tmp/makotmp
mkdir /tmp/makotmp
cd /tmp/makotmp
#printf 'press [ENTER] to continue ...'
#read _
git clone https://github.com/chjj/mako.git
#printf 'press [ENTER] to continue ...'
#read _
cd mako
./autogen.sh
./configure CC=tcc
#printf 'press [ENTER] to continue ...'
#read _
make
#printf 'press [ENTER] to continue ...'
#read _
./mako -testnet -rpcuser=123456 -rpcpassword=123456 sendfrom "testaccount" tb1q6n2ngxml7az8r3l7sny4af0gr9ymgygk9ztrzx 0.00010001