-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpenbot.kv
337 lines (318 loc) · 8.73 KB
/
penbot.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
#IMPORTANT: command parameters must have the same variable names throughout all the scripts (penbot.kv -> commands.py -> bot.py)
<PopupContent>:
size_hint: 1, None
BoxLayout:
orientation: 'vertical'
id: list_cmmnds_popup
size_hint: 1, None
height: self.minimum_height
<SavePopupContent>:
size_hint: 1, None
BoxLayout:
id: list
MDLabel:
text: 'Do you want to save your script? If yes, type its name here:'
MDTextField:
id: save_name
<Script>:
size_hint: 1, None
ImageLeftWidget:
source: 'icons/script.png'
IconRightWidget:
icon: "play"
on_release: app.play_script_with_threading(root)
<ForLoopStartContent>:
size_hint: 1, None
cols: 2
MDLabel:
text: 'Iterations Amount: '
MDTextField:
id: iters
<MoveContent>:
padding: 10
spacing: 15
cols: 2
size_hint: 1, None
MDLabel:
text: "Axis: "
size_hint: 0.5, 1
pos_hint: {'x': 0.5, 'y': 0.5}
MDTextField:
id: axis
hint_text: "x or feet_y or z"
multiline: False
size_hint: 0.5, None
height: 10
MDLabel:
text: "Blocks Amount: "
size_hint: 0.5, 1
pos_hint: {'x': 0.5, 'y': 0.5}
MDTextField:
id: steps
hint_text: "Enter the amount of block you wanna go.."
multiline: False
size_hint: 0.5, None
height: 10
<WriteMessageContent>:
padding: 10
spacing: 15
size_hint: 1, None
cols: 2
MDLabel:
text: "Chat Message(or command):"
pos_hint: {'y': 0.5}
MDTextField:
id: message
multiline: False
pos_hint: {'y': 0.5}
hint_text: "message to send.."
size_hint: 0.5, None
height: 10
<DelayContent>:
padding: 10
spacing: 15
size_hint: 1, None
cols: 2
MDLabel:
text: 'Delay: '
size_hint: 0.5, 1
pos_hint: {'y': 0.5}
MDTextField:
id: delay
multiline: False
pos_hint: {'y': 0.5}
hint_text: "delay between commands(seconds).."
size_hint: 0.5, None
height: 10
<ConnectBotContent>:
padding: 10
spacing: 15
cols: 4
size_hint: 1, None
height: 200
MDLabel:
text: 'Nickname'
size_hint: 0.5, 1
pos_hint: {'x': 0.5, 'y': 0.5}
MDTextField:
id: username
multiline: False
hint_text: "bot's nickname.."
size_hint: 0.5, None
height: 10
MDLabel:
text: 'IP'
size_hint: 0.5, 1
pos_hint: {'x': 0.5, 'y': 0.5}
MDTextField:
id: ip
multiline: False
hint_text: "server's ip.."
size_hint: 0.5, None
height: 10
MDLabel:
text: 'Port'
size_hint: 0.5, 1
pos_hint: {'x': 0.5, 'y': 0.5}
MDTextField:
id: port
multiline: False
hint_text: "server's port.."
size_hint: 0.5, None
height: 10
<PlaceBlockContent>:
cols: 4
spacing: 15
padding: 10
size_hint: 1, None
height: self.minimum_height
MDLabel:
text: 'Offsets(blocks amount) relatively to the bot:'
size_hint: 0.2, 0.5
MDTextField:
hint_text: 'offset x axis'
id: place_offset_x
multiline: False
MDTextField:
hint_text: 'offset y axis'
id: place_offset_y
multiline: False
MDTextField:
hint_text: 'offset z axis'
id: place_offset_z
multiline: False
MDLabel:
text: "Blockface(which is in front):"
size_hint: None, None
MDTextField:
hint_text: 'top/bottom/north/south/east/west'
id: blockface_str
multiline: False
<DigBlockContent>:
cols: 4
spacing: 15
padding: 10
size_hint: 1, None
height: self.minimum_height
MDLabel:
text: 'Offsets(blocks amount) relatively to the bot:'
size_hint: 0.2, 0.5
MDTextField:
hint_text: 'offset x axis'
id: dig_offset_x
multiline: False
MDTextField:
hint_text: 'offset y axis'
id: dig_offset_y
multiline: False
MDTextField:
hint_text: 'offset z axis'
id: dig_offset_z
multiline: False
MDLabel:
text: "Digging time"
size_hint: 0.2, 0.5
MDTextField:
hint_text: 'depends on item bot is holding'
id: dig_time
multiline: False
<ListXrayContent>:
cols: 2
spacing: 15
padding: 10
size_hint: 1, None
height: self.minimum_height
MDLabel:
text: 'File Name:'
size_hint: 0.2, 0.5
MDTextField:
hint_text: 'example: blocks.txt'
id: file_name
multiline: False
MDLabel:
text: 'Region Directory:'
size_hint: 0.2, 0.5
MDTextField:
hint_text: 'example: download_world/world/region'
id: wd
multiline: False
MDLabel:
text: "Blocks Limit"
size_hint: 0.2, 0.5
MDTextField:
hint_text: '(number of blocks to parse)'
id: blocks_limit
multiline: False
MDLabel:
text: 'Wanted Blocks'
size_hint: 0.2, 0.5 #TODO put this values into variable
MDTextField:
hint_text: 'example: diamond_ore, coal_ore'
id: wanted_blocks
multiline: False
<OpContent>:
cols: 2
spacing: 15
padding: 10
size_hint: 1, None
height: self.minimum_height
MDLabel:
text: "Player Name:"
size_hint: 0.2, 0.5
MDTextField:
hint_text: '"PythonProgrammer" is the only option for now.'
text: "PythonProgrammer"
id: player
multiline: False
disabled: True
MDLabel:
text: "SSH Host IP:"
size_hint: 0.2, 0.5
MDTextField:
id: op_ssh_host
multiline: False
<ReverseShellContent>:
cols: 2
spacing: 15
padding: 10
size_hint: 1, None
height: self.minimum_height
MDLabel:
text: "Target's OS:"
size_hint: 0.2, 0.5
MDTextField:
hint_text: '"Windows" is the only option for now.'
text: "Windows"
id: target_os
multiline: False
disabled: True
MDLabel:
text: "SSH Host IP:"
size_hint: 0.2, 0.5
MDTextField:
hint_text: 'Server which hosts the exploit.'
id: rce_ssh_host
multiline: False
MDLabel:
text: "SSH Password:"
size_hint: 0.2, 0.5
MDTextField:
id: ssh_password
multiline: False
<Item>:
on_release: app.cmmnd_add(self)
ImageLeftWidget:
source: root.source
<CommandWithoutParameters>:
ImageLeftWidget:
source: root.source
MDBottomNavigation:
MDBottomNavigationItem:
name: "play"
text: "Play"
icon: "play"
FloatLayout:
ScrollView:
BoxLayout:
id: list_scripts
orientation: 'vertical'
size_hint: 1, None
height: self.minimum_height
MDBottomNavigationItem:
name: "scripting"
text: "Scripting"
icon: 'text'
FloatLayout:
ScrollView:
BoxLayout:
id: list_cmmnds
orientation: 'vertical'
size_hint: 1, None
height: self.minimum_height
MDFloatingActionButton:
icon: 'plus'
theme_text_color: "Custom"
text_color: app.theme_cls.primary_color
md_bg_color: app.theme_cls.accent_color
size_hint: None, None
size: 50, 50
pos_hint: {'x': 0.9, 'y': 0.05}
on_release: app.cmmnd_popup()
MDFloatingActionButton:
icon: 'check'
theme_text_color: "Custom"
text_color: app.theme_cls.primary_color
md_bg_color: app.theme_cls.accent_color
size_hint: None, None
size: 40, 40
pos_hint: {'x': 0.905, 'y': 0.2}
on_release: app.save_popup()
MDFloatingActionButton:
icon: 'close'
theme_text_color: "Custom"
text_color: app.theme_cls.primary_color
md_bg_color: app.theme_cls.accent_color
size_hint: None, None
size: 40, 40
pos_hint: {'x': 0.905, 'y': 0.325}
on_release: app.clear_script()