networksweeper.js

来自「AttackAPI提供简单而直观的web可编程接口」· JavaScript 代码 · 共 18 行

JS
18
字号
AttackAPI.NetworkSweeper = {};
AttackAPI.NetworkSweeper.lazySweep = function (callback, targets, protocols) {
	var links = [];
	var protocols = (protocols == null)?['ftp', 'http', 'https']:protocols;

	for (index = 0; index < targets.length; index++) {
		for (zindex = 0; zindex < protocols.length; zindex++) {
			var link = new String(protocols[zindex] + '://' + targets[index]);
			link.target = targets[index];
			links.push(link);
		}
	}	
	
	AttackAPI.HistoryDumper.lazyDump(function (link, status) {
		callback(link.target, status);
	}, links);
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?