-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskr1pt.src
More file actions
370 lines (350 loc) · 13.7 KB
/
skr1pt.src
File metadata and controls
370 lines (350 loc) · 13.7 KB
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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
// SKR1PT v1.4.5 by ETAGamer
// code skidded from like every hacktool creator to exist
// so if you made a tool your code is prob in here lolz
// color variables
c = {
"r": "<color=#c3201f>", //red
"o": "<color=#ff5900>", //orange
"y": "<color=#FFFC33>", //yewow
"g": "<color=#0f0>", //gween
"b": "<color=#058FAB>", //bloo
"p": "<color=#7400ff>", //puple
"pp": "<color=#ff81f7>", //pink
"bb": "<color=#000000>", //bwack
"gg": "<color=#343434>", //gwey
"w": "<color=#fff>", //white
"n": "</color>", //no color
}
// main variables
m = {
"r": get_router,
"ip": public_ip(get_router),
"ln": local_ip(get_router),
"hc": host_computer(get_shell),
"s": get_shell,
}
ui = {}
ui.i = function()
print(c.gg+"[-----["+c.r+m.ip+c.gg+"]-----["+c.r+m.ln+c.gg+"]")
currentcmd = user_input(c.gg+"[--{ "+c.r)
end function
cmds = {}
cmds.help=function()
print(c.o+"-=+"+c.r+"<b> SKR1PT COMMANDS </b>"+c.o+"+=-")
print(c.y+"|> help "+c.o+"Displays all commands")
print
end function
cmds.rdos=function(sin)
out={}
out.bool=2
if not origShell then return error("Cannot disable remote system")
if sin.len != 1 or typeof(sin[0].to_int) != "number" then return error("Invalid parameters")
print("<color=#7141c4>[Lunar] </color><color=#8254d1>Are you sure you want to continue?</color>")
confirm=user_input("<color=#7141c4>[y/N]$ </color><color=#8254d1>").lower
if confirm != "y" then return out
for i in range(0, sin[0].to_int)
mx.rshell_client("0.0.0.0",0,"DOS"+i)
print("<color=#7141c4>[Lunar] </color><color=#8254d1>Spawned DOS"+i+"</color>")
end for
return out
end function
cmds.fdos=function(sin)
out={}
out.bool=2
if shelltype == "file" then return error("Cannot disable remote system with file shell")
if not comp.File(xpath).has_permission("w") then return error("No permissions to path")
if sin.len > 2 or sin.len == 0 or typeof(sin[0].to_int) != "number" then return error("Invalid parameters")
name="DOS"
if sin.len == 2 then name=sin[1]
print("<color=#7141c4>[Lunar] </color><color=#8254d1>Are you sure you want to continue?</color>")
confirm=user_input("<color=#7141c4>[y/N]$ </color><color=#8254d1>").lower
if confirm != "y" then return out
for i in range(0,sin[0].to_int)
comp.touch(xpath,name+str(i))
print("<color=#7141c4>[Lunar] </color><color=#8254d1>Spawned "+name+str(i)+"</color>")
end for
return out
end function
cmds.cdos=function(sin)
out={}
out.bool=2
if not origShell then return error("Cannot disable remote connection")
if sin.len != 1 or typeof(sin[0].to_int) != "number" then return error("Invalid parameters")
print("<color=#7141c4>[Lunar] </color><color=#8254d1>Are you sure you want to continue?</color>")
confirm=user_input("<color=#7141c4>[y/N]$ </color><color=#8254d1>").lower
if confirm != "y" then return out
for i in range(0,sin[0].to_int)
print("<color=#7141c4>[Lunar] </color><color=#8254d1>Cracking hardware pass "+i+"</color>\n")
cp.decipher("null")
end for
return out
end function
cmds.shellall=function()
//LinQ lib functionality for greyscript
map.first = function(key, value)
for each in self.indexes
if self[each][key] == value then return self[each]
end for
end function
map.where = function(key, value)
ret = {}
for each in self.indexes
if self[each][key] == value then ret.push(self[each])
end for
return ret
end function
map.wherenot = function(key, value)
ret = {}
for each in self.indexes
if self[each][key] != value then ret.push(self[each])
end for
return ret
end function
list.first = function(key, value)
for each in self
if typeof(each) == "string" then
if key == "is" and each == value then return each
if key == "contains" and each.is_match(value) then return each
else if typeof(each) == "file" then
if key == "name" and each.name == value then return each
if key == "path" and each.path == value then return each
if key == "permissions" and each.permissions == value then return each
if key == "has_permission" then
v = value.values
c = ""
for p in v
if each.has_permission(p) then c = c + p
end for
if c == value then return each
end if
if key == "size" and each.size == value then return each
else if typeof(each) == "port" then
if key == "port_number" and each.port_number == value then return each
if key == "is_closed" and each.is_closed == value then return each
if key == "get_lan_ip" and each.get_lan_ip == value then return each
else if typeof(each) == "map" then
if each[key] == value then return each
end if
end for
end function
list.where = function(key, value)
ret = []
for each in self
if typeof(each) == "string" then
if key == "is" and each == value then ret.push(each)
if key == "contains" and each.is_match(value) then ret.push(each)
else if typeof(each) == "file" then
if key == "name" and each.name == value then ret.push(each)
if key == "path" and each.path == value then ret.push(each)
if key == "permissions" and each.permissions == value then ret.push(each)
if key == "has_permission" then
v = value.values
c = ""
for p in v
if each.has_permission(p) then c = c + p
end for
if c == value then ret.push(each)
end if
if key == "size" and each.size == value then ret.push(each)
else if typeof(each) == "port" then
if key == "port_number" and each.port_number == value then ret.push(each)
if key == "is_closed" and each.is_closed == value then ret.push(each)
if key == "get_lan_ip" and each.get_lan_ip == value then ret.push(each)
else if typeof(each) == "map" then
if each[key] == value then ret.push(each)
end if
end for
return ret
end function
list.wherenot = function(key, value)
ret = []
for each in self
if typeof(each) == "string" then
if key == "is" and each != value then ret.push(each)
if key == "contains" and not each.is_match(value) then ret.push(each)
else if typeof(each) == "file" then
if key == "name" and each.name != value then ret.push(each)
if key == "path" and each.path != value then ret.push(each)
if key == "permissions" and each.permissions != value then ret.push(each)
if key == "has_permission" then
v = value.values
c = ""
for p in v
if each.has_permission(p) then c = c + p
end for
if c != value then ret.push(each)
end if
if key == "size" and each.size != value then ret.push(each)
else if typeof(each) == "port" then
if key == "port_number" and each.port_number != value then ret.push(each)
if key == "is_closed" and each.is_closed != value then ret.push(each)
if key == "get_lan_ip" and each.get_lan_ip != value then ret.push(each)
else if typeof(each) == "map" then
if each[key] != value then ret.push(each)
end if
end for
return ret
end function
regex_escape = function(text)
result = text
for x in "+*?^$.[]{}()|/"
result = result.replace("\"+x, "\"+x)
end for
return result
end function
//Probe lib functionality for greyscript
//By MachaCeleste 20240205
Probe = {}
Probe.toRoot = function(f)
while parent(f)
f=parent(f)
end while
return f
end function
Probe.run = function(object)
file = null
if typeof(object) == "shell" then file = File(host_computer(object), "/")
if typeof(object) == "computer" then file = File(object, "/")
if typeof(object) == "file" then file = self.toRoot(object)
root = file.get_folders.first("path", "/root")
if root and root.has_permission("r") and root.has_permission("w") and root.has_permission("x") then return "root"
home = file.get_folders.first("path", "/home")
if home then
users = home.get_folders.wherenot("path", "/home/guest")
if users then
for each in users
if each.has_permission("r") and each.has_permission("w") and each.has_permission("x") then return "user"
end for
end if
end if
return "guest"
end function
//Drop lib functionality for greyscript
//By MachaCeleste 20240305
Drop = {}
Drop.fMap = null
Drop.allFolders = function(folder)
self.fMap.push(folder)
for f in folder.get_folders
self.allFolders(f)
end for
end function
Drop.run = function(folder)
self.fMap = []
self.allFolders(folder)
for f in self.fMap
if f.has_permission("w") and f.has_permission("x") then return f
end for
return "Couldn't find a sutable drop point!"
end function
Object = {}
Object.res = null
Object.level = ""
Object.mem = ""
Object.target = ""
if params.len != 2 or params[0] == "-h" or params[0] == "--help" then exit("Usage: <b>shellall [ip_address] [port]</b>\nUsage: <b>shellall nmap [ip_address]</b>")
if params[0] == "nmap" then
if not is_valid_ip(params[1]) then exit("nmap: invalid ip address")
if not get_shell.host_computer.is_network_active then exit("nmap: No internet access.")
ipAddress = params[1]
isLanIp = is_lan_ip( ipAddress )
if isLanIp then
router = get_router;
else
router = get_router( ipAddress )
end if
if router == null then exit("Error: IP address not found!")
ports = null
if not isLanIp then
ports = router.used_ports
else
ports = router.device_ports(ipAddress)
end if
if ports == null then exit("Error: Ports returned null!")
if typeof(ports) == "string" then exit(ports)
info = "PORT STATE SERVICE VERSION LAN"
print("Interesting ports on " + params[1] + "\n")
if(ports.len == 0) then exit("Scan finished. No open ports.")
for port in ports
service_info = router.port_info(port)
lan_ips = port.get_lan_ip
port_status = "open"
if(port.is_closed and not isLanIp) then
port_status = "closed"
end if
info = info + "\n" + port.port_number + " " + port_status + " " + service_info + " " + lan_ips
end for
exit(format_columns(info) + "\n")
end if
hs = get_shell
hc = host_computer(hs)
mXf = hc.File("/lib/metaxploit.so")
toolf = hc.File(program_path)
if not mXf then mXf = hc.File(current_path + "/metaxploit.so")
if not mXf then exit("Error: Can't find metaxploit library in the /lib path or the current folder!")
metaxploit = include_lib(mXf.path)
address = params[0]
port = params[1].to_int
net_session = metaxploit.net_use(address, port)
if not net_session then exit("Error: Couldn't establish net session!")
metaLib = net_session.dump_lib
if not metaLib then exit("Error: Couldn't dump library!")
print("Grabbed " + metaLib.lib_name + " v" + metaLib.version + "! Scanning...")
scanFunc = function
listMem = metaxploit.scan(metaLib)
if listMem.len == 0 then return print("There are no exploi- How! SAVE THIS LIBRARY NOW!")
o = []
for mem in listMem
scans = metaxploit.scan_address(metaLib, mem).split("Unsafe check: ")
for data in scans
if scans.indexOf(data) == 0 then continue
m = data.matches("<b>\S*<\/b>\.")
target = m.values.pull[3:m.len-6]
res = metaLib.overflow(mem, target)
if not res then continue
if typeof(res) == "shell" then
obj = new Object
obj.res = res
obj.level = Probe.run(res)
obj.mem = mem
obj.target = target
o.push(obj)
end if
end for
end for
return o
end function
objL = scanFunc
if objL.len == 0 then exit("Error: nothing exploitable found!")
print("\n<align=center>Celestial Tools" + char(169) + "</align>\n<align=center>Shell-All</align>\n")
info = "SEL LEVEL MEM UNSEC"
n = 0
for each in objL
info = info + "\n" + "[" + n + "] " + each.level + " " + each.mem + " " + each.target
n = n + 1
end for
print(format_columns(info))
i = user_input("Select shell (x/exit): ").to_int
if i == "exit" or i == "x" then exit
if i > objL.len - 1 or i < 0 or typeof(i) == "string" then exit("Error: That is not a valid selection! " + i)
obj = objL[i]
drop = Drop.run(File(host_computer(obj.res), "/"))
out = hs.scp(mXf.path, drop.path, obj.res)
if typeof(out) == "string" then print("Error: Couldn't move up metaxploit!")
out = hs.scp(toolf.path, drop.path, obj.res)
if typeof(out) == "string" then print("Error: Couldn't move up shellall!")
res = obj.res
res.start_terminal
end function
// banner start
clear_screen()
print("<color=#ff0000><b><size=16.5> :::::::: ::: ::: ::::::::: ::::::::::: ::::::::: :::::::::::</color>")
print("<color=#ff3e00><b><size=16.4>:+: :+: :+: :+: :+: :+: :+: :+: :+: :+: </color>")
print("<color=#ff5a00><b><size=16.3>+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ </color>")
print("<color=#ff7100><b><size=16.2>+#++:++#++ +#++:++ +#++:++#: +#+ +#++:++#+ +#+ </color>")
print("<color=#ff8500><b><size=16.1> +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ </color>")
print("<color=#ff9700><b><size=16.0>#+# #+# #+# #+# #+# #+# #+# #+# #+# </color>")
print("<color=#ffa800><b><size=15.9> ######## ### ### ### ### ########### ### ### </color>")
print(c.bb+"---------"+c.o+"<size=20><i>hippity hoppity ur codes my property</i></size>"+c.bb+"---------")
// banner end
ui.i()