⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client.js

📁 AttackAPI提供简单而直观的web可编程接口
💻 JS
字号:
AttackAPI.Client = {};
AttackAPI.Client.getPlatformInfo = function (signatures) {
	return {platform: navigator.platform};
};
AttackAPI.Client.getBrowserInfo = function (signatures) {
	var browser = undefined;
	
	if (navigator.userAgent) {
		browser = navigator.userAgent;
	} else if (navigator.vendor) {
		browser = navigator.vendor;
	} else if (window.opera) {
		browser = "Opera";
	}
		
	return {browser: browser};
};
AttackAPI.Client.getPluginsInfo = function () {
	return navigator.plugins;
};
AttackAPI.Client.getNetworkInfo = function () {
	var hostname = undefined;
	var address = undefined;
	
	try {
		var sock = new java.net.Socket();
		sock.bind(new java.net.InetSocketAddress('0.0.0.0', 0));
		sock.connect(new java.net.InetSocketAddress(document.domain, (!document.location.port)?80:document.location.port));
		hostname = sock.getLocalAddress().getHostName();
		address = sock.getLocalAddress().getHostAddress();	
	} catch (e) {}
	
	return {hostname: hostname, address: address};
};

⌨️ 快捷键说明

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