Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Parser = function(text)
- text = text.split("\n");
- vuln = [];
- for line in text
- if line.indexOf("<b>") then
- words = line.split(" ");
- for item in words
- cue = "";
- target = "";
- special_char = false;
- for char in item
- if char == "<" then
- special_char = true;
- end if
- if special_char then
- cue = cue + char;
- if char == ">" then
- special_char = false;
- end if
- else
- if char != "." then
- target = target + char;
- end if
- if cue.len > 3 then
- vuln.push(target);
- end if
- end if
- end for
- end for
- end if
- end for
- return vuln;
- end function
- LibSpy = function(x)
- exploits = []
- metaxploit = include_lib("/lib/metaxploit.so");
- if typeof(x) == "MetaLib" then
- memory_zones = metaxploit.scan(x);
- for address in memory_zones
- unsafe_string = {"address":address,"buffer":"null"};
- data = metaxploit.scan_address(x,address);
- unsafe_string.buffer = Parser(data);
- exploits.push(unsafe_string);
- end for
- else
- return "The given object is not a Lib.";
- end if
- return exploits;
- end function
Advertisement
Add Comment
Please, Sign In to add comment