This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function wait(ms) { | |
| return new Promise((resolve) => setTimeout(resolve, ms)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function throttle(fn) { | |
| let waiting = false; | |
| return function() { | |
| if (!waiting) { | |
| waiting = true; | |
| requestAnimationFrame(() => { | |
| waiting = false; | |
| fn.apply(this, arguments); | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function debounce(fn, ms) { | |
| let id; | |
| return function() { | |
| clearTimeout(id); | |
| id = setTimeout(() => fn.apply(this, arguments), ms); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| var filename = "amd.js"; | |
| var scripts = Array.prototype.slice.call(document.querySelectorAll("script[src]")); | |
| var self = scripts.filter(function (x) { return x.getAttribute("src").indexOf(filename) > -1; })[0]; | |
| var src = self.getAttribute("src"); | |
| var root = src.substring(0, src.indexOf(filename)); | |
| var modules = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function create() { | |
| var types = Array.prototype.slice.call(arguments, 0, arguments.length - 1); | |
| var body = arguments[arguments.length - 1]; | |
| return function () { | |
| if (arguments.length < types.length) | |
| throw new Error("Argument count mismatch."); | |
| for (var i = 0; i < types.length; i++) { | |
| if (arguments[i].constructor != types[i] && !(arguments[i] instanceof types[i])) | |
| throw new Error("Argument type mismatch. (" + types[i].name + ")"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Enumerable(generator, length, start) { | |
| this.generator = generator; | |
| this.length = length || Infinity; | |
| this.current = start || 0; | |
| this.index = 0; | |
| Object.defineProperty(this, this.index, { get: this.next, configurable: true }); | |
| } | |
| Enumerable.prototype.next = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using System.Web.Mvc; | |
| namespace TestWeb.Extensions | |
| { | |
| public static class HtmlHelperExtensions | |
| { | |
| static Dictionary<string, object> ToDictionary(object o) | |
| { | |
| return o.GetType().GetProperties().ToDictionary(n => n.Name, n => n.GetValue(o, null)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import frida, argparse | |
| parser = argparse.ArgumentParser(description='List modules for a process') | |
| parser.add_argument('process_names', metavar='process name', nargs='+', help='names of processes to enumerate') | |
| parser.add_argument('-R', dest='target', action='store_const', const=True, default=False, | |
| help='target remote device') | |
| try: | |
| args = parser.parse_args() | |
| target = frida |