-
Notifications
You must be signed in to change notification settings - Fork 18
/
sqlmapchik.kv
246 lines (208 loc) · 6.28 KB
/
sqlmapchik.kv
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
#:import TransitionClass kivy.uix.screenmanager.SlideTransition
#:import partial functools.partial
#:import Clock kivy.clock.Clock
<TextInput>:
use_bubble: False
<YesNoContent>:
orientation: 'vertical'
Label:
background_color: 0,0,0,0.4
text: root.text
text_size: root.width, root.height * 0.7
valign: 'middle'
GridLayout:
cols: 2
size_hint: 1, 0.2
Button:
text: 'Yes'
on_release: root.dispatch('on_answer','y')
Button:
text: 'No'
on_release: root.dispatch('on_answer','n')
<YesNoQuitContent>:
orientation: 'vertical'
Label:
text: root.text
text_size: root.width, root.height * 0.7
valign: 'middle'
GridLayout:
cols: 3
size_hint: 1, 0.2
Button:
text: 'Yes'
on_release: root.dispatch('on_answer','y')
Button:
text: 'No'
on_release: root.dispatch('on_answer','n')
Button:
text: 'Quit'
on_release: root.dispatch('on_answer','q')
<StringContent>:
orientation: 'vertical'
Label:
text: root.text
text_size: root.width, root.height * 0.7
valign: 'middle'
GridLayout:
cols: 2
size_hint: 1, 0.2
TextInput:
id: chosen_answer
text: ''
hint_text: 'enter your choice'
use_bubble: True
Button:
size_hint: None, 1
width: 100
text: 'Enter'
on_release: root.dispatch('on_answer', chosen_answer.text)
<LoadDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
FileChooserListView:
id: filechooser
BoxLayout:
size_hint_y: 0.1
Button:
text: "Cancel"
on_release: root.cancel()
Button:
text: "Load"
on_release: root.load(filechooser.selection)
<UrlDialog>:
BoxLayout:
spacing: 100
padding: 10
size: root.size
pos: root.pos
orientation: "vertical"
TextInput:
id: urlinput
size_hint: 1, 0.4
hint_text: 'http://testphp.vulnweb.com/search.php?test=hi'
text: 'http://testphp.vulnweb.com/search.php?test=hi'
use_bubble: True
BoxLayout:
orientation: "vertical"
BoxLayout:
size_hint_y: 0.1
Button:
text: "<"
on_release: urlinput.do_cursor_movement('cursor_left')
Button:
text: ">"
on_release: urlinput.do_cursor_movement('cursor_right')
Button:
text: "Paste"
on_release: urlinput._ensure_clipboard(); Clock.schedule_once(lambda dt: urlinput._paste(), 0.5)
Button:
text: "Clear"
on_release: urlinput.text = ''
BoxLayout:
size_hint_y: 0.1
Button:
text: "Cancel"
on_release: root.cancel()
Button:
text: "OK"
on_release: root.load(urlinput.text)
<TargetDialog>:
orientation: "vertical"
padding: [0, 50, 0, 0]
spacing: 30
Button:
id: target_url_button
size_hint_x: 0.6
pos_hint: {'x': 0.2}
text: 'URL'
on_release: root.url_dialog()
Button:
id: target_logfile_button
size_hint_x: 0.6
pos_hint: {'x': 0.2}
text: 'logfile'
on_release: root.log_dialog()
Button:
id: target_bulkfile_button
size_hint_x: 0.6
pos_hint: {'x': 0.2}
text: 'bulk file'
on_release: root.bulk_dialog()
Button:
id: target_requestfile_button
size_hint_x: 0.6
pos_hint: {'x': 0.2}
text: 'request file'
on_release: root.request_dialog()
Button:
id: target_inifile_button
size_hint_x: 0.6
pos_hint: {'x': 0.2}
text: 'INI config'
on_release: root.ini_dialog()
Button:
id: target_back_button
size_hint_x: 1
text: 'back to menu'
on_release: app.root._target_dialog.dismiss()
<FileChooseButton>:
text: 'Choose a file...'
size_hint: None, 1
width: self.parent.width - 150
pos_hint: {'x': 0, 'y': 0}
# pos: -100,-100
# height: self.line_height
<LogMessage>:
size_hint: 1, None
height: self.texture_size[1]
font_size: '12sp'
text_size: self.width, None
<Sqlmapchik>:
orientation: 'vertical'
manager: manager
menu_screen: menu_screen
log_screen: log_screen
scrolled_window: scrolled_window
ScreenManager:
id: manager
transition: TransitionClass()
Screen:
id: menu_screen
name: 'menu'
BoxLayout:
orientation: 'vertical'
spacing: 30
padding: [0, 50, 0, 50]
Image:
size_hint: 0.6, 0.5
pos_hint: {'x': 0.2}
source: 'chik_res/logo.png'
Button:
id: go_button
size_hint: 0.6, 0.3
pos_hint: {'x': 0.2}
text: 'Start scan'
on_release: root.launch_dialog()#app.main(target_url.text, additional_flags.text)
Button:
id: open_options_button
size_hint: 0.6, 0.2
pos_hint: {'x': 0.2}
text: 'Settings'
on_release: Clock.schedule_once(lambda dt: app.open_settings(), 0)
Screen:
name: 'log'
BoxLayout:
id: log_screen
orientation: 'vertical'
ScrollView:
size_hint: 1, 1
scroll_y: 0
do_scroll_x: False
GridLayout:
id: scrolled_window
# orientation: 'vertical'
cols: 1
size_hint_y: None
height: self.minimum_height