-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen_all.sh
executable file
·51 lines (43 loc) · 1.08 KB
/
gen_all.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
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
set -e
cd crypt
./keygen.py
grcc fsk_tx.grc
cd ..
cd fm
grcc extract_fm.grc
./extract_fm.py
cd ..
cd hop
grcc hop.grc
./hop.py
cd ..
cd paint
grcc paint_wide.grc
convert \
-background Black \
-gravity Center \
-pointsize 600 \
-fill White \
label:'flag\{this_is_a_very_wide_flag_indeed_c928359da12a4a00e32fa43063e5037256c571a0e75ff2019a6741215a166ff9\}' \
-extent 40960x \
-resize 4096x\! \
flag.png
./paint_wide.py
cd ..
cd m17
grcc m17.grc
cat <(dd if=/dev/zero bs=16000 count=2) <(sox m17_1.wav -r 8000 -t raw -) | ~/git/m17-tools/build/apps/m17-mod -S VE3IRR --bin > m17_1.bin
cat <(dd if=/dev/zero bs=16000 count=2) <(sox m17_flag.wav -r 8000 -t raw -) | ~/git/m17-tools/build/apps/m17-mod -S CYBERPICL --bin > m17_2.bin
./m17.py --in-file=m17_1.bin --out-file=m17_1 --amplitude=0.8
./m17.py --in-file=m17_2.bin --out-file=m17_2 --amplitude=0.08
cd ..
cat \
fm/dtmf.sigmf-data \
m17/m17_1.sigmf-data \
<(dd if=/dev/zero bs=230400000 count=1) \
m17/m17_2.sigmf-data \
hop/hop.sigmf-data \
paint/paint.sigmf-data \
> out.cf32
grcc transmit.grc