众所周知,使用 DeepSeek 官网需要使用手机号登陆。有一个地方可以免登录使用:
https://chat.baidu.com/
这是百度提供的 DeepSeek 服务。
注:ds 写的 wikidot 反 XSS 油猴脚本(可能用不了,别试了)**不是我写的**
```
// ==UserScript==
// @name Wikidot XSS 防御(无Cookie覆盖)
// @match *://*.wikidot.com/*
// @run-at document-start
// ==/UserScript==
(function() {
‘use strict’;
// ========== 1. 严格网络请求拦截 ==========
const SAFE_DOMAINS = ['wikidot.com', 'wdfiles.com'];
// 劫持 fetch API
const nativeFetch = window.fetch;
window.fetch = async (input, init) => {
const url = input.url || input;
if (!SAFE_DOMAINS.some(d => url.includes(d))) {
console.error(`[XSS拦截] 已阻止跨域请求: ${url}`);
return new Response(null, { status: 403 });
}
return nativeFetch(input, init);
};
// 劫持 XMLHttpRequest
const nativeXHROpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
if (!SAFE_DOMAINS.some(d => url.includes(d))) {
this._blocked = true;
console.error(`[XSS拦截] 已阻止XHR请求: ${url}`);
return;
}
nativeXHROpen.apply(this, arguments);
};
// ========== 2. 动态脚本净化 ==========
const observer = new MutationObserver(mutations => {
mutations.forEach(({ addedNodes }) => {
addedNodes.forEach(node => {
// 拦截内联脚本
if (node.nodeName === 'SCRIPT' && !node.src) {
node.remove();
console.warn('[XSS拦截] 已移除内联脚本');
}
// 清除高危HTML属性
if (node.nodeType === 1) {
['onerror', 'onload', 'onmouseover'].forEach(attr => {
node.removeAttribute(attr);
});
}
});
});
});
observer.observe(document, { subtree: true, childList: true });
// ========== 3. CSP 增强防护 ==========
const cspMeta = document.createElement('meta');
cspMeta.httpEquiv = "Content-Security-Policy";
cspMeta.content = `
default-src 'self' *.wikidot.com;
script-src 'self' 'unsafe-eval';
connect-src 'none';
`.replace(/\s+/g, ' ');
document.head.append(cspMeta);
// ========== 4. 原型链保护 ==========
['sessionStorage', 'localStorage'].forEach(api => {
const native = window[api].getItem;
window[api].getItem = function(key) {
if (key.toLowerCase().includes('token')) {
console.warn(`[XSS拦截] 敏感存储访问: ${key}`);
return null;
}
return native.call(this, key);
};
});
})();
```
使用示例:
[REDACTED]
*不要封我,不是我说的*