forked from sctpfm/sctpfm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (70 loc) · 2.52 KB
/
Makefile
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
sctpOffPath:
for PATCH in "true" "false"; do \
for IO in "establish" "teardown"; do \
for PHI in $$(ls demo/SCTP/canonical-properties/); \
do echo "Attacking SCTP w.r.t. "$$PHI", patch="$$PATCH", IO="$$IO; \
time python3 korg/Korg.py \
--model=demo/SCTP/SCTP-$$PATCH.pml \
--phi=demo/SCTP/canonical-properties/$$PHI \
--Q=demo/SCTP/Q.pml \
--IO=demo/SCTP/IO-$$IO.txt \
--max_attacks=10 \
--with_recovery=True \
--name=SCTP.$$PHI-offPath-$$IO-$$PATCH \
--characterize=False; \
done; done; done;
sctpEvilServer:
for PATCH in "true" "false"; do \
for PHI in $$(ls demo/SCTP/canonical-properties/); \
do echo "Attacking SCTP w.r.t. "$$PHI" (evil server TM), patch="$$PATCH; \
time python3 korg/Korg.py \
--model=demo/SCTP/SCTP-evilServer-$$PATCH.pml \
--phi=demo/SCTP/canonical-properties/$$PHI \
--Q=demo/SCTP/Q-evilServer.pml \
--IO=demo/SCTP/IO-evilServer.txt \
--max_attacks=10 \
--with_recovery=True \
--name=SCTP.$$PHI-evilServer-$$PATCH \
--characterize=False; \
done; done;
sctpOnPath:
for PATCH in "true" "false"; do \
for IO in "establish" "teardown"; do \
for PHI in $$(ls demo/SCTP/canonical-properties/); \
do echo "Attacking SCTP w.r.t. "$$PHI" (on path TM), patch="$$PATCH", IO="$$IO; \
time python3 korg/Korg.py \
--model=demo/SCTP/SCTP-onPath-$$PATCH.pml \
--phi=demo/SCTP/canonical-properties/$$PHI \
--Q=demo/SCTP/Q-chan.pml \
--IO=demo/SCTP/IO-onPath-$$IO.txt \
--max_attacks=10 \
--with_recovery=True \
--name=SCTP.$$PHI-onPath-$$IO-$$PATCH \
--characterize=False; \
done; done; done;
sctpReplay:
python korg/gen_replay_attacker.py \
--model=demo/SCTP/tsn_sctp_model.pml \
--attacker=replay_mem \
--inchan=AtoB \
--outchan=AtoB \
--output=replayExperiment/output.pml \
--mem=2
cd replayExperiment && \
bash tester.sh output.pml ../demo/SCTP/canonical-properties out
clean:
- rm -rf __pycache__
- rm -rf tests/__pycache__
- rm -rf out/*
- rm *.trail
- rm *.pml
- rm ./*.pml
- rm *pan*
- rm *.tcl
- rm .*.swp
- rm *.pyc
- rm test_exp*
- rm ._n_i_p_s_
- rm **.tmp
- rm *.txt
echo "All clean!"