script.md
https://discord.com/channels/415878436104437770/547090551539761153/849547729448337428
script.src
Copy={}
for e in ["string","number","function","null","file","computer","shell","ftpshell","port","router","cryptoLib","MetaxploitLib","MetaLib","NetSession"]
Copy[e]=function(object,depth)
return @object
end function
end for
Copy.list=function(object,depth)
l=[]
for e in object
l.push(self.copy(e,depth-1))
end for
return l
end function
Copy.map=function(object,depth)
m={}
for i in object.indexes
m[i]=self.copy(object[i],depth-1)
end for
return m
end function
Copy.copy=function(object,depth=16)
if not depth then return @object
t=typeof(@object)
if self.hasIndex(t) and t!="copy" then
f=self[t]
return f(@object,depth)
end if
return self.map(object,depth)
end function