■ ■ ■ ■ ■ ■
gui/enforcement_detector.py
| skipped 34 lines |
35 | 35 | | EDLabelList = JLabel("Filter List:") |
36 | 36 | | EDLabelList.setBounds(10, 165, 140, 30) |
37 | 37 | | |
38 | | - | EDStrings = ["Headers (simple string): (enforced message headers contains)", |
39 | | - | "Headers (regex): (enforced message headers contains)", |
40 | | - | "Body (simple string): (enforced message body contains)", |
41 | | - | "Body (regex): (enforced message body contains)", |
42 | | - | "Full response (simple string): (enforced message contains)", |
43 | | - | "Full response (regex): (enforced message contains)", |
44 | | - | "Full response length: (of enforced response)", |
45 | | - | "Status code equals: (numbers only)"] |
| 38 | + | EDStrings = [ |
| 39 | + | "Headers (simple string): (enforced message headers contain)", |
| 40 | + | "Headers NOT (simple string): (enforced message headers NOT contain)", |
| 41 | + | "Headers (regex): (enforced message headers contain)", |
| 42 | + | "Headers NOT (regex): (enforced message headers NOT contain)", |
| 43 | + | "Body (simple string): (enforced message body contains)", |
| 44 | + | "Body NOT (simple string): (enforced message body NOT contains)", |
| 45 | + | "Body (regex): (enforced message body contains)", |
| 46 | + | "Body NOT (regex): (enforced message body NOT contains)", |
| 47 | + | "Full response (simple string): (enforced message contains)", |
| 48 | + | "Full response NOT (simple string): (enforced message NOT contains)", |
| 49 | + | "Full response (regex): (enforced message contains)", |
| 50 | + | "Full response NOT (regex): (enforced message NOT contains)", |
| 51 | + | "Full response length: (of enforced response)", |
| 52 | + | "Full response NOT length: (of enforced response)", |
| 53 | + | "Status code equals: (numbers only)", |
| 54 | + | "Status code NOT equals: (numbers only)" |
| 55 | + | ] |
46 | 56 | | self._extender.EDType = JComboBox(EDStrings) |
47 | 57 | | self._extender.EDType.setBounds(80, 10, 430, 30) |
48 | 58 | | |
| skipped 50 lines |
99 | 109 | | EDLabelList = JLabel("Filter List:") |
100 | 110 | | EDLabelList.setBounds(10, 165, 140, 30) |
101 | 111 | | |
102 | | - | EDStrings = ["Headers (simple string): (enforced message headers contains)", |
103 | | - | "Headers (regex): (enforced message headers contains)", |
104 | | - | "Body (simple string): (enforced message body contains)", |
105 | | - | "Body (regex): (enforced message body contains)", |
106 | | - | "Full response (simple string): (enforced message contains)", |
107 | | - | "Full response (regex): (enforced message contains)", |
108 | | - | "Full response length: (of enforced response)", |
109 | | - | "Status code equals: (numbers only)"] |
| 112 | + | EDStrings = [ |
| 113 | + | "Headers (simple string): (enforced message headers contain)", |
| 114 | + | "Headers NOT (simple string): (enforced message headers NOT contain)", |
| 115 | + | "Headers (regex): (enforced message headers contain)", |
| 116 | + | "Headers NOT (regex): (enforced message headers NOT contain)", |
| 117 | + | "Body (simple string): (enforced message body contains)", |
| 118 | + | "Body NOT (simple string): (enforced message body NOT contains)", |
| 119 | + | "Body (regex): (enforced message body contains)", |
| 120 | + | "Body NOT (regex): (enforced message body NOT contains)", |
| 121 | + | "Full response (simple string): (enforced message contains)", |
| 122 | + | "Full response NOT (simple string): (enforced message NOT contains)", |
| 123 | + | "Full response (regex): (enforced message contains)", |
| 124 | + | "Full response NOT (regex): (enforced message NOT contains)", |
| 125 | + | "Full response length: (of enforced response)", |
| 126 | + | "Full response NOT length: (of enforced response)", |
| 127 | + | "Status code equals: (numbers only)", |
| 128 | + | "Status code NOT equals: (numbers only)" |
| 129 | + | ] |
110 | 130 | | self._extender.EDTypeUnauth = JComboBox(EDStrings) |
111 | 131 | | self._extender.EDTypeUnauth.setBounds(80, 10, 430, 30) |
112 | 132 | | |
| skipped 60 lines |