idk what im doing
This commit is contained in:
44
myShit/shlockcrack.src
Normal file
44
myShit/shlockcrack.src
Normal file
@@ -0,0 +1,44 @@
|
||||
metax = include_lib("/lib/metaxploit.so")
|
||||
if not metax then metax = include_lib(current_path + "/metaexploit.so")
|
||||
if not metax then exit("<color=red><b><center>No metaxploit.so found\nAcceptable places: /lib or current directory<center/><b/><color/>")
|
||||
|
||||
g = get_custom_object
|
||||
|
||||
expectedParamCount = 0
|
||||
|
||||
if not g.currentAdd then
|
||||
g.currentAdd = params[expectedParamCount]
|
||||
expectedParamCount += 1
|
||||
end if
|
||||
if not g.port then
|
||||
g.port = params[expectedParamCount]
|
||||
expectedParamCount += 1
|
||||
end if
|
||||
if not g.targetMem then
|
||||
g.targetMem = params[expectedParamCount]
|
||||
expectedParamCount += 1
|
||||
end if
|
||||
if not g.targetExploit then
|
||||
g.targetExploit = params[expectedParamCount]
|
||||
expectedParamCount += 1
|
||||
end if
|
||||
|
||||
if not g.netSession then g.netSession = metax.net_use(g.currentAdd, g.port)
|
||||
if not g.netSession then exit("Couldn't connect to net session")
|
||||
|
||||
overflowResult = g.metLib.overflow(g.targetMem, g.targetExploit)
|
||||
|
||||
if not overflowResult then exit("Not able to exploit this vector")
|
||||
|
||||
if typeof(overflowResult) == "shell" then
|
||||
overflowResult.start_terminal
|
||||
|
||||
else if typeof(overflowResult) == "computer" then
|
||||
print("Computer object obtained for " + overflowResult.get_name)
|
||||
|
||||
else if typeof(overflowResult) == "file" then
|
||||
print("Obtained file object")
|
||||
|
||||
else
|
||||
print("<color=red>Erorr: expected shell, computer or file - result: " + overflowResult)
|
||||
end if
|
||||
Reference in New Issue
Block a user