├── .editorconfig ├── .github ├── FUNDING.yml └── workflows │ ├── BuildBinaries.yml │ ├── DeployWebsite.yml │ └── GitMirrorAction.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Documents ├── GetBuildNumber.xlsx ├── MoPluginReadme.md ├── MoPluginReadme.ru.md ├── MoPluginReadme.zh-Hans.md └── Versioning.md ├── License.md ├── Logo.png ├── Manual ├── Screenshot.png ├── UserManual.md ├── UserManual.pdf ├── 屏幕截图.png ├── 用戶手冊.md ├── 用戶手冊.pdf ├── 用户手册.md ├── 用户手册.pdf └── 螢幕擷取畫面.png ├── People.md ├── Readme.md ├── Readme.ru.md ├── Readme.zh-CN.md ├── Source ├── MSIL │ ├── BuildAllTargets.cmd │ ├── BuildAllTargets.proj │ ├── Directory.Build.props │ ├── M2.NSudo.Demo │ │ ├── M2.NSudo.Demo.csproj │ │ └── Program.cs │ ├── M2.NSudo.sln │ └── M2.NSudo │ │ ├── M2.NSudo.csproj │ │ ├── NSUDO_MANDATORY_LABEL_TYPE.cs │ │ ├── NSUDO_PRIVILEGES_MODE_TYPE.cs │ │ ├── NSUDO_PROCESS_PRIORITY_CLASS_TYPE.cs │ │ ├── NSUDO_SHOW_WINDOW_MODE_TYPE.cs │ │ ├── NSUDO_USER_MODE_TYPE.cs │ │ ├── NSudoInstance.cs │ │ ├── Properties │ │ └── launchSettings.json │ │ └── Win32.cs └── Native │ ├── BuildAllTargets.cmd │ ├── BuildAllTargets.proj │ ├── Directory.Build.props │ ├── MINT │ ├── MINT.h │ └── MINT.props │ ├── Mile.Cpp │ ├── Mile.Library │ │ ├── Mile.Library.props │ │ ├── Mile.Library.vcxproj │ │ ├── Mile.Library.vcxproj.filters │ │ ├── Mile.PiConsole.cpp │ │ ├── Mile.PiConsole.h │ │ ├── Mile.Portable.cpp │ │ ├── Mile.Portable.h │ │ ├── Mile.Windows.cpp │ │ └── Mile.Windows.h │ └── Mile.Project │ │ ├── Mile.Project.Library.CppWinRT.props │ │ ├── Mile.Project.Manifest.rc │ │ ├── Mile.Project.Platform.ARM.props │ │ ├── Mile.Project.Platform.ARM64.props │ │ ├── Mile.Project.Platform.Win32.props │ │ ├── Mile.Project.Platform.x64.props │ │ ├── Mile.Project.Runtime.VC-LTL.props │ │ ├── Mile.Project.Version.h │ │ ├── Mile.Project.Version.rc │ │ ├── Mile.Project.Wap.props │ │ ├── Mile.Project.Wap.targets │ │ ├── Mile.Project.props │ │ └── Mile.Project.targets │ ├── MouriOptimizationPlugin │ ├── Mile.Project.Properties.h │ ├── MoBlockShutdown.cpp │ ├── MoDefragMemory.cpp │ ├── MoEnableMicrosoftUpdate.cpp │ ├── MoLaunchAppX.cpp │ ├── MoManageCompactOS.cpp │ ├── MoPurgeChromiumCache.cpp │ ├── MoPurgeCorruptedAppXPackages.cpp │ ├── MoPurgeDeliveryOptimizationCache.cpp │ ├── MoPurgeGeckoCache.cpp │ ├── MoPurgeNuGetCache.cpp │ ├── MoPurgePackageCache.cpp │ ├── MoPurgeSystemRestorePoint.cpp │ ├── MoPurgeTridentCache.cpp │ ├── MoPurgeVisualStudioCodeCache.cpp │ ├── MoPurgeVisualStudioInstallerCache.cpp │ ├── MoPurgeWindowsEventLog.cpp │ ├── MoPurgeWindowsSetup.cpp │ ├── MoQueryLicenseInformation.cpp │ ├── MoUpdateAppXPackages.cpp │ ├── MouriOptimizationPlugin.cpp │ ├── MouriOptimizationPlugin.def │ ├── MouriOptimizationPlugin.h │ ├── MouriOptimizationPlugin.props │ ├── MouriOptimizationPlugin.rc │ ├── MouriOptimizationPlugin.vcxproj │ ├── MouriOptimizationPlugin.vcxproj.filters │ ├── Resources │ │ ├── en │ │ │ └── Translations.toml │ │ └── zh-Hans │ │ │ └── Translations.toml │ └── resource.h │ ├── NSudo.sln │ ├── NSudoDevilMode │ ├── Mile.Project.Properties.h │ ├── NSudoDevilMode.cpp │ ├── NSudoDevilMode.vcxproj │ ├── NSudoDevilMode.vcxproj.filters │ ├── detours.cpp │ ├── detours.h │ └── disasm.cpp │ ├── NSudoLauncher │ ├── M2MessageDialogResource.h │ ├── M2MessageDialogResource.rc │ ├── M2Win32GUIHelpers.cpp │ ├── M2Win32GUIHelpers.h │ ├── Mile.Project.Properties.h │ ├── NSudoLauncherCUI.cpp │ ├── NSudoLauncherCUI.manifest │ ├── NSudoLauncherCUI.rc │ ├── NSudoLauncherCUI.vcxproj │ ├── NSudoLauncherCUI.vcxproj.filters │ ├── NSudoLauncherCUIResource.h │ ├── NSudoLauncherGUI.cpp │ ├── NSudoLauncherGUI.manifest │ ├── NSudoLauncherGUI.rc │ ├── NSudoLauncherGUI.vcxproj │ ├── NSudoLauncherGUI.vcxproj.filters │ ├── NSudoLauncherGUIResource.h │ ├── NSudoLauncherResources.h │ ├── NSudoLauncherResources.props │ ├── NSudoLauncherResources.rc │ ├── NSudoLauncherResources.vcxproj │ ├── NSudoLauncherResources.vcxproj.filters │ ├── Resources │ │ ├── NSudo.json │ │ ├── NSudoLauncher.ico │ │ ├── NSudoLauncher.xcf │ │ ├── de │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ │ ├── en │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ │ ├── es │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ │ ├── fr │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ │ ├── it │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ │ ├── ru │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ │ ├── zh-Hans │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ │ └── zh-Hant │ │ │ ├── CommandLineHelp.txt │ │ │ ├── Links.txt │ │ │ └── Translations.json │ └── jsmn.h │ ├── NSudoPluginHost │ ├── Mile.Project.Properties.h │ ├── NSudoPluginHost.cpp │ ├── NSudoPluginHost.manifest │ ├── NSudoPluginHost.rc │ ├── NSudoPluginHost.vcxproj │ ├── NSudoPluginHost.vcxproj.filters │ ├── Resources │ │ ├── en │ │ │ └── Translations.toml │ │ └── zh-Hans │ │ │ └── Translations.toml │ └── resource.h │ ├── NSudoSDK │ ├── DllMain.cpp │ ├── M2.Base.cpp │ ├── M2.Base.h │ ├── MCC.cppold │ ├── Mile.Project.Properties.h │ ├── NSudoAPI.cpp │ ├── NSudoAPI.def │ ├── NSudoAPI.h │ ├── NSudoAPI.props │ ├── NSudoAPI.vcxproj │ ├── NSudoAPI.vcxproj.filters │ ├── NSudoContextPlugin.h │ ├── NSudoContextPluginHost.cpp │ ├── NSudoContextPluginHost.h │ ├── NSudoSDK.props │ ├── NSudoSDK.vcxproj │ ├── NSudoSDK.vcxproj.filters │ └── toml.hpp │ ├── Scripts │ └── NSudo.bat │ ├── WTL │ ├── WTL.props │ └── WTL │ │ ├── atlapp.h │ │ ├── atlcrack.h │ │ ├── atlctrls.h │ │ ├── atlctrlw.h │ │ ├── atlctrlx.h │ │ ├── atlddx.h │ │ ├── atldlgs.h │ │ ├── atldwm.h │ │ ├── atlfind.h │ │ ├── atlframe.h │ │ ├── atlgdi.h │ │ ├── atlmisc.h │ │ ├── atlprint.h │ │ ├── atlres.h │ │ ├── atlribbon.h │ │ ├── atlscrl.h │ │ ├── atlsplit.h │ │ ├── atltheme.h │ │ ├── atluser.h │ │ └── atlwinx.h │ └── libkcrt │ ├── .gitignore │ ├── arm │ └── libkcrt.lib │ ├── arm64 │ └── libkcrt.lib │ ├── libkcrt.props │ ├── x64 │ └── libkcrt.lib │ └── x86 │ └── libkcrt.lib ├── Website ├── .gitignore ├── .vuepress │ ├── config.js │ ├── config │ │ └── themeConfig │ │ │ └── locales │ │ │ ├── en-us.js │ │ │ ├── ru-ru.js │ │ │ ├── zh-hans.js │ │ │ └── zh-hant.js │ ├── public │ │ ├── CNAME │ │ ├── assets │ │ │ └── img │ │ │ │ └── logo.png │ │ ├── favicon.ico │ │ ├── icons │ │ │ ├── apple-touch-icon-152x152.png │ │ │ ├── msapplication-icon-144x144.png │ │ │ └── safari-pinned-tab.svg │ │ ├── index.html │ │ └── manifest.json │ ├── styles │ │ ├── index.styl │ │ └── palette.styl │ └── theme │ │ ├── components │ │ ├── Home.vue │ │ ├── Page.vue │ │ └── PageFooter.vue │ │ ├── index.js │ │ ├── layouts │ │ └── 404.vue │ │ └── styles │ │ └── wrapper.styl ├── build.bat ├── doxygen │ └── Doxyfile ├── en-us │ ├── Download.md │ ├── Readme.md │ ├── Screenshot.png │ ├── Support.md │ └── docs │ │ ├── Changelog.md │ │ ├── DevilMode.md │ │ ├── Readme.md │ │ └── SharedLibrary.md ├── package.json ├── ru-ru │ ├── Download.md │ ├── Readme.md │ ├── Screenshot.png │ ├── Support.md │ └── docs │ │ ├── Changelog.md │ │ ├── DevilMode.md │ │ ├── Readme.md │ │ └── SharedLibrary.md ├── yarn.lock ├── zh-hans │ ├── Download.md │ ├── Readme.md │ ├── Screenshot.png │ ├── Support.md │ └── docs │ │ ├── Changelog.md │ │ ├── DevilMode.md │ │ ├── Readme.md │ │ └── SharedLibrary.md └── zh-hant │ ├── Download.md │ ├── Readme.md │ ├── Screenshot.png │ ├── Support.md │ └── docs │ ├── Changelog.md │ ├── DevilMode.md │ ├── Readme.md │ └── SharedLibrary.md └── appveyor.yml /.editorconfig: -------------------------------------------------------------------------------- 1 | ## 2 | ## PROJECT: Mouri Internal Library Essentials 3 | ## FILE: .editorconfig 4 | ## PURPOSE: The root .editorconfig file for C++ Project 5 | ## 6 | ## LICENSE: The MIT License 7 | ## 8 | ## DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | ## 10 | 11 | root = true 12 | 13 | [*] 14 | charset = utf-8-bom 15 | end_of_line = crlf 16 | 17 | [*.md] 18 | insert_final_newline = true 19 | 20 | [*.{c,c++,cc,cpp,cxx,h,h++,hh,hpp,hxx,idl,inl,ipp,tlh,tli}] 21 | indent_style = space 22 | indent_size = 4 23 | insert_final_newline = true 24 | trim_trailing_whitespace = true 25 | vc_generate_documentation_comments = doxygen_slash_star 26 | 27 | [*.{js,json,xml,toml,xaml}] 28 | indent_style = space 29 | indent_size = 2 30 | insert_final_newline = true 31 | trim_trailing_whitespace = true 32 | 33 | [*.rc] 34 | charset = utf-16le 35 | 36 | [Mile.Project.Properties.Template.h] 37 | charset = utf-16le 38 | 39 | [Mile.Project.Properties.h] 40 | charset = utf-16le 41 | 42 | [*.bat] 43 | charset = utf-8 44 | insert_final_newline = true 45 | 46 | [*.sh] 47 | charset = utf-8 48 | end_of_line = lf 49 | insert_final_newline = true 50 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | patreon: MouriNaruto 2 | -------------------------------------------------------------------------------- /.github/workflows/BuildBinaries.yml: -------------------------------------------------------------------------------- 1 | name: Build Binaries 2 | 3 | on: 4 | push: 5 | paths: 6 | - 'Source/**' 7 | pull_request: 8 | paths: 9 | - 'Source/**' 10 | 11 | jobs: 12 | build: 13 | runs-on: windows-latest 14 | env: 15 | POWERSHELL_TELEMETRY_OPTOUT: 1 16 | steps: 17 | - uses: actions/checkout@v2 18 | - uses: microsoft/setup-msbuild@v1 19 | - name: Clear local NuGet cache (workaround for failed restores on windows-latest) 20 | run: dotnet nuget locals all --clear 21 | - name: Build 22 | run: msbuild -m Source\Native\BuildAllTargets.proj 23 | - name: Prepare artifacts 24 | run: rm Source\Native\Output\Binaries\* -vb -Recurse -Force -Include *.exp, *.idb, *.ilk, *.iobj, *.ipdb, *.lastbuildstate, *.lib, *.obj, *.res, *.tlog 25 | - uses: actions/upload-artifact@v2 26 | with: 27 | name: NSudo_CI_Build 28 | path: Source\Native\Output\Binaries 29 | -------------------------------------------------------------------------------- /.github/workflows/DeployWebsite.yml: -------------------------------------------------------------------------------- 1 | name: Deploy Website to GitHub Pages 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | paths: 8 | - 'Website/**' 9 | 10 | jobs: 11 | DeployWebsite: 12 | runs-on: ubuntu-latest 13 | steps: 14 | 15 | - name: Checkout 16 | uses: actions/checkout@main 17 | with: 18 | persist-credentials: false 19 | 20 | - name: Setup node.js 21 | uses: actions/setup-node@main 22 | with: 23 | node-version: '17' 24 | 25 | - name: Install packages 26 | run: yarn --cwd "Website" 27 | 28 | - name: Build 29 | run: yarn --cwd "Website" build 30 | 31 | - name: Deploy 32 | uses: JamesIves/github-pages-deploy-action@4.1.5 33 | with: 34 | token: ${{ github.token }} 35 | branch: gh-pages 36 | folder: Website/.vuepress/dist 37 | -------------------------------------------------------------------------------- /.github/workflows/GitMirrorAction.yml: -------------------------------------------------------------------------------- 1 | name: Git Mirror Action 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | push: 10 | runs-on: ubuntu-latest 11 | steps: 12 | 13 | - name: Checkout 14 | uses: actions/checkout@main 15 | with: 16 | ref: 'master' 17 | persist-credentials: false 18 | fetch-depth: 0 19 | 20 | - run: | 21 | date > generated.txt 22 | git remote add gitee https://gitee.com/M2-Team/NSudo.git 23 | git fetch -q --all 24 | git push -q https://Mouri_Naruto:${{ secrets.GITEE_TOKEN }}@gitee.com/M2-Team/NSudo.git master --tags 25 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, 8 | body size, disability, ethnicity, sex characteristics, gender identity and 9 | expression, level of experience, education, socio-economic status, nationality, 10 | personal appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an 52 | appointed representative at an online or offline event. Representation of 53 | project may be further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at Mouri_Naruto@Outlook.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an 62 | incident. Further details of specific enforcement policies may be posted 63 | separately. 64 | 65 | Project maintainers who do not follow or enforce the Code of Conduct in good 66 | faith may face temporary or permanent repercussions as determined by other 67 | members of the project's leadership. 68 | 69 | ## Attribution 70 | 71 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 72 | version 1.4, available at 73 | https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 74 | 75 | [homepage]: https://www.contributor-covenant.org 76 | 77 | For answers to common questions about this code of conduct, see 78 | https://www.contributor-covenant.org/faq 79 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | The content moved to [Readme.md](Readme.md#contributing-to-nsudo) 2 | -------------------------------------------------------------------------------- /Documents/GetBuildNumber.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Documents/GetBuildNumber.xlsx -------------------------------------------------------------------------------- /Documents/Versioning.md: -------------------------------------------------------------------------------- 1 | # NSudo Versioning 2 | 3 | This document applies to NSudo 9.0 and later. 4 | 5 | ## Version Format 6 | 7 | - Simple Version: `. ` 8 | - Example: `9.0 Preview 1` 9 | - Binary Version: `...` 10 | - Example: `9.0.2654.0` 11 | 12 | ## The rule for build and revision number 13 | 14 | The build number is the number of days since May 1, 2014 because the first 15 | version of NSudo is created and published on that day. 16 | 17 | The revision number is the number of releases releases in the day corresponding 18 | to the build number, and it counts from zero. So the first revision is 0 and 19 | the second revision is 1. 20 | -------------------------------------------------------------------------------- /License.md: -------------------------------------------------------------------------------- 1 | # License 2 | 3 | The offical NSudo repository (not including third-party libraries) is **only** 4 | distributed under the MIT License today because we want to give the **maximum 5 | respect** to every NSudo users and we also hope every people treat others 6 | kindly. 7 | 8 | ``` 9 | The MIT License (MIT) 10 | 11 | Copyright (c) M2-Team and Contributors. All rights reserved. 12 | 13 | Permission is hereby granted, free of charge, to any person obtaining a copy 14 | of this software and associated documentation files (the "Software"), to deal 15 | in the Software without restriction, including without limitation the rights 16 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 | copies of the Software, and to permit persons to whom the Software is 18 | furnished to do so, subject to the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be included in all 21 | copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 26 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 28 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 29 | SOFTWARE. 30 | ``` 31 | 32 | ## Mouri_Naruto's libraries which used in the official NSudo repository 33 | 34 | | Name | Project website | 35 | |-----------------------------------|-----------------------------------------| 36 | | Mouri Internal Library Essentials | https://github.com/ProjectMile/Mile.Cpp | 37 | 38 | ## M2-Team's libraries which used in the official NSudo repository 39 | 40 | | Name | Project website | 41 | |------------------------|-----------------------------------------------| 42 | | M2-Team Common Library | https://github.com/M2Team/M2TeamCommonLibrary | 43 | 44 | ## Chuyu Team's libraries which used in the official NSudo repository 45 | 46 | | Name | Project website | 47 | |-------------------------------------|---------------------------------------| 48 | | libkcrt | https://github.com/Chuyu-Team/libkcrt | 49 | | Mouri's Internal NT API Collections | https://github.com/Chuyu-Team/MINT | 50 | | VC-LTL | https://github.com/Chuyu-Team/VC-LTL | 51 | 52 | ## 3rd-party libraries which used in the official NSudo repository 53 | 54 | | Name | Project website | 55 | |------------------------------------|--------------------------------------| 56 | | JSMN | https://github.com/zserge/jsmn | 57 | | Microsoft Research Detours Package | https://github.com/microsoft/Detours | 58 | | Windows Template Library | https://sourceforge.net/projects/wtl | 59 | -------------------------------------------------------------------------------- /Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Logo.png -------------------------------------------------------------------------------- /Manual/Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Manual/Screenshot.png -------------------------------------------------------------------------------- /Manual/UserManual.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Manual/UserManual.pdf -------------------------------------------------------------------------------- /Manual/屏幕截图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Manual/屏幕截图.png -------------------------------------------------------------------------------- /Manual/用戶手冊.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Manual/用戶手冊.pdf -------------------------------------------------------------------------------- /Manual/用户手册.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Manual/用户手册.pdf -------------------------------------------------------------------------------- /Manual/螢幕擷取畫面.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Manual/螢幕擷取畫面.png -------------------------------------------------------------------------------- /People.md: -------------------------------------------------------------------------------- 1 | # NSudo - 相关人士 Relevant People 2 | 3 | ## 提示 Notice 4 | 5 | - 本列表按字母顺序排列。 6 | - This list sort in alphabetical order. 7 | 8 | ## 创立者 Creator 9 | 10 | - Mouri_Naruto ([https://github.com/MouriNaruto](https://github.com/MouriNaruto)) 11 | 12 | ## 原型作者 Prototype author 13 | 14 | - raymai97 ([https://github.com/Raymai97](https://github.com/Raymai97)) 15 | 16 | ## 贡献者 Contributors 17 | 18 | - 20011010wo ([https://github.com/yangrq](https://github.com/yangrq)) 19 | - Bill ([https://github.com/bianyifan](https://github.com/bianyifan)) 20 | - Blueberryy ([https://github.com/Blueberryy](https://github.com/Blueberryy)) 21 | - Eugene Wang J.y ([https://github.com/ewjy](https://github.com/ewjy)) 22 | - Flex Zhong ([https://github.com/ChungZH](https://github.com/ChungZH)) 23 | - Force.Charlie-I ([https://github.com/fcharlie](https://github.com/fcharlie)) 24 | - garf02 ([https://github.com/garf02](https://github.com/garf02)) 25 | - laosb ([https://github.com/laosb](https://github.com/laosb)) 26 | - Luke Luo ([https://github.com/njlyf2011](https://github.com/njlyf2011)) 27 | - Margen67 ([https://github.com/Margen67](https://github.com/Margen67)) 28 | - May_magic ([https://github.com/873578156](https://github.com/873578156)) 29 | - Microsoft_Mars ([https://github.com/HimiMisaki](https://github.com/HimiMisaki)) 30 | - Miguel Obando ([https://github.com/obando777](https://github.com/obando777)) 31 | - mingkuang ([https://github.com/mingkuang-Chuyu](https://github.com/mingkuang-Chuyu)) 32 | - myfreeer ([https://github.com/myfreeer](https://github.com/myfreeer)) 33 | - 青春永不落幕 ([https://github.com/qcyblm](https://github.com/qcyblm)) 34 | - Steve ([https://github.com/uDEV2019](https://github.com/uDEV2019)) 35 | - Thomas Dubreuil ([https://github.com/Thdub](https://github.com/Thdub)) 36 | 37 | ## 赞助者 Sponsors 38 | 39 | - 安磊磊 40 | - boyangpangzi 41 | - cjy\_\_05 42 | - dfdc5 43 | - Krunk Zhou ([https://github.com/KrunkZhou](https://github.com/KrunkZhou)) 44 | - Legna ([https://www.brighost.com/nav/](https://www.brighost.com/nav/)) 45 | - mhxkx 46 | - NotePad 47 | - tangmigoId 48 | - wondersnefu 49 | - xy137425740 50 | - 龍魂 51 | - 月光光 52 | 53 | ## 反馈者 Advicers 54 | 55 | - _kod0k 56 | - 4071E95D-A09B-4AA3-8008 57 | - abbodi1406 58 | - AeonX 59 | - DennyAmaro 60 | - Domagoj Smolčić 61 | - hydra79545 62 | - imadlatch 63 | - jgtoy 64 | - kCaRhC 卡壳 65 | - Lenny 66 | - NotePad 67 | - rlesch ([https://github.com/rlesch](https://github.com/rlesch)) 68 | - sdtzsf 69 | - sebus 70 | - testtest322 71 | - th1r5bvn23 72 | - 老九 73 | - 龍魂 74 | - 芈员外 75 | - xspeed1989 (成都领沃科技-常炯)([https://github.com/xspeed1989](https://github.com/xspeed1989)) 76 | - 鸢一雨音 ([https://github.com/TobiichiAmane](https://github.com/TobiichiAmane)) 77 | - さくら 78 | 79 | ## 特别感谢 Special thanks 80 | 81 | - 高坂穂乃果 (因为知晓了她的事迹, 使我没有放弃对 NSudo 的开发) 82 | -------------------------------------------------------------------------------- /Readme.zh-CN.md: -------------------------------------------------------------------------------- 1 | # ![Logo](Logo.png) NSudo - 系统管理工具包 2 | 3 | [![AppVeyor CI](https://ci.appveyor.com/api/projects/status/github/M2Team/NSudo?branch=master&svg=true)](https://ci.appveyor.com/project/MouriNaruto/nsudo) 4 | [![Latest Version](https://img.shields.io/github/release/M2Team/NSudo.svg)](https://github.com/M2Team/NSudo/releases/latest) 5 | [![Latest Release Downloads](https://img.shields.io/github/downloads/M2Team/NSudo/latest/total.svg)](https://github.com/M2Team/NSudo/releases/latest) 6 | [![Total Downloads](https://img.shields.io/github/downloads/M2Team/NSudo/total.svg)](https://github.com/M2Team/NSudo/releases) 7 | [![License](https://img.shields.io/badge/license-MIT-green.svg)](License.md) 8 | [![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) 9 | [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FM2Team%2FNSudo.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FM2Team%2FNSudo?ref=badge_shield) 10 | 11 | [English](Readme.md) | [Русский](Readme.ru.md) 12 | 13 | 这里是 NSudo 的源代码仓库。如果你想访问 NSudo 的官方网站、下载 NSudo 或者阅读 14 | NSudo 的文档等, 请转到 https://nsudo.m2team.org。 15 | 16 | 本自述文件仅面向开发者, 毕竟隶属于源代码仓库下。 17 | 18 | ## 2021 Development Roadmap 19 | 20 | - [x] 添加当前用户 (提权) 模式 21 | - [x] 在 NSudo Shared Library 实现 22 | - [x] 在 NSudo Launcher 实现 23 | - [ ] 使用 wxWidgets 实现用户界面 24 | - [ ] 基于 TOML 的环境配置文件 25 | - [ ] 在 NSudo Shared Library 中添加更多 API 26 | - [ ] 官方网站支持导出 PDF 27 | - [x] 改善码云镜像体验 28 | - [x] 对代码仓库根目录的自述文件进行本地化 29 | - [x] 实现自动同步 30 | 31 | ## 相关人士 32 | 33 | 请参阅 [People.md](People.md)。 34 | 35 | ## 行为准则 36 | 37 | 请参阅 [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)。 38 | 39 | ## 向 NSudo 贡献 40 | 41 | ### 如何成为贡献者 42 | 43 | - 直接贡献 44 | - **请直接创建 Pull Requests。** 45 | - 如有疑惑, 请发送邮件到 Mouri_Naruto@Outlook.com 以进行讨论。 46 | - 反馈建议和问题 47 | - 我们使用 GitHub Issues 跟踪问题和建议。 48 | - 对于问题和建议, 请[创建新 Issue](https://github.com/M2Team/NSudo/issues/new). 49 | 50 | ### 代码贡献参考 51 | 52 | #### 构建前置条件 53 | 54 | - Visual Studio 2017 Version 15.9 及之后版本。 55 | - 如果你要编译 ARM64 版本的 NSudo 还需要勾选 ARM64 版本的 MSVC 编译工具链和 56 | ATL/MFC 组件。 57 | - Windows 10 Version 1507 SDK 及之后版本。 58 | - 如果你使用的是 Windows 10 Version 1703 SDK 及之后版本且你要编译 ARM64 59 | 版本的 NSudo 还需要勾选 ARM64 的相关组件。 60 | 61 | #### 编译 NSudo 的所有目标 62 | 63 | 运行 `Source/Native` 目录下的 `BuildAllTargets.bat`。 64 | 65 | #### 如何修改和调试 NSudo 66 | 67 | 运行 `Source/Native` 目录下的 `NSudo.sln`。 68 | 69 | #### 代码风格和规范 70 | 71 | - C++: [C++ Core Guidelines](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md) 72 | - C#: 遵循 .NET Core 团队的 [C# coding style](https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md) 73 | 74 | 所有编程语言的实现都需要遵循代码树下 [.editorconfig](https://editorconfig.org/) 75 | 文件的设定, 许多 IDE 都对该文件有内置或者插件支持。 76 | 77 | #### 使用其他项目的文件 78 | 79 | 如果 PR 中包含其他项目的文件, 需要遵循下述规定: 80 | * 该文件的许可证必须为 81 | [宽松许可](https://en.wikipedia.org/wiki/Permissive_free_software_licence). 82 | * 该文件的许可证必须标明。 83 | * 项目的引用必须正确标注在 [许可证](License.md) 文件中。 84 | 85 | ### 如何更新文档 86 | 87 | 请参阅 https://github.com/M2Team/NSudo/pull/29。 88 | 89 | 如要编译文档, 你需要在你的开发环境下安装 [Node.js](https://nodejs.org) 和 90 | [Yarn](https://yarnpkg.com) 后运行 `Website` 目录下的 `build.bat`。 91 | 92 | 文档引擎基于 [VuePress](https://v1.vuepress.vuejs.org) 构建。 93 | -------------------------------------------------------------------------------- /Source/MSIL/BuildAllTargets.cmd: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem PROJECT: Mouri Internal Library Essentials 3 | @rem FILE: BuildAllTargets.cmd 4 | @rem PURPOSE: Build all targets script for Visual Studio .NET Project 5 | @rem 6 | @rem LICENSE: The MIT License 7 | @rem 8 | @rem DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | @rem 10 | 11 | @setlocal 12 | @echo off 13 | 14 | rem Change to the current folder. 15 | cd "%~dp0" 16 | 17 | rem Remove the output folder for a fresh compile. 18 | rd /s /q Output 19 | 20 | set VisualStudioInstallerFolder="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer" 21 | if %PROCESSOR_ARCHITECTURE%==x86 set VisualStudioInstallerFolder="%ProgramFiles%\Microsoft Visual Studio\Installer" 22 | 23 | pushd %VisualStudioInstallerFolder% 24 | for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.NetCore.Component.SDK -property installationPath`) do ( 25 | set VisualStudioInstallDir=%%i 26 | ) 27 | popd 28 | 29 | call "%VisualStudioInstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86 30 | 31 | rem Build all targets 32 | MSBuild -m BuildAllTargets.proj 33 | 34 | @endlocal -------------------------------------------------------------------------------- /Source/MSIL/BuildAllTargets.proj: -------------------------------------------------------------------------------- 1 |  2 | 11 | 14 | 15 | $(MSBuildThisFileDirectory)*.sln 16 | 17 | 18 | 19 | Configuration=Debug;Platform=Any CPU 20 | 21 | 22 | Configuration=Release;Platform=Any CPU 23 | 24 | 25 | 26 | 31 | 32 | 33 | 39 | 40 | 41 | 47 | 48 | -------------------------------------------------------------------------------- /Source/MSIL/Directory.Build.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | $(MSBuildThisFileDirectory)Output\Binaries\$(MSBuildProjectName)\ 14 | $(MSBuildThisFileDirectory)Output\Objects\$(MSBuildProjectName)\ 15 | 16 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo.Demo/M2.NSudo.Demo.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Exe 5 | net6.0 6 | 7 | M2-Team 8 | M2-Team 9 | © M2-Team and Contributors. All rights reserved. 10 | 9.0.2830 11 | NSudo 12 | NSudo Shared Library .Net Wrapper Demo 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo.Demo/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace M2.NSudo.Demo 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | NSudoInstance instance = new NSudoInstance(); 10 | 11 | instance.WriteLog("M2.NSudo.Demo", "Start"); 12 | 13 | try 14 | { 15 | instance.CreateProcess( 16 | NSUDO_USER_MODE_TYPE.TRUSTED_INSTALLER, 17 | NSUDO_PRIVILEGES_MODE_TYPE.ENABLE_ALL_PRIVILEGES, 18 | NSUDO_MANDATORY_LABEL_TYPE.SYSTEM, 19 | NSUDO_PROCESS_PRIORITY_CLASS_TYPE.NORMAL, 20 | NSUDO_SHOW_WINDOW_MODE_TYPE.DEFAULT, 21 | 0, 22 | true, 23 | "cmd", 24 | null); 25 | } 26 | catch (Exception ex) 27 | { 28 | Console.WriteLine( 29 | "CreateProcess Failed, return {0}", 30 | ex.HResult); 31 | } 32 | 33 | instance.WriteLog("M2.NSudo.Demo", "End"); 34 | 35 | Console.WriteLine(instance.ReadLog()); 36 | 37 | Console.ReadKey(); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30804.86 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "M2.NSudo", "M2.NSudo\M2.NSudo.csproj", "{38947780-5D8E-4991-BBFD-F588F7BADC14}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "M2.NSudo.Demo", "M2.NSudo.Demo\M2.NSudo.Demo.csproj", "{69F65B19-2ABA-47AA-A6FA-CB3B83FCCE46}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {38947780-5D8E-4991-BBFD-F588F7BADC14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {38947780-5D8E-4991-BBFD-F588F7BADC14}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {38947780-5D8E-4991-BBFD-F588F7BADC14}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {38947780-5D8E-4991-BBFD-F588F7BADC14}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {69F65B19-2ABA-47AA-A6FA-CB3B83FCCE46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {69F65B19-2ABA-47AA-A6FA-CB3B83FCCE46}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {69F65B19-2ABA-47AA-A6FA-CB3B83FCCE46}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {69F65B19-2ABA-47AA-A6FA-CB3B83FCCE46}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {8D96803C-6DBB-44C8-B876-FF7AC89E6F7F} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/M2.NSudo.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Library 5 | netstandard2.0 6 | 7 | M2-Team 8 | M2-Team 9 | © M2-Team and Contributors. All rights reserved. 10 | 9.0.2830 11 | NSudo 12 | NSudo Shared Library .Net Wrapper 13 | 14 | bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/NSUDO_MANDATORY_LABEL_TYPE.cs: -------------------------------------------------------------------------------- 1 | namespace M2.NSudo 2 | { 3 | /// 4 | /// Contains values that specify the type of mandatory label. 5 | /// 6 | public enum NSUDO_MANDATORY_LABEL_TYPE 7 | { 8 | #pragma warning disable CS1591 9 | UNTRUSTED, 10 | LOW, 11 | MEDIUM, 12 | MEDIUM_PLUS, 13 | HIGH, 14 | SYSTEM, 15 | PROTECTED_PROCESS, 16 | #pragma warning restore CS1591 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/NSUDO_PRIVILEGES_MODE_TYPE.cs: -------------------------------------------------------------------------------- 1 | namespace M2.NSudo 2 | { 3 | /// 4 | /// Contains values that specify the type of privileges mode. 5 | /// 6 | public enum NSUDO_PRIVILEGES_MODE_TYPE 7 | { 8 | #pragma warning disable CS1591 9 | DEFAULT, 10 | ENABLE_ALL_PRIVILEGES, 11 | DISABLE_ALL_PRIVILEGES 12 | #pragma warning restore CS1591 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/NSUDO_PROCESS_PRIORITY_CLASS_TYPE.cs: -------------------------------------------------------------------------------- 1 | namespace M2.NSudo 2 | { 3 | /// 4 | /// Contains values that specify the type of process priority class. 5 | /// 6 | public enum NSUDO_PROCESS_PRIORITY_CLASS_TYPE 7 | { 8 | #pragma warning disable CS1591 9 | IDLE, 10 | BELOW_NORMAL, 11 | NORMAL, 12 | ABOVE_NORMAL, 13 | HIGH, 14 | REALTIME, 15 | #pragma warning restore CS1591 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/NSUDO_SHOW_WINDOW_MODE_TYPE.cs: -------------------------------------------------------------------------------- 1 | namespace M2.NSudo 2 | { 3 | /// 4 | /// Contains values that specify the type of ShowWindow mode. 5 | /// 6 | public enum NSUDO_SHOW_WINDOW_MODE_TYPE 7 | { 8 | #pragma warning disable CS1591 9 | DEFAULT, 10 | SHOW, 11 | HIDE, 12 | MAXIMIZE, 13 | MINIMIZE, 14 | #pragma warning restore CS1591 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/NSUDO_USER_MODE_TYPE.cs: -------------------------------------------------------------------------------- 1 | namespace M2.NSudo 2 | { 3 | /// 4 | /// Contains values that specify the type of user mode. 5 | /// 6 | public enum NSUDO_USER_MODE_TYPE 7 | { 8 | #pragma warning disable CS1591 9 | DEFAULT, 10 | TRUSTED_INSTALLER, 11 | SYSTEM, 12 | CURRENT_USER, 13 | CURRENT_PROCESS, 14 | CURRENT_PROCESS_DROP_RIGHT 15 | #pragma warning restore CS1591 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "M2.NSudo": { 4 | "commandName": "Project", 5 | "nativeDebugging": true 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /Source/MSIL/M2.NSudo/Win32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace M2.NSudo 5 | { 6 | #pragma warning disable CS1591 7 | public class Win32 8 | { 9 | [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 10 | public static extern IntPtr LoadLibrary(string lpFileName); 11 | 12 | [DllImport("kernel32.dll", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)] 13 | public static extern IntPtr GetProcAddress(IntPtr hModule, string procName); 14 | 15 | [DllImport("kernel32.dll", SetLastError = true)] 16 | [return: MarshalAs(UnmanagedType.Bool)] 17 | public static extern bool FreeLibrary(IntPtr hModule); 18 | } 19 | #pragma warning restore CS1591 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Source/Native/BuildAllTargets.cmd: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem PROJECT: Mouri Internal Library Essentials 3 | @rem FILE: BuildAllTargets.cmd 4 | @rem PURPOSE: Build all targets script for Visual Studio C++ Project 5 | @rem 6 | @rem LICENSE: The MIT License 7 | @rem 8 | @rem DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | @rem 10 | 11 | @setlocal 12 | @echo off 13 | 14 | rem Change to the current folder. 15 | cd "%~dp0" 16 | 17 | rem Remove the output folder for a fresh compile. 18 | rd /s /q Output 19 | 20 | set VisualStudioInstallerFolder="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer" 21 | if %PROCESSOR_ARCHITECTURE%==x86 set VisualStudioInstallerFolder="%ProgramFiles%\Microsoft Visual Studio\Installer" 22 | 23 | pushd %VisualStudioInstallerFolder% 24 | for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do ( 25 | set VisualStudioInstallDir=%%i 26 | ) 27 | popd 28 | 29 | call "%VisualStudioInstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86 30 | 31 | rem Build all targets 32 | MSBuild -m BuildAllTargets.proj 33 | 34 | @endlocal -------------------------------------------------------------------------------- /Source/Native/BuildAllTargets.proj: -------------------------------------------------------------------------------- 1 |  2 | 11 | 14 | 15 | $(MSBuildThisFileDirectory)*.sln 16 | 17 | 18 | 19 | Configuration=Debug;Platform=x86 20 | 21 | 22 | Configuration=Release;Platform=x86 23 | 24 | 25 | Configuration=Debug;Platform=x64 26 | 27 | 28 | Configuration=Release;Platform=x64 29 | 30 | 31 | Configuration=Debug;Platform=ARM64 32 | 33 | 34 | Configuration=Release;Platform=ARM64 35 | 36 | 37 | 38 | 43 | 44 | 45 | 51 | 52 | 53 | 59 | 60 | -------------------------------------------------------------------------------- /Source/Native/Directory.Build.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | $(MSBuildThisFileDirectory)Output\ 14 | $(MileProjectOutputPath)Binaries\ 15 | $(MileProjectOutputPath)Objects\ 16 | False 17 | $(MileProjectObjectsPath)$(Configuration)\$(MSBuildProjectName)\obj\ 18 | $(MileProjectBinariesPath)AppPackages\$(ProjectName)\ 19 | 20 | 21 | $(MileProjectBinariesPath)$(Configuration)\$(Platform)\ 22 | $(MileProjectObjectsPath)$(Configuration)\$(MSBuildProjectName)\$(Platform)\ 23 | $(IntDir)Generated Files\ 24 | 25 | 26 | $(MileProjectBinariesPath)$(Configuration)\$(MSBuildProjectName)\$(Platform)\ 27 | $(MileProjectObjectsPath)$(Configuration)\$(MSBuildProjectName)\ 28 | $(IntermediateOutputPath) 29 | 30 | 31 | 32 | 33 | 34 | 35 | $(AssetTargetFallback);native;uap$(TargetPlatformVersion); 36 | 37 | native,Version=v0.0 38 | native,Version=v0.0 39 | .NETCore,Version=v5.0 40 | .NETCore,Version=v5.0 41 | win;win-x86;win-x64;win-arm;win-arm64;win10-x86;win10-x64;win10-arm;win10-arm64 42 | 43 | -------------------------------------------------------------------------------- /Source/Native/MINT/MINT.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildThisFileDirectory);$(IncludePath) 5 | 6 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Library/Mile.Library.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildThisFileDirectory);$(IncludePath) 5 | 6 | 7 | 8 | %(PreprocessorDefinitions) 9 | 10 | 11 | $(OutDir)Mile.Library.lib;%(AdditionalDependencies) 12 | 13 | 14 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Library/Mile.Library.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {84E27A16-CBC7-466C-971F-2A4E0F2F95BE} 8 | Mile.Library 9 | StaticLibrary 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Library/Mile.Library.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | {e00c2d76-7f95-4a55-ba20-8804e13dd7f2} 9 | 10 | 11 | {60cd883d-6ebe-45b9-9a1d-1c59797a8985} 12 | 13 | 14 | {68b06939-0c77-4cad-a8c2-106c7e30481d} 15 | 16 | 17 | 18 | 19 | Mile.Portable 20 | 21 | 22 | Mile.Windows 23 | 24 | 25 | Mile.PiConsole 26 | 27 | 28 | 29 | 30 | Mile.Portable 31 | 32 | 33 | Mile.Windows 34 | 35 | 36 | Mile.PiConsole 37 | 38 | 39 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Library/Mile.PiConsole.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Mouri Internal Library Essentials 3 | * FILE: Mile.PiConsole.h 4 | * PURPOSE: Definition for Portable Interactive Console (Pi Console) 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #ifndef MILE_PI_CONSOLE 12 | #define MILE_PI_CONSOLE 13 | 14 | #include "Mile.Windows.h" 15 | 16 | namespace Mile 17 | { 18 | /** 19 | * @brief Wraps the Portable Interactive Console (Pi Console). 20 | */ 21 | class PiConsole 22 | { 23 | public: 24 | 25 | /** 26 | * @brief Creates a Portable Interactive Console (Pi Console) window. 27 | * @param InstanceHandle A handle to the instance of the module to be 28 | * associated with the Portable Interactive 29 | * Console (Pi Console) window. 30 | * @param WindowIconHandle A handle to the icon to be associated with 31 | * the Portable Interactive Console (Pi 32 | * Console) window. 33 | * @param WindowTitle The title of the Portable Interactive Console (Pi 34 | * Console) window. 35 | * @param ShowWindowMode Controls how the Portable Interactive Console 36 | * (Pi Console) window is to be shown. 37 | * @return The handle of Portable Interactive Console (Pi Console) 38 | * window. If the return value is not nullptr, you should use 39 | * DestroyWindow to release. 40 | */ 41 | static HWND Create( 42 | _In_ HINSTANCE InstanceHandle, 43 | _In_ HICON WindowIconHandle, 44 | _In_ LPCWSTR WindowTitle, 45 | _In_ DWORD ShowWindowMode); 46 | 47 | /** 48 | * @brief Prints messages to a Portable Interactive Console (Pi 49 | * Console) window. 50 | * @param WindowHandle The handle of a Portable Interactive Console (Pi 51 | * Console) window. 52 | * @param Content The content of the message you want to print. 53 | */ 54 | static void PrintMessage( 55 | _In_ HWND WindowHandle, 56 | _In_ LPCWSTR Content); 57 | 58 | /** 59 | * @brief Gets input from a Portable Interactive Console (Pi Console) 60 | * window. 61 | * @param WindowHandle The handle of a Portable Interactive Console (Pi 62 | * Console) window. 63 | * @param InputPrompt The prompt you want to notice to the user. 64 | * @return The next line of characters from the user input. If the 65 | * return value is not nullptr, you should use 66 | * Mile::HeapMemory::Free to release. 67 | */ 68 | static LPWSTR GetInput( 69 | _In_ HWND WindowHandle, 70 | _In_ LPCWSTR InputPrompt); 71 | 72 | }; 73 | } 74 | 75 | #endif // !MILE_PI_CONSOLE 76 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Library.CppWinRT.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | 2.0.211028.7 15 | 16 | 17 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Manifest.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Manifest.rc -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Platform.ARM.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | Debug 15 | ARM 16 | 17 | 18 | Release 19 | ARM 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Platform.ARM64.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | Debug 15 | ARM64 16 | 17 | 18 | Release 19 | ARM64 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Platform.Win32.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | Debug 15 | Win32 16 | 17 | 18 | Release 19 | Win32 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Platform.x64.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | Debug 15 | x64 16 | 17 | 18 | Release 19 | x64 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Runtime.VC-LTL.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | MultiThreadedDebug 15 | MultiThreaded 16 | 17 | 18 | 19 | 20 | 5.0.4 21 | 22 | 23 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Mouri Internal Library Essentials 3 | * FILE: Mile.Project.Version.h 4 | * PURPOSE: Version Definition for Mile.Project 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #ifndef MILE_PROJECT_VERSION 12 | #define MILE_PROJECT_VERSION 13 | 14 | #ifndef MILE_PROJECT_MACRO_TO_STRING 15 | #define _MILE_PROJECT_MACRO_TO_STRING(arg) L#arg 16 | #define MILE_PROJECT_MACRO_TO_STRING(arg) _MILE_PROJECT_MACRO_TO_STRING(arg) 17 | #endif 18 | 19 | #ifndef MILE_PROJECT_MACRO_TO_UTF8_STRING 20 | #define _MILE_PROJECT_MACRO_TO_UTF8_STRING(arg) #arg 21 | #define MILE_PROJECT_MACRO_TO_UTF8_STRING(arg) \ 22 | _MILE_PROJECT_MACRO_TO_UTF8_STRING(arg) 23 | #endif 24 | 25 | #ifndef MILE_PROJECT_DEFINE_COMMA_VERSION 26 | #define MILE_PROJECT_DEFINE_COMMA_VERSION(MAJOR,MINOR,BUILD,REVISION) \ 27 | MAJOR,MINOR,BUILD,REVISION 28 | #endif 29 | 30 | #ifndef MILE_PROJECT_DEFINE_DOT_VERSION 31 | #define MILE_PROJECT_DEFINE_DOT_VERSION(MAJOR,MINOR,BUILD,REVISION) \ 32 | MAJOR.MINOR.BUILD.REVISION 33 | #endif 34 | 35 | #ifndef MILE_PROJECT_COMMA_VERSION 36 | #define MILE_PROJECT_COMMA_VERSION \ 37 | MILE_PROJECT_DEFINE_COMMA_VERSION( \ 38 | MILE_PROJECT_VERSION_MAJOR, \ 39 | MILE_PROJECT_VERSION_MINOR, \ 40 | MILE_PROJECT_VERSION_BUILD, \ 41 | MILE_PROJECT_VERSION_REVISION) 42 | #endif 43 | 44 | #ifndef MILE_PROJECT_DOT_VERSION 45 | #define MILE_PROJECT_DOT_VERSION \ 46 | MILE_PROJECT_DEFINE_DOT_VERSION( \ 47 | MILE_PROJECT_VERSION_MAJOR, \ 48 | MILE_PROJECT_VERSION_MINOR, \ 49 | MILE_PROJECT_VERSION_BUILD, \ 50 | MILE_PROJECT_VERSION_REVISION) 51 | #endif 52 | 53 | #ifndef MILE_PROJECT_COMMA_VERSION_STRING 54 | #define MILE_PROJECT_COMMA_VERSION_STRING \ 55 | MILE_PROJECT_MACRO_TO_STRING(MILE_PROJECT_COMMA_VERSION) 56 | #endif 57 | 58 | #ifndef MILE_PROJECT_DOT_VERSION_STRING 59 | #define MILE_PROJECT_DOT_VERSION_STRING \ 60 | MILE_PROJECT_MACRO_TO_STRING(MILE_PROJECT_DOT_VERSION) 61 | #endif 62 | 63 | #ifndef MILE_PROJECT_COMMA_VERSION_UTF8_STRING 64 | #define MILE_PROJECT_COMMA_VERSION_UTF8_STRING \ 65 | MILE_PROJECT_MACRO_TO_UTF8_STRING(MILE_PROJECT_COMMA_VERSION) 66 | #endif 67 | 68 | #ifndef MILE_PROJECT_DOT_VERSION_UTF8_STRING 69 | #define MILE_PROJECT_DOT_VERSION_UTF8_STRING \ 70 | MILE_PROJECT_MACRO_TO_UTF8_STRING(MILE_PROJECT_DOT_VERSION) 71 | #endif 72 | 73 | #ifndef MILE_PROJECT_DEFINE_SIMPLE_VERSION 74 | #define MILE_PROJECT_DEFINE_SIMPLE_VERSION(MAJOR,MINOR) \ 75 | MAJOR.MINOR 76 | #endif 77 | 78 | #ifndef MILE_PROJECT_SIMPLE_VERSION 79 | #define MILE_PROJECT_SIMPLE_VERSION \ 80 | MILE_PROJECT_DEFINE_SIMPLE_VERSION( \ 81 | MILE_PROJECT_VERSION_MAJOR, \ 82 | MILE_PROJECT_VERSION_MINOR) 83 | #endif 84 | 85 | #ifndef MILE_PROJECT_SIMPLE_VERSION_STRING 86 | #define MILE_PROJECT_SIMPLE_VERSION_STRING \ 87 | MILE_PROJECT_MACRO_TO_STRING(MILE_PROJECT_SIMPLE_VERSION) 88 | #endif 89 | 90 | #ifdef MILE_PROJECT_VERSION_TAG 91 | #define MILE_PROJECT_VERSION_TAG_STRING L" " MILE_PROJECT_VERSION_TAG 92 | #else 93 | #define MILE_PROJECT_VERSION_TAG_STRING 94 | #endif 95 | 96 | #ifndef MILE_PROJECT_VERSION_STRING 97 | #define MILE_PROJECT_VERSION_STRING \ 98 | MILE_PROJECT_SIMPLE_VERSION_STRING \ 99 | MILE_PROJECT_VERSION_TAG_STRING 100 | #endif 101 | 102 | #ifndef MILE_PROJECT_SIMPLE_VERSION_UTF8_STRING 103 | #define MILE_PROJECT_SIMPLE_VERSION_UTF8_STRING \ 104 | MILE_PROJECT_MACRO_TO_UTF8_STRING(MILE_PROJECT_SIMPLE_VERSION) 105 | #endif 106 | 107 | #ifdef MILE_PROJECT_VERSION_TAG 108 | #define MILE_PROJECT_VERSION_TAG_UTF8_STRING " " MILE_PROJECT_VERSION_TAG 109 | #else 110 | #define MILE_PROJECT_VERSION_TAG_UTF8_STRING 111 | #endif 112 | 113 | #ifndef MILE_PROJECT_VERSION_UTF8_STRING 114 | #define MILE_PROJECT_VERSION_UTF8_STRING \ 115 | MILE_PROJECT_SIMPLE_VERSION_UTF8_STRING \ 116 | MILE_PROJECT_VERSION_TAG_UTF8_STRING 117 | #endif 118 | 119 | #endif 120 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Version.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Version.rc -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Wap.props: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 15.0 14 | 15 | 16 | 17 | Debug 18 | x86 19 | 20 | 21 | Release 22 | x86 23 | 24 | 25 | Debug 26 | x64 27 | 28 | 29 | Release 30 | x64 31 | 32 | 33 | Debug 34 | ARM64 35 | 36 | 37 | Release 38 | ARM64 39 | 40 | 41 | 42 | $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\ 43 | 44 | 45 | 46 | 47 | NativeOnly 48 | 49 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.Wap.targets: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 14 | 19 | 23 | 24 | 25 | 29 | <_TemporaryFilteredWapProjOutput Include="@(_FilteredNonWapProjProjectOutput)" /> 30 | <_FilteredNonWapProjProjectOutput Remove="@(_TemporaryFilteredWapProjOutput)" /> 31 | <_FilteredNonWapProjProjectOutput Include="@(_TemporaryFilteredWapProjOutput)"> 32 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 48 | 55 | 60 | 61 | 62 | 63 | 64 | 65 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /Source/Native/Mile.Cpp/Mile.Project/Mile.Project.targets: -------------------------------------------------------------------------------- 1 |  2 | 11 | 12 | 13 | 17 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/Mile.Project.Properties.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/MouriOptimizationPlugin/Mile.Project.Properties.h -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/MoPurgeVisualStudioCodeCache.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: Mouri Optimization Plugin 3 | * FILE: MoPurgeVisualStudioCodeCache.cpp 4 | * PURPOSE: Implementation for Purge Visual Studio Code Cache 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #include "MouriOptimizationPlugin.h" 12 | 13 | #include 14 | #include 15 | 16 | EXTERN_C HRESULT WINAPI MoPurgeVisualStudioCodeCache( 17 | _In_ PNSUDO_CONTEXT Context) 18 | { 19 | Mile::HResult hr = S_OK; 20 | HANDLE PreviousContextTokenHandle = INVALID_HANDLE_VALUE; 21 | std::vector CachePathList; 22 | 23 | do 24 | { 25 | DWORD PurgeMode = ::MoPrivateParsePurgeMode(Context); 26 | if (PurgeMode == 0) 27 | { 28 | hr = Mile::HResult::FromWin32(ERROR_CANCELLED); 29 | break; 30 | } 31 | 32 | if (PurgeMode != MO_PRIVATE_PURGE_MODE_SCAN && 33 | PurgeMode != MO_PRIVATE_PURGE_MODE_PURGE) 34 | { 35 | hr = E_NOINTERFACE; 36 | break; 37 | } 38 | 39 | hr = ::MoPrivateEnableBackupRestorePrivilege( 40 | &PreviousContextTokenHandle); 41 | if (hr.IsFailed()) 42 | { 43 | ::MoPrivateWriteErrorMessage( 44 | Context, 45 | hr, 46 | L"MoPrivateEnableBackupRestorePrivilege"); 47 | break; 48 | } 49 | 50 | for (std::wstring const& Profile : ::MoPrivateGetProfilePathList()) 51 | { 52 | std::wstring AppData = Profile + L"\\AppData\\Roaming"; 53 | std::wstring LocalAppData = Profile + L"\\AppData\\Local"; 54 | 55 | std::wstring Candidate; 56 | 57 | Candidate = LocalAppData + L"\\Microsoft\\vscode-cpptools\\ipch"; 58 | if (::MoPrivateIsFileExist(Candidate.c_str())) 59 | { 60 | CachePathList.push_back(Candidate); 61 | } 62 | 63 | Candidate = AppData + L"\\Code\\User\\workspaceStorage"; 64 | if (::MoPrivateIsFileExist(Candidate.c_str())) 65 | { 66 | CachePathList.push_back(Candidate); 67 | } 68 | } 69 | 70 | UINT64 UsedSpace = 0; 71 | 72 | for (std::wstring const& CachePath : CachePathList) 73 | { 74 | if (PurgeMode == MO_PRIVATE_PURGE_MODE_SCAN) 75 | { 76 | ::MoPrivateRemoveDirectoryWorker( 77 | Context, 78 | CachePath.c_str(), 79 | &UsedSpace); 80 | } 81 | else if (PurgeMode == MO_PRIVATE_PURGE_MODE_PURGE) 82 | { 83 | ::MoPrivateRemoveDirectoryWorker( 84 | Context, 85 | CachePath.c_str(), 86 | nullptr); 87 | } 88 | } 89 | 90 | if (PurgeMode == MO_PRIVATE_PURGE_MODE_SCAN) 91 | { 92 | ::MoPrivatePrintPurgeScanResult( 93 | Context, 94 | UsedSpace); 95 | } 96 | 97 | } while (false); 98 | 99 | if (PreviousContextTokenHandle != INVALID_HANDLE_VALUE) 100 | { 101 | ::SetThreadToken(nullptr, PreviousContextTokenHandle); 102 | ::CloseHandle(PreviousContextTokenHandle); 103 | } 104 | 105 | ::MoPrivateWriteFinalResult(Context, hr); 106 | 107 | return hr; 108 | } 109 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/MouriOptimizationPlugin.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | 3 | EXPORTS 4 | 5 | MoDefragMemory 6 | MoEnableMicrosoftUpdate 7 | MoUpdateAppXPackages 8 | MoManageCompactOS 9 | MoLaunchAppX 10 | MoQueryLicenseInformation 11 | MoBlockShutdown 12 | 13 | MoPurgeSystemRestorePoint 14 | MoPurgeDeliveryOptimizationCache 15 | MoPurgeWindowsEventLog 16 | MoPurgeCorruptedAppXPackages 17 | MoPurgeNuGetCache 18 | MoPurgeVisualStudioCodeCache 19 | MoPurgeChromiumCache 20 | MoPurgeTridentCache 21 | MoPurgePackageCache 22 | MoPurgeVisualStudioInstallerCache 23 | MoPurgeGeckoCache 24 | MoPurgeWindowsSetup 25 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/MouriOptimizationPlugin.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildThisFileDirectory);$(IncludePath) 5 | 6 | 7 | 8 | $(OutDir)MoPlugin.lib;%(AdditionalDependencies) 9 | 10 | 11 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/MouriOptimizationPlugin.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/MouriOptimizationPlugin/MouriOptimizationPlugin.rc -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/MouriOptimizationPlugin.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {74324C26-D7B5-4BC7-94DD-1DF65C45783B} 8 | MouriOptimizationPlugin 9 | MoPlugin 10 | DynamicLibrary 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | MouriOptimizationPlugin.def 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/MouriOptimizationPlugin.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | Modules 7 | 8 | 9 | Modules 10 | 11 | 12 | Modules 13 | 14 | 15 | Modules 16 | 17 | 18 | Modules 19 | 20 | 21 | Modules 22 | 23 | 24 | Modules 25 | 26 | 27 | Modules 28 | 29 | 30 | Modules 31 | 32 | 33 | Modules 34 | 35 | 36 | Modules 37 | 38 | 39 | Modules 40 | 41 | 42 | Modules 43 | 44 | 45 | Modules 46 | 47 | 48 | Modules 49 | 50 | 51 | Modules 52 | 53 | 54 | Modules 55 | 56 | 57 | Modules 58 | 59 | 60 | Modules 61 | 62 | 63 | 64 | 65 | 66 | 67 | Resources\en 68 | 69 | 70 | Resources\zh-Hans 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | {00d84d05-ab74-4945-a280-ceaa16f48c11} 81 | 82 | 83 | {975787bd-9e79-429e-83a0-b4578db89622} 84 | 85 | 86 | {316a9b80-e875-4034-a240-e5ad2af7ef14} 87 | 88 | 89 | {6da1b7a9-8f67-4f63-a326-f882ddf0eaf0} 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/Resources/en/Translations.toml: -------------------------------------------------------------------------------- 1 | ## 2 | ## PROJECT: Mouri Optimization Plugin 3 | ## FILE: Translations.toml 4 | ## PURPOSE: The English translation 5 | ## 6 | ## LICENSE: The MIT License 7 | ## 8 | ## DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | ## 10 | 11 | PurgeScanResultText = "Total amount of disk space you may gain: %s." 12 | DetectedText = "Detected - %s." 13 | RemovedText = "Removed - %s." 14 | CompressedText = "Compressed - %s." 15 | UncompressedText = "Uncompressed - %s." 16 | SkippedText = "Skipped - %s." 17 | ProcessedText = "Processed - %s." 18 | ModeText = "Mode: %s." 19 | ScanModeText = "Scan" 20 | PurgeModeText = "Purge" 21 | QueryModeText = "Query" 22 | EnableModeText = "Enable" 23 | DisableModeText = "Disable" 24 | CanceledModeText = "Canceled" 25 | 26 | MoUpdateAppXPackages_UpdateText = """ 27 | Update: %s.""" 28 | MoUpdateAppXPackages_UpdateProgressText = """ 29 | %s: Update progress %.0f%%.""" 30 | MoUpdateAppXPackages_UpdateCompletedText = """ 31 | %s: Update completed.""" 32 | MoUpdateAppXPackages_NoUpdatesNoticeText = """ 33 | All your trusted apps and games from Microsoft Store have the latest updates.""" 34 | 35 | MoPurgeCorruptedAppXPackages_NoPackagesText = """ 36 | No corrupted packages were found.""" 37 | 38 | MoPurgeSystemRestorePoint_RestorePointName = """ 39 | Created by Mouri Optimization Plugin System Restore Point Cleanup""" 40 | 41 | MoManageCompactOS_EnabledText = "CompactOS is Enabled." 42 | MoManageCompactOS_DisabledText = "CompactOS is Disabled." 43 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/Resources/zh-Hans/Translations.toml: -------------------------------------------------------------------------------- 1 | ## 2 | ## PROJECT: Mouri Optimization Plugin 3 | ## FILE: Translations.toml 4 | ## PURPOSE: The Chinese (Simplified) translation 5 | ## 6 | ## LICENSE: The MIT License 7 | ## 8 | ## DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | ## 10 | 11 | PurgeScanResultText = "预估可获得的磁盘空间总量:%s。" 12 | DetectedText = "发现 - %s。" 13 | RemovedText = "移除 - %s。" 14 | CompressedText = "压缩 - %s。" 15 | UncompressedText = "解压缩 - %s。" 16 | SkippedText = "跳过 - %s。" 17 | ProcessedText = "处理 - %s。" 18 | ModeText = "模式:%s。" 19 | ScanModeText = "扫描" 20 | PurgeModeText = "清理" 21 | QueryModeText = "查询" 22 | EnableModeText = "启用" 23 | DisableModeText = "禁用" 24 | CanceledModeText = "已取消" 25 | 26 | MoUpdateAppXPackages_UpdateText = """ 27 | 正在升级:%s.""" 28 | MoUpdateAppXPackages_UpdateProgressText = """ 29 | %s:升级进度 %.0f%%。""" 30 | MoUpdateAppXPackages_UpdateCompletedText = """ 31 | %s:升级完毕。""" 32 | MoUpdateAppXPackages_NoUpdatesNoticeText = """ 33 | 你从 Microsoft Store 获取的所有受信任的应用和游戏已更新为最新版本。""" 34 | 35 | MoPurgeCorruptedAppXPackages_NoPackagesText = """ 36 | 未发现损坏包。""" 37 | 38 | MoPurgeSystemRestorePoint_RestorePointName = """ 39 | 由毛利优化插件系统还原点清理创建""" 40 | 41 | MoManageCompactOS_EnabledText = "CompactOS 已启用。" 42 | MoManageCompactOS_DisabledText = "CompactOS 已禁用。" 43 | -------------------------------------------------------------------------------- /Source/Native/MouriOptimizationPlugin/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ 生成的包含文件。 3 | // 供 MouriOptimizationPlugin.rc 使用 4 | // 5 | #define IDR_TRANSLATIONS 1 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 103 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Source/Native/NSudoDevilMode/Mile.Project.Properties.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoDevilMode/Mile.Project.Properties.h -------------------------------------------------------------------------------- /Source/Native/NSudoDevilMode/NSudoDevilMode.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {9FC5B22F-D2AE-4021-8883-5D6B74C5ED71} 8 | NSudoDevilMode 9 | NSudoDM 10 | DynamicLibrary 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | false 20 | NSudoDevilMode_EXPORTS;%(PreprocessorDefinitions) 21 | 22 | 23 | true 24 | ntdll.lib;libkcrt.lib 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Source/Native/NSudoDevilMode/NSudoDevilMode.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | Detours 7 | 8 | 9 | Detours 10 | 11 | 12 | 13 | 14 | {802124d1-ad20-47fe-a90a-a9b24fd36071} 15 | 16 | 17 | 18 | 19 | Detours 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/M2MessageDialogResource.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: M2-Team Common Library 3 | * FILE: M2MessageDialogResource.h 4 | * PURPOSE: Definition for the message dialog resource 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #define IDD_MESSAGE_DIALOG 105 12 | #define IDC_MESSAGE_DIALOG_EDIT 1003 13 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/M2MessageDialogResource.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoLauncher/M2MessageDialogResource.rc -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/M2Win32GUIHelpers.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: M2-Team Common Library 3 | * FILE: M2Win32GUIHelpers.h 4 | * PURPOSE: Definition for the Win32 desktop GUI helper functions 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #pragma once 12 | 13 | #ifndef _M2_WIN32_GUI_HELPERS_ 14 | #define _M2_WIN32_GUI_HELPERS_ 15 | 16 | #include 17 | 18 | /** 19 | * Creates and shows the message dialog. 20 | * 21 | * @param hInstance A handle to the module which contains the message dialog 22 | * resource. If this parameter is nullptr, then the current 23 | * executable is used. 24 | * @param hWndParent A handle to the window that owns the message dialog. 25 | * @param lpIconName Pointer that references the icon to be displayed in the 26 | * message dialog. If this parameter is nullptr or the 27 | * hInstance parameter is nullptr, no icon will be displayed. 28 | * This parameter must be an integer resource identifier 29 | * passed to the MAKEINTRESOURCE macro. 30 | * @param lpTitle Pointer to the string to be used for the message dialog 31 | * title. This parameter is a null-terminated, Unicode string. 32 | * @param lpContent Pointer to the string to be used for the message dialog 33 | * content. This parameter is a null-terminated, Unicode 34 | * string. 35 | * @return If the function succeeds, the return value is the value of the 36 | * nResult parameter specified in the call to the EndDialog function 37 | * used to terminate the message dialog. If the function fails because 38 | * the hWndParent parameter is invalid, the return value is zero. The 39 | * function returns zero in this case for compatibility with previous 40 | * versions of Windows. If the function fails for any other reason, the 41 | * return value is –1. To get extended error information, call 42 | * GetLastError. 43 | */ 44 | INT_PTR WINAPI M2MessageDialog( 45 | _In_opt_ HINSTANCE hInstance, 46 | _In_opt_ HWND hWndParent, 47 | _In_opt_ LPCWSTR lpIconName, 48 | _In_ LPCWSTR lpTitle, 49 | _In_ LPCWSTR lpContent); 50 | 51 | #endif // _M2_WIN32_GUI_HELPERS_ 52 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Mile.Project.Properties.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoLauncher/Mile.Project.Properties.h -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherCUI.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherCUI.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoLauncher/NSudoLauncherCUI.rc -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherCUI.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {2b3e4f28-d499-4529-bec1-e0ed2003a385} 8 | NSudoLauncherCUI 9 | NSudoLC 10 | ConsoleApplication 11 | NSudoLauncherCUI.manifest 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherCUI.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | {08c029f6-f8ae-4d16-bdf1-4baa97245c02} 9 | 10 | 11 | 12 | 13 | jsmn 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherCUIResource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ 生成的包含文件。 3 | // 供 NSudoLauncherCUI.rc 使用 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NO_MFC 1 11 | #define _APS_NEXT_RESOURCE_VALUE 137 12 | #define _APS_NEXT_COMMAND_VALUE 32771 13 | #define _APS_NEXT_CONTROL_VALUE 1019 14 | #define _APS_NEXT_SYMED_VALUE 110 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherGUI.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | True/PM 24 | PerMonitorV2, PerMonitor 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherGUI.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoLauncher/NSudoLauncherGUI.rc -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherGUI.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {8f89c743-14c8-4442-812f-1f1816ffb88d} 8 | NSudoLauncherGUI 9 | NSudoLG 10 | WindowsApplication 11 | NSudoLauncherGUI.manifest 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherGUI.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | M2Win32GUIHelpers 7 | 8 | 9 | 10 | 11 | {ea0f1c36-890f-4f1c-9ade-9173c6b242d7} 12 | 13 | 14 | {69bb0b6f-1d7d-4a77-9b42-483f97fdde74} 15 | 16 | 17 | 18 | 19 | jsmn 20 | 21 | 22 | M2Win32GUIHelpers 23 | 24 | 25 | M2Win32GUIHelpers 26 | 27 | 28 | 29 | 30 | 31 | 32 | M2Win32GUIHelpers 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherGUIResource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ 生成的包含文件。 3 | // 供 NSudoLauncherGUI.rc 使用 4 | // 5 | #define IDD_NSudoDlg 132 6 | #define IDR_STRING1 136 7 | #define IDC_UserName 1000 8 | #define IDC_TokenPrivilege 1001 9 | #define IDC_MandatoryLabel 1004 10 | #define IDC_szPath 1006 11 | #define IDC_Browse 1007 12 | #define IDC_Run 1008 13 | #define IDC_About 1009 14 | #define IDC_Check_EnableAllPrivileges 1013 15 | #define IDC_SETTINGSGROUPTEXT 1015 16 | #define IDC_WARNINGTEXT 1016 17 | #define IDC_STATIC_USER 1017 18 | #define IDC_STATIC_OPEN 1018 19 | 20 | // Next default values for new objects 21 | // 22 | #ifdef APSTUDIO_INVOKED 23 | #ifndef APSTUDIO_READONLY_SYMBOLS 24 | #define _APS_NO_MFC 1 25 | #define _APS_NEXT_RESOURCE_VALUE 137 26 | #define _APS_NEXT_COMMAND_VALUE 32771 27 | #define _APS_NEXT_CONTROL_VALUE 1019 28 | #define _APS_NEXT_SYMED_VALUE 110 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherResources.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by NSudoLauncherResources.rc 4 | #define IDI_NSUDO_LAUNCHER 2000 5 | #define IDR_STRING_TRANSLATIONS 2001 6 | #define IDR_STRING_COMMAND_LINE_HELP 2002 7 | #define IDR_STRING_LINKS 2003 8 | 9 | // Next default values for new objects 10 | // 11 | #ifdef APSTUDIO_INVOKED 12 | #ifndef APSTUDIO_READONLY_SYMBOLS 13 | #define _APS_NEXT_RESOURCE_VALUE 101 14 | #define _APS_NEXT_COMMAND_VALUE 40001 15 | #define _APS_NEXT_CONTROL_VALUE 1001 16 | #define _APS_NEXT_SYMED_VALUE 101 17 | #endif 18 | #endif 19 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherResources.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildThisFileDirectory);$(IncludePath) 5 | 6 | 7 | 8 | %(PreprocessorDefinitions) 9 | 10 | 11 | $(OutDir)NSudoLauncherResources.res;%(AdditionalDependencies) 12 | 13 | 14 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherResources.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoLauncher/NSudoLauncherResources.rc -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/NSudoLauncherResources.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {B2176F44-F97A-4403-948C-F21D56999C70} 8 | NSudoLauncherResources 9 | StaticLibrary 10 | 11 | 12 | 13 | 14 | $(OutDir)%(Filename).res 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/NSudo.json: -------------------------------------------------------------------------------- 1 | { 2 | "ShortCutList_V2": { 3 | "命令提示符": "cmd", 4 | "PowerShell": "powershell", 5 | "PowerShell ISE": "powershell_ise", 6 | "Hosts编辑": "notepad %windir%\\System32\\Drivers\\etc\\hosts" 7 | } 8 | } -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/NSudoLauncher.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoLauncher/Resources/NSudoLauncher.ico -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/NSudoLauncher.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoLauncher/Resources/NSudoLauncher.xcf -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/de/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | Format: NSudoL [ Optionen und Parameter ] Kommandozeile oder 2 | Verknüpfungskommando 3 | 4 | Optionen: 5 | 6 | -U:[ Option ] Erstellt den Prozess für der festgelegten Benutzer. 7 | Verfügbare Optionen: 8 | T TrustedInstaller 9 | S System 10 | C Aktueller Benutzer 11 | E Current User (Elevated) 12 | P Aktueller Prozess 13 | D Aktueller Prozess (mit weniger (minimalen) Privilegien) 14 | P.S.: Dieser Parameter ist Pflicht. 15 | 16 | -P:[ Option ] Erstellt den Prozess mit den festgelegten Privilegien. 17 | Verfügbare Optionen: 18 | E Alle Privilegien aktivieren 19 | D Alle Privilegien deaktivieren 20 | P.S.: Wenn Sie die Standard-Privilegien des zu erstellenden Prozesses verwenden 21 | wollen, dann verwenden Sie nicht den Parameter "-P". 22 | 23 | -M:[ Option ] Erstellt den Prozess mit der festgelegten Integritätsstufe. 24 | Verfügbare Optionen: 25 | S System 26 | H Hoch 27 | M Mittel 28 | L Niedrig 29 | P.S.: Wenn Sie die Standard-Integritätsstufe des zu erstellenden Prozesses 30 | verwenden wollen, dann verwenden Sie nicht den Parameter "-M". 31 | 32 | -Priority:[ Option ] Erstellt den Prozess mit der festgelegten 33 | Prozesspriorität. 34 | Verfügbare Optionen: 35 | Idle Niedrig 36 | BelowNormal Niedriger als normal 37 | Normal Normal 38 | AboveNormal Höher als normal 39 | High Hoch 40 | RealTime Echtzeit 41 | P.S.: Wenn Sie die Standardpriorität des zu erstellenden Prozesses verwenden 42 | wollen, dann verwenden Sie nicht den Parameter "-Priority". 43 | 44 | -ShowWindowMode:[ Option ] Erstellt den Prozess in der festgelegten 45 | Fensterdarstellung. 46 | Verfügbare Optionen: 47 | Show Anzeigen 48 | Hide Ausblenden 49 | Maximize Maximiert 50 | Minimize Minimiert 51 | P.S.: Wenn Sie das Standardverhalten des zu erstellenden Prozesses verwenden 52 | wollen, dann verwenden Sie nicht den Parameter "-ShowWindowMode". 53 | 54 | -Wait Lässt den NSudo Launcher warten, bis der erstellte Prozess beendet ist, 55 | bevor er sich schließt. 56 | PS: Wenn Sie nicht wollen, dass gewartet wird, dann verwenden Sie nicht den 57 | Parameter "-Wait". 58 | 59 | -CurrentDirectory:[ DirectoryPath ] Legt das aktuelle Verzeichnis für den 60 | Prozess fest. 61 | P.S.: Wenn Sie das aktuelle Verzeichnis des NSudo Launcher's verwenden wollen, 62 | dann verwenden Sie nicht den Parameter "-CurrentDirectory". 63 | 64 | -UseCurrentConsole Erstellt den Prozess im aktuellen 65 | Eingabeaufforderungsfenster. 66 | P.S.: Wenn Sie den zu erstellenden Prozess in einem neuen 67 | Eingabeaufforderungsfenster erstellen wollen, dann verwenden Sie nicht den 68 | Parameter "-UseCurrentConsole". 69 | 70 | -Version Zeigt die Versionsinformationen des NSudo Launcher's an. 71 | 72 | -? Zeigt diese Hilfe an. 73 | -H Zeigt diese Hilfe an. 74 | -Help Zeigt diese Hilfe an. 75 | 76 | Bitte verwenden Sie https://github.com/Thdub/NSudo_Installer für die 77 | Integration in das Kontextmenü. 78 | 79 | P.S.: 80 | 1. Alle Kommandos des NSudo Launcher beachten keine Groß-/Kleinschreibung. 81 | 2. Sie können "/" oder "--" mit "-" und "=" mit ":" überschreiben und in 82 | den Kommandozeilenparametern verwenden. Als Beispiel: "/U:T" und "-U=T" 83 | sind gleichwertig. 84 | 3. Um das bestmögliche Anwendererlebnis sicherzustellen, unterstützt 85 | NSudoLC kein Kontextmenü. 86 | 87 | Beispiel: 88 | Wenn Sie eine Eingabeaufforderung als TrustedInstaller ausführen wollen, 89 | dann aktivieren Sie alle Privilegien und die Standard-Integritätsstufe. 90 | NSudoL -U:T -P:E cmd -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/de/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | Für mehr Informationen besuchen Sie: https://nsudo.m2team.org. -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/de/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "&Über", 4 | "Button.Browse": "&Durchsuchen", 5 | "Button.Run": "&Ausführen", 6 | "CurrentProcess": "Aktueller Prozess", 7 | "CurrentUser": "Aktueller Benutzer", 8 | "Default": "Standard", 9 | "EnableAllPrivileges": "Alle Privilegien aktivi&eren", 10 | "LanguageID": "de", 11 | "Message.CreateProcessFailed": "Fehler: Prozess konnte nicht erstellt werden.", 12 | "Message.InvalidCommandParameter": "Fehler: Ungültige Kommandozeilenparameter. Bitte ändern. (Hilfe mit dem Parameter -? anzeigen)", 13 | "Message.InvalidTextBoxParameter": "Fehler: Bitte geben Sie die Kommandozeile ein oder wählen die Verknüpfung über das Drop-Down-Menü aus.", 14 | "Message.PrivilegeNotHeld": "Fehler: Fehler beim Abruf des Privilegs SE_DEBUG_NAME. (Bitte als Administrator ausführen)", 15 | "Message.Success": "Der Vorgang wurde erfolgreich abgeschlossen.", 16 | "SettingsGroupText": "Einstellungen", 17 | "Static.Open": "&Öffnen:", 18 | "Static.User": "&Benutzer: ", 19 | "System": "System", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "Warnung: Bitte verwenden Sie NSudo mit äußerster Vorsicht!" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/en/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | Format: NSudoL [ Options and parameters ] Command line or ShortCut Command 2 | 3 | Options: 4 | 5 | -U:[ Option ] Create a process with specified user option. 6 | Available options: 7 | T TrustedInstaller 8 | S System 9 | C Current User 10 | E Current User (Elevated) 11 | P Current Process 12 | D Current Process (Drop right) 13 | PS: This is a mandatory parameter. 14 | 15 | -P:[ Option ] Create a process with specified privilege option. 16 | Available options: 17 | E Enable All Privileges 18 | D Disable All Privileges 19 | PS: If you want to use the default privileges to create a process, please do 20 | not include the "-P" parameter. 21 | 22 | -M:[ Option ] Create a process with specified Integrity Level option. 23 | Available options: 24 | S System 25 | H High 26 | M Medium 27 | L Low 28 | PS: If you want to use the default Integrity Level to create a process, please 29 | do not include the "-M" parameter. 30 | 31 | -Priority:[ Option ] Create a process with specified process priority option. 32 | Available options: 33 | Idle 34 | BelowNormal 35 | Normal 36 | AboveNormal 37 | High 38 | RealTime 39 | PS: If you want to use the default Process Priority to create a process, please 40 | do not include the "-Priority" parameter. 41 | 42 | -ShowWindowMode:[ Option ] Create a process with specified window mode option. 43 | Available options: 44 | Show 45 | Hide 46 | Maximize 47 | Minimize 48 | PS: If you want to use the default window mode to create a process, please do 49 | not include the "-ShowWindowMode" parameter. 50 | 51 | -Wait Make NSudo Launcher wait for the created process to end before exiting. 52 | PS: If you don't want to wait, please do not include the "-Wait" parameter. 53 | 54 | -CurrentDirectory:[ DirectoryPath ] Set the current directory for the process. 55 | PS: If you want to use the NSudo Launcher's current directory, please do not 56 | include the "-CurrentDirectory" parameter. 57 | 58 | -UseCurrentConsole Create a process with the current console window. 59 | PS: If you want to create a process with the new console window, please do not 60 | include the "-UseCurrentConsole" parameter. 61 | 62 | -Version Show version information of NSudo Launcher. 63 | 64 | -? Show this content. 65 | -H Show this content. 66 | -Help Show this content. 67 | 68 | Please use https://github.com/Thdub/NSudo_Installer for context menu management. 69 | 70 | PS: 71 | 1. All NSudo Launcher command arguments is case-insensitive. 72 | 2. You can use the "/" or "--" override "-" and use the "=" override ":" in 73 | the command line parameters. For example, "/U:T" and "-U=T" are 74 | equivalent. 75 | 3. To ensure the best experience, NSudoLC does not support context menu. 76 | 77 | Example: 78 | If you want to run Command Prompt with TrustedInstaller, enable all 79 | privileges and the default Integrity Level. 80 | NSudoL -U:T -P:E cmd -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/en/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | For further information, please visit https://nsudo.m2team.org. -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/en/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "&About", 4 | "Button.Browse": "&Browse", 5 | "Button.Run": "&Run", 6 | "CurrentProcess": "Current Process", 7 | "CurrentUser": "Current User", 8 | "Default": "Default", 9 | "EnableAllPrivileges": "&Enable All Privileges", 10 | "LanguageID": "en", 11 | "Message.CreateProcessFailed": "Error: Failed to create a process.", 12 | "Message.InvalidCommandParameter": "Error: Invalid command line parameters, Please modify.(Show help by -? parameter)", 13 | "Message.InvalidTextBoxParameter": "Error: Please enter the command line or select a shortcut command in the drop-down box.", 14 | "Message.PrivilegeNotHeld": "Error: Failed to get SE_DEBUG_NAME privilege.(Please run as Administrator)", 15 | "Message.Success": "The operation completed successfully.", 16 | "SettingsGroupText": "Mode Settings", 17 | "Static.Open": "&Open:", 18 | "Static.User": "&User: ", 19 | "System": "System", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "Warning: Please use NSudo CAREFULLY !" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/es/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | Formato: NSudoL [ Opciones y parámetros ] comando para terminal o comando para 2 | accesos directos 3 | 4 | Opciones: 5 | 6 | -U:[ Opción ] Crea un proceso con la opción de usuario especificada. 7 | Opciones disponibles: 8 | T TrustedInstaller 9 | S System 10 | C Usuario actual 11 | E Current User (Elevated) 12 | P Proceso actual 13 | D Proceso actual (Con menos privilegios) 14 | PD: Es un parámetro obligatorio. 15 | 16 | -P:[ Opción ] Crea un proceso con la opción de privilegio especificada. 17 | Opciones disponibles: 18 | E Todos los privilegios 19 | D Ninguno de los privilegios 20 | PD: Para utilizar los privilegios predeterminados por favor no incluya el 21 | parámetro "-P" en el comando. 22 | 23 | -M:[ Opción ] Crea un proceso con la opción de nivel de integridad 24 | especificada. 25 | Opciones disponibles: 26 | S System 27 | H Alta 28 | M Media 29 | L Baja 30 | PD: Para utilizar el nivel de integridad predeterminado por favor no incluya el 31 | parámetro "-M" en el comando. 32 | 33 | -Priority:[ Opción ] Crea un proceso con la opción de prioridad de proceso 34 | especificada. 35 | Opciones disponibles: 36 | Idle (Sin Actividad) 37 | BelowNormal (Menos de lo Normal) 38 | Normal (Normal) 39 | AboveNormal (Sobre lo Normal) 40 | High (Alta) 41 | RealTime (Tiempo Real) 42 | PD: Para utilizar la prioridad de proceso predeterminada por favor no incluya 43 | el parámetro "-Priority" en el comando. 44 | 45 | -ShowWindowMode:[ Opción ] Crea un proceso con la opción de modo de ventana 46 | especificada. 47 | Opciones disponibles: 48 | Show Visible 49 | Hide Escondido 50 | Maximize Maximizado 51 | Minimize Minimizado 52 | PD: Para utilizar el modo de ventana predeterminado por favor no incluya el 53 | parámetro "-ShowWindowMode" en su comando. 54 | 55 | -Wait Hara que "NSudo Launcher" espere a que finalice el proceso creado antes 56 | de cerrarse. 57 | PD: Para esperar, no incluya el parámetro "-Wait". 58 | 59 | -CurrentDirectory:[ DirectoryPath ] Establece la carpeta (CWD) actual para el 60 | proceso. 61 | PD: Para utilizar la carpeta actual de "NSudo Launcher", no incluya el 62 | parámetro "-CurrentDirectory". 63 | 64 | -UseCurrentConsole Crea un proceso con la ventana de consola actual. 65 | PD: Para crear un proceso con una nueva ventana de consola, no incluya el 66 | parámetro "-UseCurrentConsole". 67 | 68 | 69 | -Version Mostrará la información de versión de NSudo Launcher. 70 | 71 | -? Mostrar este contenido. 72 | -H Mostrar este contenido. 73 | -Help Mostrar este contenido. 74 | 75 | Por favor utilice https://github.com/Thdub/NSudo_Installer para manejar un menu 76 | contextual (Interfaz de configuraciones). 77 | 78 | PD: 79 |     1. Todos los argumentos del comando NSudo Launcher no distinguen entre 80 | mayúsculas y minúsculas. 81 |     2. Puede usar "/" o "--" en lugar de "-" y usar "=" en lugar de ":" en 82 |        los parámetros de la línea de comandos. Por ejemplo, "/U:T" y "-U=T son 83 |        equivalentes 84 |     3. Para garantizar la mejor experiencia, NSudoLC no admite el menú 85 | contextual (Interfaz de configuraciones). 86 | 87 | Ejemplo: 88 | Para ejecutar un comando con nivel de usuario TrustedInstaller, todos los 89 | privilegios y nivel de integridad predeterminado. 90 | NSudoL -U:T -P:E cmd 91 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/es/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | Para obtener más información, visite https://nsudo.m2team.org. -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/es/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "&Informacion", 4 | "Button.Browse": "&Buscar", 5 | "Button.Run": "&Ejecutar", 6 | "CurrentProcess": "Proceso Actual", 7 | "CurrentUser": "Usuario Actual", 8 | "Default": "Predeterminado", 9 | "EnableAllPrivileges": "&Todos los privilegios", 10 | "LanguageID": "es", 11 | "Message.CreateProcessFailed": "Error: Falló la creación del proceso.", 12 | "Message.InvalidCommandParameter": "Error: Los parámetros del comando son inválidos, modifíquelos. (Use el parámetro -? para ver la ayuda)", 13 | "Message.InvalidTextBoxParameter": "Error: Por favor ingrese el comando o seleccione un acceso directo en el cuadro desplegable.", 14 | "Message.PrivilegeNotHeld": "Error: No se pudo obtener SE_DEBUG_NAME (SeDebugPrivilege). (Por favor use ejecutar como administrador)", 15 | "Message.Success": "La operación se completó con éxito.", 16 | "SettingsGroupText": "Configuraciones de modo", 17 | "Static.Open": "&Abrir:", 18 | "Static.User": "&Usuario: ", 19 | "System": "System", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "Advertencia: ¡Por favor use NSudo CUIDADOSAMENTE!" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/fr/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | Format: NSudoL [Options et paramètres] Ligne de commande ou Raccourci 2 | 3 | Options: 4 | 5 | -U: [Option] Crée un processus avec une option d'utilisateur spécifiée. 6 | Options disponibles: 7 | T TrustedInstaller 8 | S Système 9 | C Utilisateur actuel 10 | E Current User (Elevated) 11 | P Processus actuel 12 | D Processus actuel (moindre privilège: privilèges strictement nécessaires 13 | à l'exécution du code) 14 | PS: Ce paramètre est obligatoire. 15 | 16 | -P: [Option] Crée un processus avec une option de privilège spécifiée. 17 | Options disponibles: 18 | E Activer tous les privilèges 19 | D Désactiver tous les privilèges 20 | PS: Si vous souhaitez créer un processus avec les privilèges par défaut, 21 | n'incluez pas le paramètre "-P". 22 | 23 | -M: [Option] Crée un processus avec une option de niveau d'intégrité spécifiée. 24 | Options disponibles: 25 | S Système 26 | H Haut 27 | M Moyen 28 | L Faible 29 | PS: Si vous souhaitez créer un processus avec le niveau d’intégrité par 30 | défaut, n'incluez pas le paramètre "-M". 31 | 32 | -Priority: [Option] Crée un processus avec une option de priorité spécifiée. 33 | Options disponibles: 34 | Idle Inactif 35 | BelowNormal Inférieure à la normale 36 | Normal Normale 37 | AboveNormal Supérieure à la normale 38 | High Haute 39 | RealTime Temps réel 40 | PS: Si vous souhaitez créer un processus avec la priorité par défaut, n'incluez 41 | pas le paramètre "-Priority". 42 | 43 | -ShowWindowMode: [Option] Créer un processus avec l'option de mode de fenêtre 44 | spécifiée. 45 | Options disponibles: 46 | Show Montrer 47 | Hide Cacher 48 | Maximize Maximiser 49 | Minimize Minimiser 50 | PS: Si vous souhaitez créer un processus avec le mode de fenêtre par défaut, 51 | n'incluez pas le paramètre "-ShowWindowMode". 52 | 53 | -Wait NSudo attend que le processus créé se termine avant de quitter. 54 | PS: Si vous ne voulez pas que NSudo Launcher attende la fin du processus, 55 | n'incluez pas le paramètre "-Wait". 56 | 57 | -CurrentDirectory: [DirectoryPath] Définit le répertoire actuel du processus. 58 | PS: Si vous souhaitez utiliser le répertoire actuel de NSudo Launcher, 59 | n'incluez pas le paramètre "-CurrentDirectory". 60 | 61 | -UseCurrentConsole Crée un processus dans la fenêtre de console actuelle. 62 | PS: Si vous souhaitez créer un processus dans une nouvelle fenêtre de console, 63 | n'incluez pas le paramètre "-UseCurrentConsole". 64 | 65 | -Version Affiche les informations de version de NSudo Launcher. 66 | 67 | -? Affiche l'aide. 68 | -H Affiche l'aide. 69 | -Help Affiche l'aide. 70 | 71 | Please use https://github.com/Thdub/NSudo_Installer for context menu management. 72 | 73 | PS: 74 | 1. Tous les arguments de commande de NSudo Launcher sont insensibles à la 75 | casse. 76 | 2. Vous pouvez utiliser "-" ou "/ " , et remplacer ":" par " =" dans 77 | les paramètres de ligne de commande. Par exemple, "/U:T" et "-U=T" 78 | sont équivalents. 79 | 3. Afin d'assurer la meilleure expérience possible, NSudoLC ne prend pas en 80 | charge le menu contextuel. 81 | 82 | Exemple: 83 | Si vous souhaitez exécuter un invité de commande en tant que 84 | TrustedInstaller, activez toutes les privilèges et le niveau d'intégrité 85 | par défaut. 86 | NSudoL -U: T -P: E cmd -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/fr/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | Pour plus d'informations, veuillez consulter https://nsudo.m2team.org. -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/fr/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "&A propos", 4 | "Button.Browse": "&Parcourir", 5 | "Button.Run": "&Exécuter", 6 | "CurrentProcess": "Processus courant", 7 | "CurrentUser": "Utilisateur actuel", 8 | "Default": "Défaut", 9 | "EnableAllPrivileges": "&Activer tous les privilèges", 10 | "LanguageID": "fr", 11 | "Message.CreateProcessFailed": "Erreur: La création du processus a échoué.", 12 | "Message.InvalidCommandParameter": "Erreur: Paramètres de commande invalides, veuillez les modifier.(Entrez -? pour afficher l'aide)", 13 | "Message.InvalidTextBoxParameter": "Erreur: Veuillez entrer la ligne de commande, ou sélectionnez un raccourci dans le menu déroulant.", 14 | "Message.PrivilegeNotHeld": "Erreur: Impossible d'obtenir le privilège SE_DEBUG_NAME.(Veuillez éxécuter en tant qu'administrateur)", 15 | "Message.Success": "Opération terminée avec succès.", 16 | "SettingsGroupText": "Paramètres", 17 | "Static.Open": "&Ouvrir:", 18 | "Static.User": "&Utilisateur: ", 19 | "System": "Système", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "Attention: Veuillez utiliser NSudo PRUDEMMENT !" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/it/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | Formato: NSudoL [ Opzioni e parametri ] Linea di Comando oppure Collegamento al 2 | Comando 3 | 4 | Opzioni: 5 | 6 | -U:[ Opzione ] Crea un processo con l'opzione specificata dall'utente. 7 | Opzioni disponibili: 8 | T TrustedInstaller 9 | S System 10 | C Utente Attuale 11 | E Current User (Elevated) 12 | P Processo Attuale 13 | D Processo Attuale (meno privilegi: privilegi strettamente necessari 14 | all'esecuzione del codice) 15 | PS: Questo è un parametro obbligatorio. 16 | 17 | -P:[ Opzione ] Crea un processo con l'opzione Privilegio specificata. 18 | Opzioni disponibili: 19 | E Abilita Tutti i Privilegi 20 | D Disabilita Tutti i Privilegi 21 | PS: Se si vogliono utilizzare i privilegi predefiniti, non includere 22 | il parametro "-P". 23 | 24 | -M:[ Opzione ] Crea un processo con l'opzione Livello Integrita' specificata. 25 | Opzioni disponibili: 26 | S System 27 | H Alta 28 | M Media 29 | L Bassa 30 | PS: Se si vuol utilizzare il Livello Integrita' predefinito, non includere 31 | il paramentro "-M". 32 | 33 | -Priority:[ Opzione ] Crea un processo con l'opzione Processo Priorita' 34 | specificata. 35 | Opzioni disponibili: 36 | Idle Inattivo 37 | BelowNormal Inferiore al Normale 38 | Normal Normale 39 | AboveNormal Superiore al Normale 40 | High Alta 41 | RealTime Tempo Reale 42 | PS: Se si vuol utilizzare Il Processo Priorita' predefinito, non includere 43 | il parametro "-Priority". 44 | 45 | -ShowWindowMode:[ Opzione ] Create un processo con l'opzione modalita' finestra 46 | specificata. 47 | Opzioni disponibili: 48 | Show Visualizza 49 | Hide Nascondi 50 | Maximize Massimizza 51 | Minimize Minimizza 52 | PS: Se si vuol utilizzare la modalita' finestra predefinita, non includere 53 | il parametro "-ShowWindowMode". 54 | 55 | -Wait: Attende il termine del processo NSUDO creato prima di uscire. 56 | PS: Se non si vuole che NSudo Launcher attenda la fine del processo, non 57 | includere il parametro "-Wait". 58 | 59 | -CurrentDirectory:[ PercorsoCartella ] Imposta la cartella per il processo. 60 | PS: Se si desidera utilizzare la directory corrente di NSudo Launcher, non 61 | includere il parametro "-CurrentDirectory". 62 | 63 | -UseCurrentConsole Crea un processo in questa finestra. 64 | PS: Se si vuole creare un processo in una nuova finestra, non includere 65 | il parametro "-UseCurrentConsole". 66 | 67 | -Version Visualizza la versione di NSudo Launcher. 68 | 69 | -? Visualizza questo contenuto. 70 | -H Visualizza questo contenuto. 71 | -Help Visualizza questo contenuto. 72 | 73 | Please use https://github.com/Thdub/NSudo_Installer for context menu management. 74 | 75 | PS: 76 | 1. Tutti i comandi di NSudo Launcher non fanno distinzione tra maiuscole e 77 | minuscole. 78 | 2. E' possibile utilizzare "/" oppure "--" al posto di "-" e 79 | utilizzare "=" al posto di ":" nella linea di comando dei parametri. 80 | Esempio, "/U:T" e "-U=T" sono equivalenti. 81 | 3. Per garantire la migliore esperienza, NSudoLC non supporta il menu 82 | contestuale. 83 | 84 | Esempio: 85 | Se si vuole avviare il Prompt dei Comandi come TrustedInstaller, attivare 86 | tutti i privilegi e il Livello Integrita' predefinito. 87 | NSudoL -U:T -P:E cmd 88 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/it/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | Per ulteriori informazioni, visitare https://nsudo.m2team.org. -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/it/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "&Informazioni", 4 | "Button.Browse": "&Sfoglia", 5 | "Button.Run": "&Avvia", 6 | "CurrentProcess": "Processo Corrente", 7 | "CurrentUser": "Utente Corrente", 8 | "Default": "Predefinito", 9 | "EnableAllPrivileges": "&Abilita Tutti i Privilegi", 10 | "LanguageID": "it", 11 | "Message.CreateProcessFailed": "Errore: Fallita la creazione del processo.", 12 | "Message.InvalidCommandParameter": "Errore: Parametri linea di comando non validi, si prega di modificarli.(Visualizza Aiuto con il parametro -?)", 13 | "Message.InvalidTextBoxParameter": "Errore: Inserire una linea di comando oppure selezionare un collegamento al comando nel menu a discesa.", 14 | "Message.PrivilegeNotHeld": "Errore: Fallita la ricezione del privilegio SE_DEBUG_NAME.(Avviare come Amministratore)", 15 | "Message.Success": "Operazione completata con successo.", 16 | "SettingsGroupText": "Impostazioni Modalità", 17 | "Static.Open": "&Apri:", 18 | "Static.User": "&Utente: ", 19 | "System": "System", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "Avviso: Utilizzare NSudo con ATTENZIONE !" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/ru/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | Формат: NSudoL [ Опции и параметры ] Командная строка или команда быстрого доступа 2 | 3 | Параметры: 4 | 5 | -U:[ Опция ] Создание процесса с указанным параметром пользователя. 6 | Доступные параметры: 7 | T TrustedInstaller 8 | S Система 9 | C Текущий пользователь 10 | E Текущий пользователь (повышенный) 11 | P Текущий процесс 12 | D Текущий процесс (справа) 13 | PS: Это обязательный параметр. 14 | 15 | -P:[ Опция ] Создать процесс с указанным параметром привилегий. 16 | Доступные параметры: 17 | E Включить все права 18 | D Отключить все права 19 | PS: Если вы хотите использовать привилегии по умолчанию для создания процесса, 20 | пожалуйста, не включайте параметр "-P". 21 | 22 | -M:[ Опция ] Создать процесс с указанным параметром уровня целостности. 23 | Доступные параметры: 24 | S Система 25 | H Высокий 26 | M Средний 27 | L Низкий 28 | PS: Если вы хотите использовать уровень целостности по умолчанию для создания процесса, 29 | пожалуйста, не включайте параметр "-M". 30 | 31 | -Priority:[ Опция ] Создать процесс с указанным приоритетом процесса. 32 | Доступные параметры: 33 | Idle (Режим ожидания) 34 | BelowNormal (Ниже обычного) 35 | Normal (Обычный) 36 | AboveNormal (Выше обычного) 37 | High (Высокий) 38 | RealTime (В режиме реального времени) 39 | PS: Если вы хотите использовать приоритет процесса по умолчанию для создания 40 | процесса, не включайте параметр "-Priority". 41 | 42 | -ShowWindowMode:[ Опция ] Создание процесса с указанным параметром оконного режима. 43 | Доступные параметры: 44 | Show (Открыть) 45 | Hide (Скрыть) 46 | Maximize (Развернуть) 47 | Minimize (Свернуть) 48 | PS: Если вы хотите использовать оконный режим по умолчанию для создания процесса, 49 | не включайте параметр "-ShowWindowMode". 50 | 51 | -Wait Заставит NSudo Launcher ждать завершения созданного процесса перед выходом. 52 | PS: Если вы не хотите ждать, пожалуйста, не включайте параметр "-Wait". 53 | 54 | -CurrentDirectory:[ Путь к каталогу ] Установить текущий каталог для процесса. 55 | PS: Если вы хотите использовать текущий каталог NSudo Launcher, не указывайте 56 | параметр "-CurrentDirectory". 57 | 58 | -UseCurrentConsole Создать процесс с текущим окном консоли. 59 | PS: Если вы хотите создать процесс с новым консольным окном, 60 | не включайте параметр "-UseCurrentConsole". 61 | 62 | -Version Показать информацию о версии NSudo Launcher. 63 | 64 | -? Показать содержимое. 65 | -H Показать содержимое. 66 | -Help Показать содержимое. 67 | 68 | Пожалуйста, используйте https://github.com/Thdub/NSudo_Installer для управления контекстным меню. 69 | 70 | PS: 71 | 1. Все аргументы команды NSudo Launcher не чувствительны к регистру. 72 | 2. Вы можете использовать "/" или "--" вместо "-" и использовать "=" вместо ":" 73 | в параметрах командной строки. Например, "/U:T" и "-U=T" 74 | аналогичны. 75 | 3. Для обеспечения наилучшего опыта работы NSudoLC не поддерживает контекстное меню. 76 | 77 | Пример: 78 | Если вы хотите запустить командную строку с TrustedInstaller, включите все 79 | привилегии и уровень целостности по умолчанию. 80 | NSudoL -U:T -P:E cmd -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/ru/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | Для получения дополнительной информации, пожалуйста, посетите https://nsudo.m2team.org. -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/ru/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "&О программе", 4 | "Button.Browse": "&Обзор", 5 | "Button.Run": "&Запуск", 6 | "CurrentProcess": "Текущий процесс", 7 | "CurrentUser": "Текущий пользователь", 8 | "Default": "По умолчанию", 9 | "EnableAllPrivileges": "&Включить все права", 10 | "LanguageID": "ru", 11 | "Message.CreateProcessFailed": "Ошибка: Не удалось создать процесс.", 12 | "Message.InvalidCommandParameter": "Ошибка: Неверные параметры командной строки, пожалуйста, измените.(Показать справку по параметру -?)", 13 | "Message.InvalidTextBoxParameter": "Ошибка: Пожалуйста, введите командную строку или выберите команду быстрого доступа в раскрывающемся окне.", 14 | "Message.PrivilegeNotHeld": "Ошибка: Не удалось получить привилегию SE_DEBUG_NAME.(Пожалуйста, запустите от имени администратора)", 15 | "Message.Success": "Операция завершена успешно.", 16 | "SettingsGroupText": "Параметры режима", 17 | "Static.Open": "&Открыть:", 18 | "Static.User": "&Пользователь: ", 19 | "System": "Система", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "Внимание: Пожалуйста, используйте NSudo ОСТОРОЖНО!" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/zh-Hans/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | 格式: NSudoL [ 选项与参数 ] 命令行或常用任务名 2 | 3 | 选项: 4 | 5 | -U:[ 选项 ] 以指定用户选项创建进程。 6 | 可用选项: 7 | T TrustedInstaller 8 | S System 9 | C 当前用户 10 | E 当前用户 (提权) 11 | P 当前进程 12 | D 当前进程 (降权) 13 | PS: 这是一个必须被包含的参数。 14 | 15 | -P:[ 选项 ] 以指定特权选项创建进程。 16 | 可用选项: 17 | E 启用全部特权 18 | D 禁用所有特权 19 | PS: 如果想以默认特权选项创建进程的话, 请不要包含 "-P" 参数。 20 | 21 | -M:[ 选项 ] 以指定完整性选项创建进程。 22 | 可用选项: 23 | S 系统 24 | H 高 25 | M 中 26 | L 低 27 | PS: 如果想以默认完整性选项创建进程的话, 请不要包含 "-M" 参数。 28 | 29 | -Priority:[ 选项 ] 以指定进程优先级选项创建进程。 30 | 可用选项: 31 | Idle 低 32 | BelowNormal 低于正常 33 | Normal 正常 34 | AboveNormal 高于正常 35 | High 高 36 | RealTime 实时 37 | PS: 如果想以默认进程优先级选项创建进程的话, 请不要包含 "-Priority" 参数。 38 | 39 | -ShowWindowMode:[ 选项 ] 以指定窗口模式选项创建进程。 40 | 可用选项: 41 | Show 显示窗口 42 | Hide 隐藏窗口 43 | Maximize 最大化 44 | Minimize 最小化 45 | PS: 如果想以默认窗口模式选项创建进程的话, 请不要包含 "-ShowWindowMode" 参数。 46 | 47 | -Wait 令 NSudo Launcher 等待创建的进程结束后再退出。 48 | PS: 如果不想等待, 请不要包含 "-Wait" 参数。 49 | 50 | -CurrentDirectory:[ 目录路径 ] 设置进程的当前目录。 51 | PS: 如果你想用 NSudo Launcher 的当前目录, 请不要包含 "-CurrentDirectory" 参数。 52 | 53 | -UseCurrentConsole 使用当前控制台窗口创建进程。 54 | PS: 如果你想在新控制台窗口创建进程, 请不要包含 "-UseCurrentConsole" 参数。 55 | 56 | -Version 显示 NSudo Launcher 版本信息。 57 | 58 | -? 显示该内容。 59 | -H 显示该内容。 60 | -Help 显示该内容。 61 | 62 | 上下文菜单管理请使用 https://github.com/Thdub/NSudo_Installer。 63 | 64 | PS: 65 | 1. 所有的 NSudo Launcher 命令行参数不区分大小写。 66 | 1. 可以在命令行参数中使用 "/" 或 "--" 代替 "-" 和使用 "=" 代替 ":"。例如 67 | "/U:T" 和 "-U=T" 是等价的。 68 | 1. 为了保证最佳体验, NSudoLC 不支持上下文菜单。 69 | 70 | 例子: 71 | 以TrustedInstaller权限, 启用所有特权, 完整性默认运行命令提示符 72 | NSudoL -U:T -P:E cmd -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/zh-Hans/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | 欲了解更多信息, 请访问 https://nsudo.m2team.org。 -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/zh-Hans/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "关于(&A)", 4 | "Button.Browse": "浏览(&B)", 5 | "Button.Run": "运行(&R)", 6 | "CurrentProcess": "当前进程", 7 | "CurrentUser": "当前用户", 8 | "Default": "默认", 9 | "EnableAllPrivileges": "启用全部特权(&E)", 10 | "LanguageID": "zh-Hans", 11 | "Message.CreateProcessFailed": "错误: 进程创建失败。", 12 | "Message.InvalidCommandParameter": "错误: 命令行参数有误, 请修改。 (使用 -? 参数查看帮助)", 13 | "Message.InvalidTextBoxParameter": "错误: 请在下拉框中输入命令行或选择快捷命令。", 14 | "Message.PrivilegeNotHeld": "错误: 获取SE_DEBUG_NAME特权失败。 (请以管理员权限运行)", 15 | "Message.Success": "操作成功完成。", 16 | "SettingsGroupText": "权限设置", 17 | "Static.Open": "打开(&O):", 18 | "Static.User": "用户(&U):", 19 | "System": "System", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "警告: 使用本工具需要有一定的计算机基础" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/zh-Hant/CommandLineHelp.txt: -------------------------------------------------------------------------------- 1 | 格式: NSudoL [ 選項與參數 ] 命令列執行或常用任務名 2 | 3 | 選項: 4 | 5 | -U:[ 選項 ] 以指定使用者選項建立處理程序。 6 | 可用選項: 7 | T TrustedInstaller 8 | S System 9 | C 當前使用者 10 | E 當前使用者 (提權) 11 | P 當前處理程序 12 | D 當前處理程序 (降權) 13 | PS: 這是一個必須被包含的參數。 14 | 15 | -P:[ 選項 ] 以指定特殊權限選項建立處理程序。 16 | 可用選項: 17 | E 啓用全部特殊權限 18 | D 禁用所有特殊權限 19 | PS: 如果想以默認特殊權限選項建立處理程序, 請不要包含「-P」參數。 20 | 21 | -M:[ 選項 ] 以指定完整性選項建立處理程序。 22 | 可用選項: 23 | S 系統 24 | H 高 25 | M 中 26 | L 低 27 | PS: 如果想以默認完整性選項建立處理程序的話, 請不要包含「-M」參數。 28 | 29 | -Priority:[ 選項 ] 以指定處理程序優先級選項建立處理程序。 30 | 可用選項: 31 | Idle 低 32 | BelowNormal 低於正常 33 | Normal 正常 34 | AboveNormal 高於正常 35 | High 高 36 | RealTime 實時 37 | PS: 如果想以默認處理序優先權選項建立處理程序, 請不要包含「-Priority」參數。 38 | 39 | -ShowWindowMode:[ 選項 ] 以指定視窗模式選項建立處理程序。 40 | 可用選項: 41 | Show 顯示視窗 42 | Hide 隱藏視窗 43 | Maximize 最大化 44 | Minimize 最小化 45 | PS: 如果想以默認視窗模式選項建立處理程序的話, 請不要包含「-ShowWindowMode」參 46 | 數。 47 | 48 | -Wait 令 NSudo Launcher 等待建立的處理程序結束後再退出。 49 | PS: 如果不想等待, 請不要包含「-Wait」參數。 50 | 51 | -CurrentDirectory:[ 目錄路徑 ] 設置處理程序的當前目錄。 52 | PS: 如果你想用 NSudo Launcher 的當前目錄, 請不要包含「-CurrentDirectory」參數。 53 | 54 | -UseCurrentConsole 使用當前控制台視窗建立處理程序。 55 | PS: 如果你想在新控制台視窗建立處理程序, 請不要包含「-UseCurrentConsole」參數。 56 | 57 | -Version 顯示 NSudo Launcher 版本資訊。 58 | 59 | -? 顯示該內容。 60 | -H 顯示該內容。 61 | -Help 顯示該內容。 62 | 63 | 上下文清單管理請使用 https://github.com/Thdub/NSudo_Installer。 64 | 65 | PS: 66 | 1. 所有的 NSudo Launcher 命令列參數不區分大小寫。 67 | 1. 可以在命令行參數中使用 "/" 或 "--" 代替 "-" 和使用 "=" 代替 ":"。例如 68 | "/U:T" 和 "-U=T" 是等價的。 69 | 1. 為了保證最佳體驗, NSudoLC 不支持上下文清單。 70 | 71 | 例子: 72 | 以TrustedInstaller權限, 啓用所有特殊權限, 完整性默認執行命令提示字元 73 | NSudoL -U:T -P:E cmd -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/zh-Hant/Links.txt: -------------------------------------------------------------------------------- 1 |  2 | 3 | 欲瞭解更多資訊, 請訪問 https://nsudo.m2team.org。 -------------------------------------------------------------------------------- /Source/Native/NSudoLauncher/Resources/zh-Hant/Translations.json: -------------------------------------------------------------------------------- 1 | { 2 | "Translations": { 3 | "Button.About": "關於(&A)", 4 | "Button.Browse": "瀏覽(&B)", 5 | "Button.Run": "執行(&R)", 6 | "CurrentProcess": "當前處理程序", 7 | "CurrentUser": "當前使用者", 8 | "Default": "默認", 9 | "EnableAllPrivileges": "啓用全部特殊權限(&E)", 10 | "LanguageID": "zh-Hant", 11 | "Message.CreateProcessFailed": "錯誤: 處理程序建立失敗。", 12 | "Message.InvalidCommandParameter": "錯誤: 命令行參數有誤, 請修改。 (使用 -? 參數查看幫助)", 13 | "Message.InvalidTextBoxParameter": "錯誤: 請在下拉框中輸入命令或選擇快捷命令。", 14 | "Message.PrivilegeNotHeld": "錯誤: 獲取SE_DEBUG_NAME設定失敗。 (請以管理員權限執行)", 15 | "Message.Success": "操作成功完成。", 16 | "SettingsGroupText": "權限設定", 17 | "Static.Open": "開啟(&O):", 18 | "Static.User": "使用者(&U):", 19 | "System": "System", 20 | "TI": "TrustedInstaller", 21 | "WarningText": "警告: 使用本工具需要有一定的電腦基礎" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/Mile.Project.Properties.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoPluginHost/Mile.Project.Properties.h -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/NSudoPluginHost.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/NSudoPluginHost.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoPluginHost/NSudoPluginHost.rc -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/NSudoPluginHost.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {F3E82C07-D4FD-45AD-9C7C-29C7FC210158} 8 | NSudoPluginHost 9 | ConsoleApplication 10 | NSudoPluginHost.manifest 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/NSudoPluginHost.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {0e357701-8331-4610-8ae1-8322ee27262d} 16 | 17 | 18 | {2ba69bf0-5858-40eb-be4b-2cca5f367307} 19 | 20 | 21 | {4f55b135-ae2f-4ac1-baa7-d563b7f270ad} 22 | 23 | 24 | 25 | 26 | Resources\zh-Hans 27 | 28 | 29 | Resources\en 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/Resources/en/Translations.toml: -------------------------------------------------------------------------------- 1 | ## 2 | ## PROJECT: NSudo Plugin Host 3 | ## FILE: Translations.toml 4 | ## PURPOSE: The English translation 5 | ## 6 | ## LICENSE: The MIT License 7 | ## 8 | ## DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | ## 10 | 11 | WarningText = """ 12 | This is a technical preview version, you should not use this version for 13 | production. 14 | 15 | """ 16 | 17 | CommandLineHelpText = """ 18 | Invalid command line parameters. 19 | 20 | Format: NSudoPluginHost [ Module Name ] [ Entry Name ] [ Arguments ] 21 | 22 | P.S. Plugin module must be put to the same directory of this binary. 23 | 24 | """ 25 | -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/Resources/zh-Hans/Translations.toml: -------------------------------------------------------------------------------- 1 | ## 2 | ## PROJECT: NSudo Plugin Host 3 | ## FILE: Translations.toml 4 | ## PURPOSE: The Chinese (Simplified) translation 5 | ## 6 | ## LICENSE: The MIT License 7 | ## 8 | ## DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | ## 10 | 11 | WarningText = """ 12 | 本版属于技术预览版本。您不应将此用于生产环境。 13 | 14 | """ 15 | 16 | CommandLineHelpText = """ 17 | 命令行参数错误。 18 | 19 | 格式: NSudoPluginHost [ 模块名 ] [ 入口名 ] [ 参数 ] 20 | 21 | 注:插件模块必须与本二进制放在同一目录。 22 | 23 | """ 24 | -------------------------------------------------------------------------------- /Source/Native/NSudoPluginHost/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by NSudoPluginHost.rc 4 | #define IDR_TRANSLATIONS 1 5 | 6 | // 新对象的下一组默认值 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 101 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1001 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/DllMain.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: NSudo Shared Library 3 | * FILE: DllMain.cpp 4 | * PURPOSE: DllMain Implementation for NSudo Shared Library 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #include 12 | 13 | BOOL WINAPI DllMain( 14 | _In_ HINSTANCE hinstDLL, 15 | _In_ DWORD fdwReason, 16 | _In_ LPVOID lpvReserved) 17 | { 18 | UNREFERENCED_PARAMETER(hinstDLL); 19 | UNREFERENCED_PARAMETER(lpvReserved); 20 | 21 | switch (fdwReason) 22 | { 23 | case DLL_PROCESS_ATTACH: 24 | break; 25 | case DLL_THREAD_ATTACH: 26 | break; 27 | case DLL_THREAD_DETACH: 28 | break; 29 | case DLL_PROCESS_DETACH: 30 | break; 31 | } 32 | return TRUE; 33 | } 34 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/M2.Base.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: M2-Team Common Library 3 | * FILE: M2.Base.cpp 4 | * PURPOSE: Implementation for M2-Team Common Library Base C++ Wrapper 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #include "M2.Base.h" 12 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/Mile.Project.Properties.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/NSudoSDK/Mile.Project.Properties.h -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoAPI.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | 3 | EXPORTS 4 | 5 | NSudoReadLog 6 | NSudoWriteLog 7 | 8 | NSudoCreateProcess 9 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoAPI.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildThisFileDirectory);$(IncludePath) 5 | 6 | 7 | 8 | $(OutDir)NSudoAPI.lib;%(AdditionalDependencies) 9 | 10 | 11 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoAPI.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {43C2BD57-4D61-42EC-B290-62A32B6FB5C7} 8 | NSudoAPI 9 | DynamicLibrary 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | NSUDOAPI_EXPORTS;%(PreprocessorDefinitions) 20 | 21 | 22 | NSudoAPI.def 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoAPI.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoContextPlugin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: NSudo Software Development Kit 3 | * FILE: NSudoContextPlugin.h 4 | * PURPOSE: Definition for NSudo context plugin 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #ifndef NSUDO_CONTEXT_PLUGIN 12 | #define NSUDO_CONTEXT_PLUGIN 13 | 14 | #include 15 | 16 | /** 17 | * @brief Definition for NSudo version information. 18 | */ 19 | typedef struct _NSUDO_VERSION 20 | { 21 | UINT16 Major; 22 | UINT16 Minor; 23 | UINT16 Patch; 24 | UINT16 Revision; 25 | LPCWSTR Tag; 26 | } NSUDO_VERSION, *PNSUDO_VERSION; 27 | 28 | /** 29 | * @brief Forward definition for NSudo context. 30 | */ 31 | typedef struct _NSUDO_CONTEXT NSUDO_CONTEXT, *PNSUDO_CONTEXT; 32 | 33 | /** 34 | * @brief Definition for NSudo context. 35 | */ 36 | struct _NSUDO_CONTEXT 37 | { 38 | /** 39 | * @brief Gets NSudo version information. 40 | * @param Context The NSudo context. 41 | * @param Version The NSudo version information. 42 | */ 43 | VOID(WINAPI* GetNSudoVersion)( 44 | _In_ PNSUDO_CONTEXT Context, 45 | _Out_ PNSUDO_VERSION Version); 46 | 47 | /** 48 | * @brief Gets the module handle of the context plugin. 49 | * @param Context The NSudo context. 50 | * @return The module handle of the context plugin. 51 | */ 52 | HMODULE(WINAPI* GetContextPluginModuleHandle)( 53 | _In_ PNSUDO_CONTEXT Context); 54 | 55 | /** 56 | * @brief Gets the command line arguments for the context plugin. 57 | * @param Context The NSudo context. 58 | * @return The command line arguments for the context plugin. 59 | */ 60 | LPCWSTR(WINAPI* GetContextPluginCommandArguments)( 61 | _In_ PNSUDO_CONTEXT Context); 62 | 63 | /** 64 | * @brief Frees a memory block allocated from methods in PNSUDO_CONTEXT. 65 | * @param Context The NSudo context. 66 | * @param Block A pointer to the memory block to be freed. 67 | */ 68 | VOID(WINAPI* Free)( 69 | _In_ PNSUDO_CONTEXT Context, 70 | _In_ LPVOID Block); 71 | 72 | /** 73 | * @brief Writes the specified string value to the NSudo user interface. 74 | * @param Context The NSudo context. 75 | * @param Value The value to write. 76 | */ 77 | VOID(WINAPI* Write)( 78 | _In_ PNSUDO_CONTEXT Context, 79 | _In_ LPCWSTR Value); 80 | 81 | /** 82 | * @brief Writes the specified string value, followed by the current line 83 | * terminator, to NSudo user interface. 84 | * @param Context The NSudo context. 85 | * @param Value The value to write. 86 | */ 87 | VOID(WINAPI* WriteLine)( 88 | _In_ PNSUDO_CONTEXT Context, 89 | _In_ LPCWSTR Value); 90 | 91 | /** 92 | * @brief Reads the next line of characters from the user input. 93 | * @param Context The NSudo context. 94 | * @param InputPrompt The prompt you want to notice to the user. 95 | * @return The next line of characters from the user input. If the return 96 | * value is not nullptr, you should use PNSUDO_CONTEXT::Free method 97 | * to release. 98 | */ 99 | LPCWSTR(WINAPI* ReadLine)( 100 | _In_ PNSUDO_CONTEXT Context, 101 | _In_ LPCWSTR InputPrompt); 102 | 103 | /** 104 | * @brief Gets the translated string. 105 | * @param Context The NSudo context. 106 | * @param Name The UTF-8 name of the translated string. 107 | * @return The translated string. 108 | */ 109 | LPCWSTR(WINAPI* GetTranslation)( 110 | _In_ PNSUDO_CONTEXT Context, 111 | _In_ LPCSTR Name); 112 | }; 113 | 114 | /** 115 | * @brief The entry point type of NSudo context plugin. 116 | * @param Context The NSudo context. 117 | * @return HRESULT. If the function succeeds, the return value is S_OK. 118 | */ 119 | typedef HRESULT(WINAPI* NSUDO_CONTEXT_PLUGIN_ENTRY_POINT_TYPE)( 120 | _In_ PNSUDO_CONTEXT Context); 121 | 122 | #endif // !NSUDO_CONTEXT_PLUGIN 123 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoContextPluginHost.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROJECT: NSudo Software Development Kit 3 | * FILE: NSudoContextPluginHost.h 4 | * PURPOSE: Definition for NSudo context plugin host 5 | * 6 | * LICENSE: The MIT License 7 | * 8 | * DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com) 9 | */ 10 | 11 | #ifndef NSUDO_CONTEXT_PLUGIN_HOST 12 | #define NSUDO_CONTEXT_PLUGIN_HOST 13 | 14 | #include "NSudoContextPlugin.h" 15 | 16 | #include 17 | #include 18 | 19 | /** 20 | * @brief Definition for NSudo private context. 21 | */ 22 | typedef struct _NSUDO_CONTEXT_PRIVATE 23 | { 24 | NSUDO_CONTEXT PublicContext; 25 | 26 | SIZE_T Size; 27 | 28 | HWND PiConsoleWindowHandle; 29 | HANDLE ConsoleInputHandle; 30 | HANDLE ConsoleOutputHandle; 31 | bool ConsoleMode; 32 | 33 | HMODULE ModuleHandle; 34 | LPCWSTR CommandArguments; 35 | 36 | std::map Translations; 37 | 38 | } NSUDO_CONTEXT_PRIVATE, *PNSUDO_CONTEXT_PRIVATE; 39 | 40 | 41 | /** 42 | * @brief Fills the function table of the NSudo context. 43 | * @param Context The NSudo context. 44 | */ 45 | EXTERN_C VOID WINAPI NSudoContextFillFunctionTable( 46 | _In_ PNSUDO_CONTEXT Context); 47 | 48 | /** 49 | * @brief Executes the context plugin. 50 | * @param Context The NSudo context. 51 | * @param PluginModuleName The module name of the context plugin. 52 | * @param PluginEntryPointName The entry point name of the context plugin. 53 | * @param CommandArguments The command line arguments of the context plugin. 54 | * @return HRESULT. If the function succeeds, the return value is S_OK. 55 | */ 56 | EXTERN_C HRESULT WINAPI NSudoContextExecutePlugin( 57 | _In_ PNSUDO_CONTEXT Context, 58 | _In_ LPCWSTR PluginModuleName, 59 | _In_ LPCSTR PluginEntryPointName, 60 | _In_ LPCWSTR CommandArguments); 61 | 62 | #endif // !NSUDO_CONTEXT_PLUGIN_HOST 63 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoSDK.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildThisFileDirectory);$(IncludePath) 5 | 6 | 7 | 8 | NSUDOAPI_USING_STATIC_LIBRARY;%(PreprocessorDefinitions) 9 | 10 | 11 | $(OutDir)NSudoSDK.lib;%(AdditionalDependencies) 12 | 13 | 14 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoSDK.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {074549F9-9197-41FE-A8ED-8BFA2A0E2549} 8 | NSudoSDK 9 | StaticLibrary 10 | 11 | 12 | 13 | 14 | 15 | 16 | NSUDOAPI_USING_STATIC_LIBRARY;%(PreprocessorDefinitions) 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Source/Native/NSudoSDK/NSudoSDK.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {baba3b73-1ced-454e-982a-1e748b25054c} 6 | 7 | 8 | {5c8e874d-d1d4-4a9e-b03d-d324fdc5eb88} 9 | 10 | 11 | {e16bd9c7-d200-474c-8a8b-ddf5e8ccfdfb} 12 | 13 | 14 | {c8cdd86e-b69b-4168-8cd1-1254ff96fa7f} 15 | 16 | 17 | {a299b819-d1c5-434e-9b20-6f2be41d6173} 18 | 19 | 20 | 21 | 22 | M2.Base 23 | 24 | 25 | NSudoAPI 26 | 27 | 28 | NSudoContextPluginHost 29 | 30 | 31 | 32 | 33 | M2.Base 34 | 35 | 36 | NSudoAPI 37 | 38 | 39 | NSudoContextPlugin 40 | 41 | 42 | NSudoContextPluginHost 43 | 44 | 45 | toml++ 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Source/Native/Scripts/NSudo.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set ArchDir=Win32 3 | if %PROCESSOR_ARCHITECTURE%==AMD64 set ArchDir=x64 4 | if %PROCESSOR_ARCHITECTURE%==ARM64 set ArchDir=ARM64 5 | start "" "%~dp0%ArchDir%\NSudoLG.exe" 6 | exit 7 | -------------------------------------------------------------------------------- /Source/Native/WTL/WTL.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildThisFileDirectory);$(IncludePath) 5 | 6 | -------------------------------------------------------------------------------- /Source/Native/libkcrt/.gitignore: -------------------------------------------------------------------------------- 1 | !* -------------------------------------------------------------------------------- /Source/Native/libkcrt/arm/libkcrt.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/libkcrt/arm/libkcrt.lib -------------------------------------------------------------------------------- /Source/Native/libkcrt/arm64/libkcrt.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/libkcrt/arm64/libkcrt.lib -------------------------------------------------------------------------------- /Source/Native/libkcrt/libkcrt.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | arm 6 | arm64 7 | x86 8 | x64 9 | 10 | $(MSBuildThisFileDirectory)$(libkcrt_Platform)\ 11 | 12 | $(libkcrt_LibraryPath);$(LibraryPath); 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | false 22 | Default 23 | 24 | 25 | 26 | 27 | 28 | 29 | libcmtd.lib;%(IgnoreSpecificDefaultLibraries) 30 | libvcruntimed.lib;%(IgnoreSpecificDefaultLibraries) 31 | libucrtd.lib;%(IgnoreSpecificDefaultLibraries) 32 | msvcrtd.lib;%(IgnoreSpecificDefaultLibraries) 33 | vcruntimed.lib;%(IgnoreSpecificDefaultLibraries) 34 | ucrtd.lib;%(IgnoreSpecificDefaultLibraries) 35 | libcmt.lib;%(IgnoreSpecificDefaultLibraries) 36 | libvcruntime.lib;%(IgnoreSpecificDefaultLibraries) 37 | libucrt.lib;%(IgnoreSpecificDefaultLibraries) 38 | msvcrt.lib;%(IgnoreSpecificDefaultLibraries) 39 | vcruntime.lib;%(IgnoreSpecificDefaultLibraries) 40 | ucrt.lib;%(IgnoreSpecificDefaultLibraries) 41 | 42 | 43 | libkcrt.lib;%(AdditionalDependencies) 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Source/Native/libkcrt/x64/libkcrt.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/libkcrt/x64/libkcrt.lib -------------------------------------------------------------------------------- /Source/Native/libkcrt/x86/libkcrt.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Source/Native/libkcrt/x86/libkcrt.lib -------------------------------------------------------------------------------- /Website/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # Snowpack dependency directory (https://snowpack.dev/) 45 | web_modules/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | .parcel-cache 78 | 79 | # Next.js build output 80 | .next 81 | out 82 | 83 | # Nuxt.js build / generate output 84 | .nuxt 85 | dist 86 | 87 | # Gatsby files 88 | .cache/ 89 | # Comment in the public line in if your project uses Gatsby and not Next.js 90 | # https://nextjs.org/blog/next-9-1#public-directory-support 91 | # public 92 | 93 | # vuepress build output 94 | .vuepress/dist 95 | 96 | # Serverless directories 97 | .serverless/ 98 | 99 | # FuseBox cache 100 | .fusebox/ 101 | 102 | # DynamoDB Local files 103 | .dynamodb/ 104 | 105 | # TernJS port file 106 | .tern-port 107 | 108 | # Stores VSCode versions used for testing VSCode extensions 109 | .vscode-test 110 | 111 | # yarn v2 112 | .yarn/cache 113 | .yarn/unplugged 114 | .yarn/build-state.yml 115 | .yarn/install-state.gz 116 | .pnp.* 117 | 118 | # Visual Studio 119 | /.vs 120 | -------------------------------------------------------------------------------- /Website/.vuepress/config.js: -------------------------------------------------------------------------------- 1 | const enusThemeConfig = require('./config/themeConfig/locales/en-us') 2 | const zhhansThemeConfig = require('./config/themeConfig/locales/zh-hans') 3 | const zhhantThemeConfig = require('./config/themeConfig/locales/zh-hant') 4 | const ruruThemeConfig = require('./config/themeConfig/locales/ru-ru') 5 | module.exports = { 6 | locales: { 7 | '/en-us/': { 8 | lang: 'en-US', 9 | title: 'NSudo', 10 | description: 'System Administration Toolkit' 11 | }, 12 | '/zh-hans/': { 13 | lang: 'zh-CN', 14 | title: 'NSudo', 15 | description: '系统管理工具包', 16 | }, 17 | '/zh-hant/': { 18 | lang: 'zh-TW', 19 | title: 'NSudo', 20 | description: '系統管理工具包' 21 | }, 22 | '/ru-ru/': { 23 | lang: 'ru-RU', 24 | title: 'NSudo', 25 | description: 'Инструментарий системного администрирования' 26 | } 27 | }, 28 | head: [ 29 | ['meta', { 'http-equiv': 'X-UA-Compatible', content: "IE=edge" }], 30 | ['meta', { name: 'author', content: "M2-Team" }], 31 | ['meta', { name: 'keywords', content: 'trustedinstaller,system,session,windows,token,integritylevel,privileges,nsudo,administration,process,devilmode,bypass,accesscheck,ntapi,launcher' }], 32 | ['meta', { name: 'theme-color', content: '#2582D3' }], 33 | ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }], 34 | ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }], 35 | ['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }], 36 | ['meta', { name: 'msapplication-TileColor', content: '#000000' }], 37 | ['meta', { name: 'Copyright', content: "Copyright M2-Team All Rights Reserved." }], 38 | ['link', { rel: 'icon', href: '/favicon.ico' }], 39 | ['link', { rel: 'manifest', href: '/manifest.json' }], 40 | ['link', { rel: 'apple-touch-icon', href: '/icons/apple-touch-icon-152x152.png' }], 41 | ['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#2582D3' }], 42 | ], 43 | themeConfig: { 44 | repo: 'm2team/NSudo', 45 | editLinks: true, 46 | docsDir: 'Website', 47 | logo: '/assets/img/logo.png', 48 | lastUpdated: true, 49 | locales: { 50 | "/en-us/": enusThemeConfig, 51 | "/zh-hans/": zhhansThemeConfig, 52 | "/zh-hant/": zhhantThemeConfig, 53 | "/ru-ru/": ruruThemeConfig, 54 | }, 55 | }, 56 | plugins: [ 57 | '@vuepress/back-to-top', 58 | '@vuepress/medium-zoom', 59 | '@vuepress/pwa', { 60 | serviceWorker: true, 61 | updatePopup: { 62 | '/en-us/': { 63 | message: "New content is available.", 64 | buttonText: "Refresh", 65 | }, 66 | '/zh-hans/': { 67 | message: "发现新内容可用。", 68 | buttonText: "刷新" 69 | }, 70 | '/zh-hant/': { 71 | message: "發現新內容可用。", 72 | buttonText: "重載" 73 | }, 74 | '/ru-ru/': { 75 | message: "Содержимое сайта было обновлено.", 76 | buttonText: "Перезагрузить", 77 | }, 78 | } 79 | }, 80 | ['@vuepress/last-updated', { 81 | transformer: (timestamp, lang) => { 82 | const moment = require('moment') 83 | moment.locale(lang) 84 | return moment(timestamp).format("YYYY/MM/DD HH:mm") 85 | } 86 | } 87 | ] 88 | ] 89 | } 90 | -------------------------------------------------------------------------------- /Website/.vuepress/config/themeConfig/locales/en-us.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | selectText: "Languages", 3 | label: "English", 4 | editLinkText: "Edit this page on GitHub", 5 | lastUpdated: 'Last Updated', 6 | nav: [ 7 | { text: "Home", link: "/en-us/" }, 8 | { text: "Download", link: "/en-us/Download" }, 9 | { text: "Support", link: "/en-us/Support" }, 10 | { text: "Documents", link: "/en-us/docs/" } 11 | ], 12 | sidebar: { 13 | "/en-us/docs/": [ 14 | "/en-us/docs/", 15 | { 16 | title: "Documents", 17 | collapsable: false, 18 | children: [ 19 | "/en-us/docs/Changelog", 20 | "/en-us/docs/DevilMode", 21 | "/en-us/docs/SharedLibrary" 22 | ] 23 | } 24 | ] 25 | }, 26 | footer: { 27 | actor: 'M2-Team', 28 | actorLink: 'https://m2team.org/', 29 | licensedLink: 'https://github.com/M2Team/NSudo/blob/master/License.md', 30 | licensed: 'MIT', 31 | copyright: [ 32 | { 33 | text: "GitHub Issue ", 34 | link: "https://github.com/M2Team/NSudo/issues" 35 | }, 36 | { 37 | text: "Relevant People", 38 | link: "https://github.com/M2Team/NSudo/blob/master/People.md" 39 | } 40 | ] 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Website/.vuepress/config/themeConfig/locales/ru-ru.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | selectText: "Языки", 3 | label: "Русский", 4 | editLinkText: "Изменить эту страницу на GitHub", 5 | lastUpdated: 'Последнее изменение', 6 | nav: [ 7 | { text: "Главная страница", link: "/ru-ru/" }, 8 | { text: "Скачать", link: "/ru-ru/Download" }, 9 | { text: "Поддержка", link: "/ru-ru/Support" }, 10 | { text: "Документация", link: "/ru-ru/docs/" } 11 | ], 12 | sidebar: { 13 | "/ru-ru/docs/": [ 14 | "/ru-ru/docs/", 15 | { 16 | title: "Документация", 17 | collapsable: false, 18 | children: [ 19 | ["/ru-ru/docs/Changelog", "Обновления"], 20 | ["/ru-ru/docs/DevilMode", "Режим без ограничений NSudo"], 21 | ["/ru-ru/docs/SharedLibrary", "Общая библиотека NSudo"] 22 | ] 23 | } 24 | ] 25 | }, 26 | footer: { 27 | actor: 'M2-Team', 28 | actorLink: 'https://m2team.org/', 29 | licensedLink: 'https://github.com/M2Team/NSudo/blob/master/License.md', 30 | licensed: 'MIT', 31 | copyright: [ 32 | { 33 | text: "GitHub Issue ", 34 | link: "https://github.com/M2Team/NSudo/issues" 35 | }, 36 | { 37 | text: "Благодарности", 38 | link: "https://github.com/M2Team/NSudo/blob/master/People.md" 39 | } 40 | ] 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Website/.vuepress/config/themeConfig/locales/zh-hans.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | selectText: "选择语言", 3 | label: "简体中文", 4 | editLinkText: "在 GitHub 上编辑此页", 5 | lastUpdated: '最后更新时间', 6 | nav: [ 7 | { text: "首页", link: "/zh-hans/" }, 8 | { text: "下载", link: "/zh-hans/Download" }, 9 | { text: "支持", link: "/zh-hans/Support" }, 10 | { text: "文档", link: "/zh-hans/docs/" } 11 | ], 12 | sidebar: { 13 | "/zh-hans/docs/": [ 14 | "/zh-hans/docs/", 15 | { 16 | title: "档案", 17 | collapsable: false, 18 | children: [ 19 | ["/zh-hans/docs/Changelog", "更新日志"], 20 | ["/zh-hans/docs/DevilMode", "NSudo 恶魔模式"], 21 | ["/zh-hans/docs/SharedLibrary", "NSudo 共享库"] 22 | ] 23 | } 24 | ] 25 | }, 26 | footer: { 27 | actor: 'M2-Team', 28 | actorLink: 'https://m2team.org/', 29 | licensedLink: 'https://github.com/M2Team/NSudo/blob/master/License.md', 30 | licensed: 'MIT', 31 | copyright: [ 32 | { 33 | text: "GitHub Issue ", 34 | link: "https://github.com/M2Team/NSudo/issues" 35 | }, 36 | { 37 | text: "相关人士", 38 | link: "https://github.com/M2Team/NSudo/blob/master/People.md" 39 | } 40 | ] 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Website/.vuepress/config/themeConfig/locales/zh-hant.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | selectText: "選擇語言", 3 | label: "繁體中文", 4 | editLinkText: "在 GitHub 上編輯此頁", 5 | lastUpdated: '最後更新時間', 6 | nav: [ 7 | { text: "主頁", link: "/zh-hant/" }, 8 | { text: "下載", link: "/zh-hant/Download" }, 9 | { text: "支援", link: "/zh-hant/Support" }, 10 | { text: "文獻", link: "/zh-hant/docs/" } 11 | ], 12 | sidebar: { 13 | "/zh-hant/docs/": [ 14 | "/zh-hant/docs/", 15 | { 16 | title: "檔案", 17 | collapsable: false, 18 | children: [ 19 | ["/zh-hant/docs/Changelog", "變更紀錄"], 20 | ["/zh-hant/docs/DevilMode", "NSudo 惡魔模式"], 21 | ["/zh-hant/docs/SharedLibrary", "NSudo 共享庫"] 22 | ] 23 | } 24 | ] 25 | }, 26 | footer: { 27 | actor: 'M2-Team', 28 | actorLink: 'https://m2team.org/', 29 | licensedLink: 'https://github.com/M2Team/NSudo/blob/master/License.md', 30 | licensed: 'MIT', 31 | copyright: [ 32 | { 33 | text: "GitHub Issue ", 34 | link: "https://github.com/M2Team/NSudo/issues" 35 | }, 36 | { 37 | text: "相關人士", 38 | link: "https://github.com/M2Team/NSudo/blob/master/People.md" 39 | } 40 | ] 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Website/.vuepress/public/CNAME: -------------------------------------------------------------------------------- 1 | nsudo.m2team.org -------------------------------------------------------------------------------- /Website/.vuepress/public/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/.vuepress/public/assets/img/logo.png -------------------------------------------------------------------------------- /Website/.vuepress/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/.vuepress/public/favicon.ico -------------------------------------------------------------------------------- /Website/.vuepress/public/icons/apple-touch-icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/.vuepress/public/icons/apple-touch-icon-152x152.png -------------------------------------------------------------------------------- /Website/.vuepress/public/icons/msapplication-icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/.vuepress/public/icons/msapplication-icon-144x144.png -------------------------------------------------------------------------------- /Website/.vuepress/public/index.html: -------------------------------------------------------------------------------- 1 |  20 | -------------------------------------------------------------------------------- /Website/.vuepress/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NSudo", 3 | "short_name": "NSudo", 4 | "start_url": "https://nsudo.m2team.org/", 5 | "display": "standalone", 6 | "background_color": "#fff", 7 | "description": "System Administration Toolkit", 8 | "icons": [{ 9 | "src": "icons/apple-touch-icon-152x152.png", 10 | "sizes": "152x152", 11 | "type": "image/png" 12 | }, { 13 | "src": "icons/msapplication-icon-144x144.png", 14 | "sizes": "144x144", 15 | "type": "image/png" 16 | }] 17 | } 18 | -------------------------------------------------------------------------------- /Website/.vuepress/styles/index.styl: -------------------------------------------------------------------------------- 1 | .home .hero img 2 | max-width 450px!important 3 | 4 | body 5 | -webkit-font-smoothing antialiased 6 | -webkit-tap-highlight-color transparent 7 | -moz-osx-font-smoothing grayscale 8 | button 9 | border none 10 | outline none 11 | 12 | div[class~="language-batch"]:before 13 | content "batch" 14 | 15 | div[class~="language-powershell"]:before 16 | content "powershell" 17 | 18 | div[class~="language-csharp"]:before 19 | content "csharp" 20 | 21 | div[class~="language-cpp"]:before 22 | content "cpp" 23 | -------------------------------------------------------------------------------- /Website/.vuepress/styles/palette.styl: -------------------------------------------------------------------------------- 1 | $accentColor = #2c84d0 -------------------------------------------------------------------------------- /Website/.vuepress/theme/components/Page.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 24 | 25 | 33 | -------------------------------------------------------------------------------- /Website/.vuepress/theme/components/PageFooter.vue: -------------------------------------------------------------------------------- 1 | 27 | 36 | 67 | -------------------------------------------------------------------------------- /Website/.vuepress/theme/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extend: '@vuepress/theme-default' 3 | } -------------------------------------------------------------------------------- /Website/.vuepress/theme/layouts/404.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 31 | -------------------------------------------------------------------------------- /Website/.vuepress/theme/styles/wrapper.styl: -------------------------------------------------------------------------------- 1 | $wrapper 2 | max-width $contentWidth 3 | margin 0 auto 4 | padding 2rem 2.5rem 5 | @media (max-width: $MQNarrow) 6 | padding 2rem 7 | @media (max-width: $MQMobileNarrow) 8 | padding 1.5rem 9 | 10 | -------------------------------------------------------------------------------- /Website/build.bat: -------------------------------------------------------------------------------- 1 | @setlocal 2 | @echo off 3 | pushd %~dp0 4 | 5 | call yarn 6 | call yarn build 7 | pause 8 | 9 | popd 10 | @endlocal 11 | -------------------------------------------------------------------------------- /Website/en-us/Download.md: -------------------------------------------------------------------------------- 1 | # Download 2 | 3 | ## Binaries 4 | 5 | - [Current Release](https://github.com/M2Team/NSudo/releases/latest) 6 | - [All Releases](https://github.com/M2Team/NSudo/releases) 7 | - [AppVeyor CI](https://ci.appveyor.com/project/MouriNaruto/nsudo) 8 | 9 | ## Source Code 10 | 11 | - [GitHub](https://github.com/M2Team/NSudo) 12 | - [Gitee](https://gitee.com/M2-Team/NSudo) 13 | 14 | ## NSudo Installer (Unofficial) 15 | 16 | - [Source Code](https://github.com/Thdub/NSudo_Installer) 17 | - [Current Release](https://github.com/Thdub/NSudo_Installer/releases/latest) 18 | 19 | ## Chocolatey (Unofficial) 20 | 21 | ``` batch 22 | choco install nsudo 23 | ``` 24 | 25 | ## scoop (Unofficial) 26 | 27 | ``` batch 28 | scoop bucket add extras 29 | scoop install nsudo 30 | ``` 31 | 32 | ## Third-party download site 33 | 34 | - [MajorGeeks](https://www.majorgeeks.com/files/details/nsudo.html) 35 | - [softpedia.com](https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml) 36 | -------------------------------------------------------------------------------- /Website/en-us/Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/en-us/Screenshot.png -------------------------------------------------------------------------------- /Website/en-us/Support.md: -------------------------------------------------------------------------------- 1 | # Support 2 | 3 | ## Contact 4 | 5 | - E-mail: [Mouri_Naruto@Outlook.com](mailto:Mouri_Naruto@Outlook.com) 6 | 7 | ## Community 8 | 9 | - [GitHub Issues](https://github.com/M2Team/NSudo/issues) 10 | - [My Digital Life](https://forums.mydigitallife.net/threads/59268) 11 | - [QQ Group](https://shang.qq.com/wpa/qunwpa?idkey=ac879ff5e88f85115597a9ec5f3dbbf28a6b84d7352e2fe03b7cbacf58bb6d53) 12 | -------------------------------------------------------------------------------- /Website/en-us/docs/DevilMode.md: -------------------------------------------------------------------------------- 1 | # NSudo Devil Mode 2 | 3 | NSudo Devil Mode is a elegant solution for developers who want to bypass the 4 | file and registry access checks. It hooks some file and registry Windows NT 5 | kernel system calls via Microsoft Detours, so developers only need to load 6 | NSudoDM.dll into their apps before enjoy it. 7 | 8 | NSudo Devil Mode only needs Administrator privilege. So developers need to run 9 | their apps as Administrator if they want to use it. 10 | 11 | As the creator of NSudo project, I think NSudo Devil Mode may replace tools 12 | similar as NSudo in the most cases. NSudo 8.0 will support run apps as NSudo 13 | Devil Mode, and Dism++ God Mode will be refactored with NSudo Devil Mode. So 14 | NSudo will be more professional in the future because I don't want to make 15 | NSudo is replaced by NSudo Devil Mode, lol. 16 | 17 | ## Why I create the NSudo Devil Mode 18 | 19 | NSudo Shared Library is hard for developers to integrate it because it expose a 20 | lot of details about Windows security model and looks like a low level library. 21 | I don't think only providing NSudo Shared Library is good for developers who 22 | want to bypass the file and registry access checks. So I have created the NSudo 23 | Devil Mode. 24 | 25 | ## Origin of NSudo Devil Mode 26 | 27 | NSudo Devil Mode is based on the Dism++ God Mode or call it "Dism++ 春哥附体" 28 | via Chinese. I have refactored the implementations of Dism++ God Mode, add some 29 | new features and make its source code available in NSudo's GitHub repository. 30 | 31 | ## The list of hooked Windows NT kernel system calls 32 | 33 | | Name | Origin | 34 | |-----------------------|------------------------------------------------| 35 | | NtCreateKey | Dism++ God Mode. | 36 | | NtCreateKeyTransacted | NSudo Devil Mode. | 37 | | NtOpenKey | Dism++ God Mode. Extended in NSudo Devil Mode. | 38 | | NtOpenKeyTransacted | NSudo Devil Mode. | 39 | | NtOpenKeyEx | Dism++ God Mode. | 40 | | NtOpenKeyTransactedEx | NSudo Devil Mode. | 41 | | NtCreateFile | Dism++ God Mode. | 42 | | NtOpenFile | Dism++ God Mode. | 43 | 44 | ## How to use NSudo Devil Mode 45 | 46 | You can enable it via LoadLibrary and disable it via FreeLibrary. Here is a 47 | demo code. 48 | 49 | ```csharp 50 | using System; 51 | using System.IO; 52 | using System.Runtime.InteropServices; 53 | 54 | namespace Demo 55 | { 56 | class Program 57 | { 58 | [DllImport("kernel32.dll", CharSet = CharSet.Unicode)] 59 | static extern IntPtr LoadLibrary(string lpLibFileName); 60 | 61 | [DllImport("kernel32.dll", SetLastError = true)] 62 | [return: MarshalAs(UnmanagedType.Bool)] 63 | static extern bool FreeLibrary(IntPtr hLibModule); 64 | 65 | static void Main(string[] args) 66 | { 67 | IntPtr NSudoDevilModeModuleHandle = LoadLibrary( 68 | @"E:\GitHub\M2Team\NSudo\Output\Release\x64\NSudoDevilMode.dll"); 69 | 70 | { 71 | DirectoryInfo Folder = new DirectoryInfo( 72 | @"C:\System Volume Information"); 73 | 74 | foreach (FileInfo File in Folder.GetFiles()) 75 | { 76 | Console.WriteLine(File.FullName); 77 | } 78 | } 79 | 80 | FreeLibrary(NSudoDevilModeModuleHandle); 81 | 82 | { 83 | DirectoryInfo Folder = new DirectoryInfo( 84 | @"C:\System Volume Information"); 85 | 86 | foreach (FileInfo File in Folder.GetFiles()) 87 | { 88 | Console.WriteLine(File.FullName); 89 | } 90 | } 91 | 92 | Console.ReadKey(); 93 | } 94 | } 95 | } 96 | ``` 97 | -------------------------------------------------------------------------------- /Website/en-us/docs/Readme.md: -------------------------------------------------------------------------------- 1 | # Usage 2 | 3 | ## Quick Start 4 | 5 | Please go to the [CPU Architecture] folder and click NSudo.exe. Follow the 6 | prompts. For example, if you want to use 64-bit NSudo on your Intel or AMD 7 | device, you need to go to the x64 folder and click NSudoG.exe 8 | 9 | ## Command Line 10 | 11 | ``` batch 12 | Format: NSudoL [ Options and parameters ] Command line or ShortCut Command 13 | 14 | Options: 15 | 16 | -U:[ Option ] Create a process with specified user option. 17 | Available options: 18 | T TrustedInstaller 19 | S System 20 | C Current User 21 | E Current User (Elevated) 22 | P Current Process 23 | D Current Process (Drop right) 24 | PS: This is a mandatory parameter. 25 | 26 | -P:[ Option ] Create a process with specified privilege option. 27 | Available options: 28 | E Enable All Privileges 29 | D Disable All Privileges 30 | PS: If you want to use the default privileges to create a process, please do 31 | not include the "-P" parameter. 32 | 33 | -M:[ Option ] Create a process with specified Integrity Level option. 34 | Available options: 35 | S System 36 | H High 37 | M Medium 38 | L Low 39 | PS: If you want to use the default Integrity Level to create a process, please 40 | do not include the "-M" parameter. 41 | 42 | -Priority:[ Option ] Create a process with specified process priority option. 43 | Available options: 44 | Idle 45 | BelowNormal 46 | Normal 47 | AboveNormal 48 | High 49 | RealTime 50 | PS: If you want to use the default Process Priority to create a process, please 51 | do not include the "-Priority" parameter. 52 | 53 | -ShowWindowMode:[ Option ] Create a process with specified window mode option. 54 | Available options: 55 | Show 56 | Hide 57 | Maximize 58 | Minimize 59 | PS: If you want to use the default window mode to create a process, please do 60 | not include the "-ShowWindowMode" parameter. 61 | 62 | -Wait Make NSudo Launcher wait for the created process to end before exiting. 63 | PS: If you don't want to wait, please do not include the "-Wait" parameter. 64 | 65 | -CurrentDirectory:[ DirectoryPath ] Set the current directory for the process. 66 | PS: If you want to use the NSudo Launcher's current directory, please do not 67 | include the "-CurrentDirectory" parameter. 68 | 69 | -UseCurrentConsole Create a process with the current console window. 70 | PS: If you want to create a process with the new console window, please do not 71 | include the "-UseCurrentConsole" parameter. 72 | 73 | -Version Show version information of NSudo Launcher. 74 | 75 | -? Show this content. 76 | -H Show this content. 77 | -Help Show this content. 78 | 79 | Please use https://github.com/Thdub/NSudo_Installer for context menu management. 80 | 81 | PS: 82 | 1. All NSudo Launcher command arguments is case-insensitive. 83 | 2. You can use the "/" or "--" override "-" and use the "=" override ":" in 84 | the command line parameters. For example, "/U:T" and "-U=T" are 85 | equivalent. 86 | 3. To ensure the best experience, NSudoLC does not support context menu. 87 | 88 | Example: 89 | If you want to run Command Prompt with TrustedInstaller, enable all 90 | privileges and the default Integrity Level. 91 | NSudoL -U:T -P:E cmd 92 | ``` 93 | 94 | Example: If you want to run Command Prompt with TrustedInstaller, enable all 95 | privileges and the default Integrity Level: 96 | 97 | ``` batch 98 | NSudo -U:T -P:E cmd 99 | ``` 100 | 101 | Starting from NSudo 5.0.1708.16, the command line nested quotes is supported. 102 | For example: 103 | 104 | ``` batch 105 | NSudo -U:T cmd /c "dir "C:\Program Files" & pause" 106 | ``` 107 | 108 | ## Shortcut List 109 | 110 | You can edit NSudo.json to custom the Shortcut list, here are the demo 111 | (NSudo.json in the NSudo.exe's folder): 112 | 113 | ```json 114 | { 115 | "ShortCutList_V2": { 116 | 117 | "Command Prompt": "cmd", 118 | "PowerShell": "powershell", 119 | "PowerShell ISE": "powershell_ise", 120 | "Edit Hosts": "notepad %windir%\\System32\\Drivers\\etc\\hosts" 121 | } 122 | } 123 | ``` 124 | -------------------------------------------------------------------------------- /Website/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nsudo", 3 | "version": "9.0-Preview2", 4 | "description": "System Administration Toolkit", 5 | "main": "index.js", 6 | "authors": { 7 | "name": "Mouri_Naruto", 8 | "email": "Mouri_Naruto@Outlook.com" 9 | }, 10 | "repository": "M2Team/NSudo", 11 | "scripts": { 12 | "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress dev --no-cache", 13 | "build": "cross-env NODE_OPTIONS=--openssl-legacy-provider vuepress build --no-cache" 14 | }, 15 | "license": "MIT", 16 | "devDependencies": { 17 | "@vuepress/plugin-back-to-top": "^1.9.7", 18 | "@vuepress/plugin-medium-zoom": "^1.9.7", 19 | "@vuepress/plugin-pwa": "^1.9.7", 20 | "cross-env": "^7.0.3", 21 | "moment": "^2.29.1", 22 | "vuepress": "^1.9.7" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Website/ru-ru/Download.md: -------------------------------------------------------------------------------- 1 | # Скачать 2 | 3 | ## Двоичные файлы 4 | 5 | - [Текущий выпуск](https://github.com/M2Team/NSudo/releases/latest) 6 | - [Все выпуски](https://github.com/M2Team/NSudo/releases) 7 | - [AppVeyor CI](https://ci.appveyor.com/project/MouriNaruto/nsudo) 8 | 9 | ## Исходный код 10 | 11 | - [GitHub](https://github.com/M2Team/NSudo) 12 | - [Gitee](https://gitee.com/M2-Team/NSudo) 13 | 14 | ## Установщик NSudo (неофициальный) 15 | 16 | - [Исходный код](https://github.com/Thdub/NSudo_Installer) 17 | - [Текущий выпуск](https://github.com/Thdub/NSudo_Installer/releases/latest) 18 | 19 | ## Chocolatey (неофициальный) 20 | 21 | ``` batch 22 | choco install nsudo 23 | ``` 24 | 25 | ## scoop (неофициальный) 26 | 27 | ``` batch 28 | scoop bucket add extras 29 | scoop install nsudo 30 | ``` 31 | 32 | ## Сторонние сайты для скачивания 33 | 34 | - [MajorGeeks](https://www.majorgeeks.com/files/details/nsudo.html) 35 | - [softpedia.com](https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml) 36 | -------------------------------------------------------------------------------- /Website/ru-ru/Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/ru-ru/Screenshot.png -------------------------------------------------------------------------------- /Website/ru-ru/Support.md: -------------------------------------------------------------------------------- 1 | # Поддержка 2 | 3 | ## Связаться 4 | 5 | - E-mail: [Mouri_Naruto@Outlook.com](mailto:Mouri_Naruto@Outlook.com) 6 | 7 | ## Сообщество 8 | 9 | - [GitHub Issues](https://github.com/M2Team/NSudo/issues) 10 | - [My Digital Life](https://forums.mydigitallife.net/threads/59268) 11 | - [Группа на QQ](https://shang.qq.com/wpa/qunwpa?idkey=ac879ff5e88f85115597a9ec5f3dbbf28a6b84d7352e2fe03b7cbacf58bb6d53) 12 | -------------------------------------------------------------------------------- /Website/zh-hans/Download.md: -------------------------------------------------------------------------------- 1 | # 下载 2 | 3 | ## 二进制 4 | 5 | - [当前版本](https://github.com/M2Team/NSudo/releases/latest) 6 | - [所有版本](https://github.com/M2Team/NSudo/releases) 7 | - [AppVeyor CI](https://ci.appveyor.com/project/MouriNaruto/nsudo) 8 | 9 | ## 源代码 10 | 11 | - [GitHub](https://github.com/M2Team/NSudo) 12 | - [码云](https://gitee.com/M2-Team/NSudo) 13 | 14 | ## NSudo Installer (非官方) 15 | 16 | - [源代码](https://github.com/Thdub/NSudo_Installer) 17 | - [当前版本](https://github.com/Thdub/NSudo_Installer/releases/latest) 18 | 19 | ## Chocolatey (非官方) 20 | 21 | ``` batch 22 | choco install nsudo 23 | ``` 24 | 25 | ## scoop (非官方) 26 | 27 | ``` batch 28 | scoop bucket add extras 29 | scoop install nsudo 30 | ``` 31 | 32 | ## 第三方下载站 33 | 34 | - [MajorGeeks](https://www.majorgeeks.com/files/details/nsudo.html) 35 | - [softpedia.com](https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml) 36 | -------------------------------------------------------------------------------- /Website/zh-hans/Readme.md: -------------------------------------------------------------------------------- 1 | # NSudo - 系统管理工具包 2 | 3 | ![屏幕截图](./Screenshot.png) 4 | 5 | ## 注: 成为 NSudo 的赞助者 6 | 7 | Patreon: [https://www.patreon.com/MouriNaruto](https://www.patreon.com/MouriNaruto) 8 | 9 | 爱发电: [https://afdian.net/@MouriNaruto](https://afdian.net/@MouriNaruto) 10 | 11 | - 如果我达到了每个月 1000 美元的目标, 我将会每年更新两个大版本。 12 | - 如果我达到了每个月 2000 美元的目标, 我会为 NSudo 二进制添加 EV 代码签名证书。 13 | 14 | 感谢支持。 15 | 16 | 毛利 17 | 18 | ## 关于 19 | 20 | ### 原型 21 | 22 | 注意: NSudo 基于 raymai97 的超级命令提示符, 请参阅 23 | [这里](http://bbs.pcbeta.com/viewthread-1508863-1-1.html "这里") 以获取更多关于 24 | 超级命令提示符的信息。 25 | 26 | ### 特性列表 27 | 28 | - 以 MIT 许可证发行 29 | - 提供 x86, x86-64, ARM64 二进制 30 | - 支持 Windows Vista 及之后版本 31 | - 使用初雨团队的 VC-LTL 和 libkcrt 以获取更小的二进制体积 32 | - 使用 C++17, 但在大部分情况下只使用核心语言特性 33 | - NSudo Launcher 34 | - 以 TrustedInstaller 访问令牌运行程序 35 | - 以 System 访问令牌运行程序 36 | - 以当前用户的访问令牌运行程序 37 | - 注: 如果用户账户控制即 UAC 没有被禁用, 则该模式的权限与标准用户等价 38 | - 以提权后的当前用户的访问令牌运行程序 39 | - 注: 该模式的权限与提升后的用户等价 40 | - 以当前进程的访问令牌运行程序 41 | - 注: 该模式的权限与提升后的用户等价 42 | - 以当前进程 LUA 模式的访问令牌运行程序 43 | - 注: 该模式的权限与标准用户等价且该实现和 Internet Explorer 浏览器中的 44 | iertutil.dll 中的对应实现一致 45 | - 支持以指定的特权设置运行程序 46 | - 注: 启用全部特权, 禁用所有特权 47 | - 支持以指定的完整性级别运行程序 48 | - 注: 系统、高、中、低 49 | - 支持以指定的进程优先级运行程序 50 | - 注: 低、低于正常、正常、高于正常、高、实时 51 | - 支持以指定的窗口模式运行程序 52 | - 注: 显示窗口、隐藏窗口、最大化、最小化 53 | - 支持进程创建后并等待其运行结束 54 | - 支持以指定的当前目录运行程序 55 | - 支持在当前控制台窗口下运行程序 56 | - 支持快捷方式列表 57 | - 注: 你可以通过编辑 NSudo.json 的方式定制 58 | - 支持多种命令行风格 59 | - 多语言支持 60 | - 注: 简体中文、繁体中文、英语、法语、德语、意大利语、西班牙语 61 | - 完整的高 DPI 支持 62 | - 注: 和 Windows 外壳 (conhost.exe) 的实现一样完美, 在 Windows 10 Build 63 | 10240 及之后版本有完整的 Per-Monitor DPI-Aware 支持和在 Windows Vista 到 64 | Windows 8.1 之间的版本有完整的 System DPI-Aware 支持 65 | - 完整的无障碍访问支持 66 | - 注: 你可以在 Windows 讲述人下顺畅的使用 NSudo Launcher 67 | - 高性能 68 | - 注: 因为其实现不需要创建 Windows 服务和 Windows 服务进程 69 | - 为开发者提供 C APIs 和 .Net Core 互操作支持 70 | - NSudo 恶魔模式 71 | - 对于希望无视管理员权限的进程下的文件和注册表访问判断的开发者而言是最优雅的 72 | 解决方案 73 | - 使用 Microsoft Detours 库对 API 进行挂钩以保证最大兼容 74 | - 其二进制仅依赖了 ntdll.dll 的以函数名导出的 API 75 | 76 | ### 使用了 NSudo 的第三方项目 77 | 78 | - MSMG ToolKit 79 | - Sledgehammer (WUMT Wrapper Script) 80 | - Dism++ 81 | 82 | ### 系统要求 83 | 84 | - 支持的系统版本: Windows NT 6.0 及之后版本 85 | - 支持的处理器架构: x86, x86-64(AMD64), ARM64 86 | 87 | ### 第三方介绍 88 | 89 | - HowToDoNinja: [https://howtodoninja.com/how-to/nsudo-run-programs-with-full-admin-privileges-windows/](https://howtodoninja.com/how-to/nsudo-run-programs-with-full-admin-privileges-windows/) 90 | - MajorGeeks: [https://www.majorgeeks.com/files/details/nsudo.html](https://www.majorgeeks.com/files/details/nsudo.html) 91 | - softpedia.com: [https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml](https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml) 92 | - TrishTech.com: [https://www.trishtech.com/2018/11/nsudo-run-programs-with-full-privileges-in-windows/](https://www.trishtech.com/2018/11/nsudo-run-programs-with-full-privileges-in-windows/) 93 | - Wilders Security Forums: [https://www.wilderssecurity.com/threads/396818](https://www.wilderssecurity.com/threads/396818) 94 | 95 | ## 使用方法 96 | 97 | ### 快速上手 98 | 99 | 请打开【CPU 架构】目录, 然后双击 NSudo.exe. 根据提示操作即可。例如, 如果你想在 100 | 你的 Intel 或 AMD 设备上使用 64 位 NSudo, 你首先需要打开的是 x64 目录, 然后双击 101 | NSudoG.exe。 102 | -------------------------------------------------------------------------------- /Website/zh-hans/Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/zh-hans/Screenshot.png -------------------------------------------------------------------------------- /Website/zh-hans/Support.md: -------------------------------------------------------------------------------- 1 | # 支持 2 | 3 | ## 联系方式 4 | 5 | - 邮箱: [Mouri_Naruto@Outlook.com](mailto:Mouri_Naruto@Outlook.com) 6 | 7 | ## 社区 8 | 9 | - [GitHub Issues](https://github.com/M2Team/NSudo/issues) 10 | - [My Digital Life](https://forums.mydigitallife.net/threads/59268) 11 | - [QQ 群](https://shang.qq.com/wpa/qunwpa?idkey=ac879ff5e88f85115597a9ec5f3dbbf28a6b84d7352e2fe03b7cbacf58bb6d53) 12 | -------------------------------------------------------------------------------- /Website/zh-hans/docs/Readme.md: -------------------------------------------------------------------------------- 1 | # 使用方法 2 | 3 | ## 快速上手 4 | 5 | 请打开【CPU 架构】目录, 然后双击 NSudo.exe。根据提示操作即可。例如, 如果你想在 6 | 你的 Intel 或 AMD 设备上使用 64 位 NSudo, 你首先需要打开的是 x64 目录, 然后双击 7 | NSudoG.exe。 8 | 9 | ## 命令行选项 10 | 11 | ``` batch 12 | 格式: NSudoL [ 选项与参数 ] 命令行或常用任务名 13 | 14 | 选项: 15 | 16 | -U:[ 选项 ] 以指定用户选项创建进程。 17 | 可用选项: 18 | T TrustedInstaller 19 | S System 20 | C 当前用户 21 | E 当前用户 (提权) 22 | P 当前进程 23 | D 当前进程 (降权) 24 | PS: 这是一个必须被包含的参数。 25 | 26 | -P:[ 选项 ] 以指定特权选项创建进程。 27 | 可用选项: 28 | E 启用全部特权 29 | D 禁用所有特权 30 | PS: 如果想以默认特权选项创建进程的话, 请不要包含 "-P" 参数。 31 | 32 | -M:[ 选项 ] 以指定完整性选项创建进程。 33 | 可用选项: 34 | S 系统 35 | H 高 36 | M 中 37 | L 低 38 | PS: 如果想以默认完整性选项创建进程的话, 请不要包含 "-M" 参数。 39 | 40 | -Priority:[ 选项 ] 以指定进程优先级选项创建进程。 41 | 可用选项: 42 | Idle 低 43 | BelowNormal 低于正常 44 | Normal 正常 45 | AboveNormal 高于正常 46 | High 高 47 | RealTime 实时 48 | PS: 如果想以默认进程优先级选项创建进程的话, 请不要包含 "-Priority" 参数。 49 | 50 | -ShowWindowMode:[ 选项 ] 以指定窗口模式选项创建进程。 51 | 可用选项: 52 | Show 显示窗口 53 | Hide 隐藏窗口 54 | Maximize 最大化 55 | Minimize 最小化 56 | PS: 如果想以默认窗口模式选项创建进程的话, 请不要包含 "-ShowWindowMode" 参数。 57 | 58 | -Wait 令 NSudo Launcher 等待创建的进程结束后再退出。 59 | PS: 如果不想等待, 请不要包含 "-Wait" 参数。 60 | 61 | -CurrentDirectory:[ 目录路径 ] 设置进程的当前目录。 62 | PS: 如果你想用 NSudo Launcher 的当前目录, 请不要包含 "-CurrentDirectory" 参数。 63 | 64 | -UseCurrentConsole 使用当前控制台窗口创建进程。 65 | PS: 如果你想在新控制台窗口创建进程, 请不要包含 "-UseCurrentConsole" 参数。 66 | 67 | -Version 显示 NSudo Launcher 版本信息。 68 | 69 | -? 显示该内容。 70 | -H 显示该内容。 71 | -Help 显示该内容。 72 | 73 | 上下文菜单管理请使用 https://github.com/Thdub/NSudo_Installer。 74 | 75 | PS: 76 | 1. 所有的 NSudo Launcher 命令行参数不区分大小写。 77 | 1. 可以在命令行参数中使用 "/" 或 "--" 代替 "-" 和使用 "=" 代替 ":"。例如 78 | "/U:T" 和 "-U=T" 是等价的。 79 | 1. 为了保证最佳体验, NSudoLC 不支持上下文菜单。 80 | 81 | 例子: 82 | 以TrustedInstaller权限, 启用所有特权, 完整性默认运行命令提示符 83 | NSudoL -U:T -P:E cmd 84 | ``` 85 | 86 | 例子: 以 TrustedInstaller 权限, 启用所有特权, 完整性默认运行命令提示符 87 | 88 | ``` batch 89 | NSudo -U:T -P:E cmd 90 | ``` 91 | 92 | 从 NSudo 5.0.1708.16 开始命令行支持嵌套引号, 例如: 93 | 94 | ``` batch 95 | NSudo -U:T cmd /c "dir "C:\Program Files" & pause" 96 | ``` 97 | 98 | ## 常用列表 99 | 100 | 关于常用列表的自定义,可以使用记事本等工具编辑 NSudo.json。你可以照着示例的做法添 101 | 加你的自定义项目: 102 | 103 | ```json 104 | { 105 | "ShortCutList_V2": { 106 | "命令提示符": "cmd", 107 | "PowerShell": "powershell", 108 | "PowerShell ISE": "powershell_ise", 109 | "Hosts编辑": "notepad %windir%\\System32\\Drivers\\etc\\hosts" 110 | } 111 | } 112 | ``` 113 | -------------------------------------------------------------------------------- /Website/zh-hans/docs/SharedLibrary.md: -------------------------------------------------------------------------------- 1 | # NSudo 共享库 2 | 3 | ## NSudoCreateProcess 函数 4 | 5 | 创建一个新进程和对应的主线程。 6 | 7 | ### C/C++ 函数原型 8 | 9 | ```cpp 10 | EXTERN_C HRESULT WINAPI NSudoCreateProcess( 11 | _In_ NSUDO_USER_MODE_TYPE UserModeType, 12 | _In_ NSUDO_PRIVILEGES_MODE_TYPE PrivilegesModeType, 13 | _In_ NSUDO_MANDATORY_LABEL_TYPE MandatoryLabelType, 14 | _In_ NSUDO_PROCESS_PRIORITY_CLASS_TYPE ProcessPriorityClassType, 15 | _In_ NSUDO_SHOW_WINDOW_MODE_TYPE ShowWindowModeType, 16 | _In_ DWORD WaitInterval, 17 | _In_ BOOL CreateNewConsole, 18 | _In_ LPCWSTR CommandLine, 19 | _In_opt_ LPCWSTR CurrentDirectory); 20 | ``` 21 | 22 | ### UserModeType 参数 23 | 24 | 一个类型为 NSUDO_USER_MODE_TYPE 枚举类型的值, 用以表示用户类别。 25 | 26 | ```cpp 27 | typedef enum class _NSUDO_USER_MODE_TYPE 28 | { 29 | DEFAULT, 30 | TRUSTED_INSTALLER, 31 | SYSTEM, 32 | CURRENT_USER, 33 | CURRENT_PROCESS, 34 | CURRENT_PROCESS_DROP_RIGHT 35 | } NSUDO_USER_MODE_TYPE, *PNSUDO_USER_MODE_TYPE; 36 | ``` 37 | 38 | ### PrivilegesModeType 参数 39 | 40 | 一个类型为 NSUDO_PRIVILEGES_MODE_TYPE 枚举类型的值, 用以表示特权类型。 41 | 42 | ```cpp 43 | typedef enum class _NSUDO_PRIVILEGES_MODE_TYPE 44 | { 45 | DEFAULT, 46 | ENABLE_ALL_PRIVILEGES, 47 | DISABLE_ALL_PRIVILEGES 48 | } NSUDO_PRIVILEGES_MODE_TYPE, *PNSUDO_PRIVILEGES_MODE_TYPE; 49 | ``` 50 | 51 | ### MandatoryLabelType 参数 52 | 53 | 一个类型为 NSUDO_MANDATORY_LABEL_TYPE 枚举类型的值, 用以表示完整性标签。 54 | 55 | ```cpp 56 | typedef enum class _NSUDO_MANDATORY_LABEL_TYPE 57 | { 58 | UNTRUSTED, 59 | LOW, 60 | MEDIUM, 61 | MEDIUM_PLUS, 62 | HIGH, 63 | SYSTEM, 64 | PROTECTED_PROCESS, 65 | } NSUDO_MANDATORY_LABEL_TYPE, *PNSUDO_MANDATORY_LABEL_TYPE; 66 | ``` 67 | 68 | ### ProcessPriorityClassType 参数 69 | 70 | 一个类型为 NSUDO_PROCESS_PRIORITY_CLASS_TYPE 枚举类型的值, 用以表示进程优先级。 71 | 72 | ```cpp 73 | typedef enum class _NSUDO_PROCESS_PRIORITY_CLASS_TYPE 74 | { 75 | IDLE, 76 | BELOW_NORMAL, 77 | NORMAL, 78 | ABOVE_NORMAL, 79 | HIGH, 80 | REALTIME, 81 | } NSUDO_PROCESS_PRIORITY_CLASS_TYPE, *PNSUDO_PROCESS_PRIORITY_CLASS_TYPE; 82 | ``` 83 | 84 | ### ShowWindowModeType 参数 85 | 86 | 一个类型为 NSUDO_SHOW_WINDOW_MODE_TYPE 枚举类型的值, 用以表示显示窗口模式。 87 | 88 | ```cpp 89 | typedef enum class _NSUDO_SHOW_WINDOW_MODE_TYPE 90 | { 91 | DEFAULT, 92 | SHOW, 93 | HIDE, 94 | MAXIMIZE, 95 | MINIMIZE, 96 | } NSUDO_SHOW_WINDOW_MODE_TYPE, *PNSUDO_SHOW_WINDOW_MODE_TYPE; 97 | ``` 98 | 99 | ### WaitInterval 参数 100 | 101 | 等待创建的进程的时间 (毫秒)。 102 | 103 | ### CreateNewConsole 参数 104 | 105 | 如果这个参数设为 TRUE, 新进程则在新的控制台窗口运行, 否则则直接在父进程对应的控 106 | 制台窗口运行 (默认设定)。 107 | 108 | ### CommandLine 参数 109 | 110 | 要执行的命令行, 对应的字符串最大长度为 32k 即 32768 字符, 命令行所执行的应用的 111 | 路径被限制为 MAX_PATH 即 260 字符。 112 | 113 | ### CurrentDirectory 参数 114 | 115 | 用来指定进程的当前目录, 需要使用完整路径。可以使用 UNC 路径。如果该参数为 116 | nullptr, 新进程将使用调用该函数的进程所使用的当前路径。 117 | 118 | ### 返回值 119 | 120 | HRESULT 类型。如果函数调用成功, 则返回值为 S_OK。 121 | 122 | ## C# 接口 123 | 124 | 在你的项目中加载 M2.NSudo 程序集, 你就会知晓其用法。 125 | 126 | ### 代码示例 127 | 128 | ```csharp 129 | using System; 130 | 131 | namespace M2.NSudo.Demo 132 | { 133 | class Program 134 | { 135 | static void Main(string[] args) 136 | { 137 | NSudoInstance instance = new NSudoInstance(); 138 | 139 | instance.CreateProcess( 140 | NSUDO_USER_MODE_TYPE.TRUSTED_INSTALLER, 141 | NSUDO_PRIVILEGES_MODE_TYPE.ENABLE_ALL_PRIVILEGES, 142 | NSUDO_MANDATORY_LABEL_TYPE.SYSTEM, 143 | NSUDO_PROCESS_PRIORITY_CLASS_TYPE.NORMAL, 144 | NSUDO_SHOW_WINDOW_MODE_TYPE.DEFAULT, 145 | 0, 146 | true, 147 | "cmd", 148 | null); 149 | 150 | Console.ReadKey(); 151 | } 152 | } 153 | } 154 | ``` 155 | -------------------------------------------------------------------------------- /Website/zh-hant/Download.md: -------------------------------------------------------------------------------- 1 | # 下載 2 | 3 | ## 二进制 4 | 5 | - [當前版本](https://github.com/M2Team/NSudo/releases/latest) 6 | - [所有版本](https://github.com/M2Team/NSudo/releases) 7 | - [AppVeyor CI](https://ci.appveyor.com/project/MouriNaruto/nsudo) 8 | 9 | ## 源代碼 10 | 11 | - [GitHub](https://github.com/M2Team/NSudo) 12 | - [碼雲](https://gitee.com/M2-Team/NSudo) 13 | 14 | ## NSudo Installer (非官方) 15 | 16 | - [源代碼](https://github.com/Thdub/NSudo_Installer) 17 | - [當前版本](https://github.com/Thdub/NSudo_Installer/releases/latest) 18 | 19 | ## Chocolatey (非官方) 20 | 21 | ``` batch 22 | choco install nsudo 23 | ``` 24 | 25 | ## scoop (非官方) 26 | 27 | ``` batch 28 | scoop bucket add extras 29 | scoop install nsudo 30 | ``` 31 | 32 | ## 第三方下載站 33 | 34 | - [MajorGeeks](https://www.majorgeeks.com/files/details/nsudo.html) 35 | - [softpedia.com](https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml) 36 | -------------------------------------------------------------------------------- /Website/zh-hant/Readme.md: -------------------------------------------------------------------------------- 1 | # NSudo - 系統管理工具包 2 | 3 | ![螢幕擷取畫面](./Screenshot.png) 4 | 5 | ## 注: 成爲 NSudo 的贊助者 6 | 7 | Patreon: [https://www.patreon.com/MouriNaruto](https://www.patreon.com/MouriNaruto) 8 | 9 | 愛發電: [https://afdian.net/@MouriNaruto](https://afdian.net/@MouriNaruto) 10 | 11 | - 如果我達到了每個月 1000 美元的目標, 我將會每年更新兩個大版本。 12 | - 如果我達到了每個月 2000 美元的目標, 我會爲 NSudo 二進制添加 EV 代碼簽名證書。 13 | 14 | 感謝支持。 15 | 16 | 毛利 17 | 18 | ## 關於 19 | 20 | ### Prototype 21 | 22 | 注意: NSudo 基於 raymai97 的 SuperCMD, 請參閱 23 | [這裡](http://bbs.pcbeta.com/viewthread-1508863-1-1.html "這裡") 以獲取更多關於 24 | SuperCMD 的信息。 25 | 26 | ### 特性列表 27 | 28 | - 以 MIT 許可證發行 29 | - 提供 x86, x86-64, ARM64 二進制 30 | - 支持 Windows Vista 及之後版本 31 | - 使用初雨團隊的 VC-LTL 和 libkcrt 以獲取更小的二進制體積 32 | - 使用 C++17, 但在大部分情況下只使用核心語言特性 33 | - NSudo Launcher 34 | - 以 TrustedInstaller 訪問令牌運行程序 35 | - 以 System 訪問令牌運行程序 36 | - 以當前用戶的訪問令牌運行程序 37 | - 注: 如果用戶賬戶控制即 UAC 沒有被禁用, 則該模式的權限與標準用戶等價 38 | - 以提升後的當前用戶的訪問令牌運行程序 39 | - 注: 該模式的權限與提升後的用戶等價 40 | - 以當前進程的訪問令牌運行程序 41 | - 注: 該模式的權限與提升後的用戶等價 42 | - 以當前進程 LUA 模式的訪問令牌運行程序 43 | - 注: 該模式的權限與標準用戶等價且該實現和 Internet Explorer 瀏覽器中的 44 | iertutil.dll 中的對應實現一致 45 | - 支持以指定的特權設置運行程序 46 | - 注: 啓用全部特權, 禁用所有特權 47 | - 支持以指定的完整性級別運行程序 48 | - 注: 系統、高、中、低 49 | - 支持以指定的進程優先級運行程序 50 | - 注: 低、低於正常、正常、高於正常、高、實時 51 | - 支持以指定的窗口模式運行程序 52 | - 注: 顯示窗口、隱藏窗口、最大化、最小化 53 | - 支持進程創建後並等待其運行結束 54 | - 支持以指定的當前目錄運行程序 55 | - 支持在當前控制檯窗口下運行程序 56 | - 支持快捷方式列表 57 | - 注: 你可以通過編輯 NSudo.json 的方式定製 58 | - 支持多種命令行風格 59 | - 多語言支持 60 | - 注: 簡體中文、繁體中文、英語、法語、德語、意大利語、西班牙語 61 | - 完整的高 DPI 支持 62 | - 注: 和 Windows 外殼 (conhost.exe) 的實現一樣完美, 在 Windows 10 Build 63 | 10240 及之後版本有完整的 Per-Monitor DPI-Aware 支持和在 Windows Vista 到 64 | Windows 8.1 之間的版本有完整的 System DPI-Aware 支持 65 | - 完整的無障礙訪問支持 66 | - 注: 你可以在 Windows 講述人下順暢的使用 NSudo Launcher 67 | - 高性能 68 | - 注: 因爲其實現不需要創建 Windows 服務和 Windows 服務進程 69 | - 爲開發者提供 C APIs 和 .Net Core 互操作支持 70 | - NSudo 惡魔模式 71 | - 對於希望無視管理員權限的進程下的文件和註冊表訪問判斷的開發者而言是最優雅的 72 | 解決方案 73 | - 使用 Microsoft Detours 庫對 API 進行掛鉤以保證最大兼容 74 | - 其二進制僅依賴了 ntdll.dll 的以函數名導出的 API 75 | 76 | ### 使用了 NSudo 的第三方項目 77 | 78 | - MSMG ToolKit 79 | - Sledgehammer (WUMT Wrapper Script) 80 | - Dism++ 81 | 82 | ### 系統要求 83 | 84 | - 支持的系統版本: Windows NT 6.0 及之後版本 85 | - 支持的處理器架構: x86, x86-64(AMD64), ARM64 86 | 87 | ### 第三方介紹 88 | 89 | - HowToDoNinja: [https://howtodoninja.com/how-to/nsudo-run-programs-with-full-admin-privileges-windows/](https://howtodoninja.com/how-to/nsudo-run-programs-with-full-admin-privileges-windows/) 90 | - MajorGeeks: [https://www.majorgeeks.com/files/details/nsudo.html](https://www.majorgeeks.com/files/details/nsudo.html) 91 | - softpedia.com: [https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml](https://www.softpedia.com/get/Tweak/System-Tweak/NSudo.shtml) 92 | - TrishTech.com: [https://www.trishtech.com/2018/11/nsudo-run-programs-with-full-privileges-in-windows/](https://www.trishtech.com/2018/11/nsudo-run-programs-with-full-privileges-in-windows/) 93 | - Wilders Security Forums: [https://www.wilderssecurity.com/threads/396818](https://www.wilderssecurity.com/threads/396818) 94 | 95 | ## 使用方法 96 | 97 | ### 快速入門 98 | 99 | 請開啟【CPU 架構】目錄, 然後按兩下 NSudo.exe. 根據提示操作即可。例如, 如果你想 100 | 在你的 Intel 或 AMD 設備上使用 64 位 NSudo, 你首先需要開啟的是 x64 目錄, 然後按兩 101 | 下 NSudoG.exe。 102 | -------------------------------------------------------------------------------- /Website/zh-hant/Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/M2TeamArchived/NSudo/3536f19a27e62e1cd4042ec0bf013defb4ef866e/Website/zh-hant/Screenshot.png -------------------------------------------------------------------------------- /Website/zh-hant/Support.md: -------------------------------------------------------------------------------- 1 | # 支援 2 | 3 | ## 聯繫方式 4 | 5 | - 電郵: [Mouri_Naruto@Outlook.com](mailto:Mouri_Naruto@Outlook.com) 6 | 7 | ## 社區 8 | 9 | - [GitHub Issues](https://github.com/M2Team/NSudo/issues) 10 | - [My Digital Life](https://forums.mydigitallife.net/threads/59268) 11 | - [QQ 群組](https://shang.qq.com/wpa/qunwpa?idkey=ac879ff5e88f85115597a9ec5f3dbbf28a6b84d7352e2fe03b7cbacf58bb6d53) 12 | -------------------------------------------------------------------------------- /Website/zh-hant/docs/Readme.md: -------------------------------------------------------------------------------- 1 | # 使用方法 2 | 3 | ## 快速入門 4 | 5 | 請開啟【CPU 架構】目錄, 然後按兩下 NSudo.exe。根據提示操作即可。例如, 如果你想 6 | 在你的 Intel 或 AMD 設備上使用 64 位 NSudo, 你首先需要開啟的是 x64 目錄, 然後按兩 7 | 下 NSudoG.exe。 8 | 9 | ## 命令列選項 10 | 11 | ``` batch 12 | 格式: NSudoL [ 選項與參數 ] 命令列執行或常用任務名 13 | 14 | 選項: 15 | 16 | -U:[ 選項 ] 以指定使用者選項建立處理程序。 17 | 可用選項: 18 | T TrustedInstaller 19 | S System 20 | C 當前使用者 21 | E 當前使用者 (提權) 22 | P 當前處理程序 23 | D 當前處理程序 (降權) 24 | PS: 這是一個必須被包含的參數。 25 | 26 | -P:[ 選項 ] 以指定特殊權限選項建立處理程序。 27 | 可用選項: 28 | E 啓用全部特殊權限 29 | D 禁用所有特殊權限 30 | PS: 如果想以默認特殊權限選項建立處理程序, 請不要包含「-P」參數。 31 | 32 | -M:[ 選項 ] 以指定完整性選項建立處理程序。 33 | 可用選項: 34 | S 系統 35 | H 高 36 | M 中 37 | L 低 38 | PS: 如果想以默認完整性選項建立處理程序的話, 請不要包含「-M」參數。 39 | 40 | -Priority:[ 選項 ] 以指定處理程序優先級選項建立處理程序。 41 | 可用選項: 42 | Idle 低 43 | BelowNormal 低於正常 44 | Normal 正常 45 | AboveNormal 高於正常 46 | High 高 47 | RealTime 實時 48 | PS: 如果想以默認處理序優先權選項建立處理程序, 請不要包含「-Priority」參數。 49 | 50 | -ShowWindowMode:[ 選項 ] 以指定視窗模式選項建立處理程序。 51 | 可用選項: 52 | Show 顯示視窗 53 | Hide 隱藏視窗 54 | Maximize 最大化 55 | Minimize 最小化 56 | PS: 如果想以默認視窗模式選項建立處理程序的話, 請不要包含「-ShowWindowMode」參 57 | 數。 58 | 59 | -Wait 令 NSudo Launcher 等待建立的處理程序結束後再退出。 60 | PS: 如果不想等待, 請不要包含「-Wait」參數。 61 | 62 | -CurrentDirectory:[ 目錄路徑 ] 設置處理程序的當前目錄。 63 | PS: 如果你想用 NSudo Launcher 的當前目錄, 請不要包含「-CurrentDirectory」參數。 64 | 65 | -UseCurrentConsole 使用當前控制台視窗建立處理程序。 66 | PS: 如果你想在新控制台視窗建立處理程序, 請不要包含「-UseCurrentConsole」參數。 67 | 68 | -Version 顯示 NSudo Launcher 版本資訊。 69 | 70 | -? 顯示該內容。 71 | -H 顯示該內容。 72 | -Help 顯示該內容。 73 | 74 | 上下文清單管理請使用 https://github.com/Thdub/NSudo_Installer。 75 | 76 | PS: 77 | 1. 所有的 NSudo Launcher 命令列參數不區分大小寫。 78 | 1. 可以在命令行參數中使用 "/" 或 "--" 代替 "-" 和使用 "=" 代替 ":"。例如 79 | "/U:T" 和 "-U=T" 是等價的。 80 | 1. 為了保證最佳體驗, NSudoLC 不支持上下文清單。 81 | 82 | 例子: 83 | 以TrustedInstaller權限, 啓用所有特殊權限, 完整性默認執行命令提示字元 84 | NSudoL -U:T -P:E cmd 85 | ``` 86 | 87 | 例子: 以 TrustedInstaller 權限, 啓用所有特殊權限, 完整性默認執行命令提示字元: 88 | 89 | ``` batch 90 | NSudo -U:T -P:E cmd 91 | ``` 92 | 93 | 從 NSudo 5.0.1708.16 開始命令列支持嵌套引號, 例如: 94 | 95 | ``` batch 96 | NSudo -U:T cmd /c "dir "C:\Program Files" & pause" 97 | ``` 98 | 99 | ## 常用列表 100 | 101 | 關於常用列表的自訂,可以使用記事本等工具編輯 NSudo.json。你可以照著示例的做法添 102 | 加你的自訂項目: 103 | 104 | ```json 105 | { 106 | "ShortCutList_V2": { 107 | "命令提示字元": "cmd", 108 | "PowerShell": "powershell", 109 | "PowerShell ISE": "powershell_ise", 110 | "Hosts編輯": "notepad %windir%\\System32\\Drivers\\etc\\hosts" 111 | } 112 | } 113 | ``` 114 | -------------------------------------------------------------------------------- /Website/zh-hant/docs/SharedLibrary.md: -------------------------------------------------------------------------------- 1 | # NSudo 共享庫 2 | 3 | ## NSudoCreateProcess 函數 4 | 5 | 創建一個新進程和對應的主線程。 6 | 7 | ### C/C++ 函數原型 8 | 9 | ```cpp 10 | EXTERN_C HRESULT WINAPI NSudoCreateProcess( 11 | _In_ NSUDO_USER_MODE_TYPE UserModeType, 12 | _In_ NSUDO_PRIVILEGES_MODE_TYPE PrivilegesModeType, 13 | _In_ NSUDO_MANDATORY_LABEL_TYPE MandatoryLabelType, 14 | _In_ NSUDO_PROCESS_PRIORITY_CLASS_TYPE ProcessPriorityClassType, 15 | _In_ NSUDO_SHOW_WINDOW_MODE_TYPE ShowWindowModeType, 16 | _In_ DWORD WaitInterval, 17 | _In_ BOOL CreateNewConsole, 18 | _In_ LPCWSTR CommandLine, 19 | _In_opt_ LPCWSTR CurrentDirectory); 20 | ``` 21 | 22 | ### UserModeType 參數 23 | 24 | 一個類型爲 NSUDO_USER_MODE_TYPE 枚舉類型的值, 用以表示用戶類別。 25 | 26 | ```cpp 27 | typedef enum class _NSUDO_USER_MODE_TYPE 28 | { 29 | DEFAULT, 30 | TRUSTED_INSTALLER, 31 | SYSTEM, 32 | CURRENT_USER, 33 | CURRENT_PROCESS, 34 | CURRENT_PROCESS_DROP_RIGHT 35 | } NSUDO_USER_MODE_TYPE, *PNSUDO_USER_MODE_TYPE; 36 | ``` 37 | 38 | ### PrivilegesModeType 參數 39 | 40 | 一個類型爲 NSUDO_PRIVILEGES_MODE_TYPE 枚舉類型的值, 用以表示特權類型。 41 | 42 | ```cpp 43 | typedef enum class _NSUDO_PRIVILEGES_MODE_TYPE 44 | { 45 | DEFAULT, 46 | ENABLE_ALL_PRIVILEGES, 47 | DISABLE_ALL_PRIVILEGES 48 | } NSUDO_PRIVILEGES_MODE_TYPE, *PNSUDO_PRIVILEGES_MODE_TYPE; 49 | ``` 50 | 51 | ### MandatoryLabelType 參數 52 | 53 | 一個類型爲 NSUDO_MANDATORY_LABEL_TYPE 枚舉類型的值, 用以表示完整性標籤。 54 | 55 | ```cpp 56 | typedef enum class _NSUDO_MANDATORY_LABEL_TYPE 57 | { 58 | UNTRUSTED, 59 | LOW, 60 | MEDIUM, 61 | MEDIUM_PLUS, 62 | HIGH, 63 | SYSTEM, 64 | PROTECTED_PROCESS, 65 | } NSUDO_MANDATORY_LABEL_TYPE, *PNSUDO_MANDATORY_LABEL_TYPE; 66 | ``` 67 | 68 | ### ProcessPriorityClassType 參數 69 | 70 | 一個類型爲 NSUDO_PROCESS_PRIORITY_CLASS_TYPE 枚舉類型的值, 用以表示進程優先級。 71 | 72 | ```cpp 73 | typedef enum class _NSUDO_PROCESS_PRIORITY_CLASS_TYPE 74 | { 75 | IDLE, 76 | BELOW_NORMAL, 77 | NORMAL, 78 | ABOVE_NORMAL, 79 | HIGH, 80 | REALTIME, 81 | } NSUDO_PROCESS_PRIORITY_CLASS_TYPE, *PNSUDO_PROCESS_PRIORITY_CLASS_TYPE; 82 | ``` 83 | 84 | ### ShowWindowModeType 參數 85 | 86 | 一個類型爲 NSUDO_SHOW_WINDOW_MODE_TYPE 枚舉類型的值, 用以表示顯示窗口模式。 87 | 88 | ```cpp 89 | typedef enum class _NSUDO_SHOW_WINDOW_MODE_TYPE 90 | { 91 | DEFAULT, 92 | SHOW, 93 | HIDE, 94 | MAXIMIZE, 95 | MINIMIZE, 96 | } NSUDO_SHOW_WINDOW_MODE_TYPE, *PNSUDO_SHOW_WINDOW_MODE_TYPE; 97 | ``` 98 | 99 | ### WaitInterval 參數 100 | 101 | 等待創建的進程的時間 (毫秒)。 102 | 103 | ### CreateNewConsole 參數 104 | 105 | 如果這個參數設爲 TRUE, 新進程則在新的控制檯窗口運行, 否則則直接在父進程對應的控 106 | 制臺窗口運行 (默認設定)。 107 | 108 | ### CommandLine 參數 109 | 110 | 要執行的命令行, 對應的字符串最大長度爲 32k 即 32768 字符, 命令行所執行的應用的 111 | 路徑被限制爲 MAX_PATH 即 260 字符。 112 | 113 | ### CurrentDirectory 參數 114 | 115 | 用來指定進程的當前目錄, 需要使用完整路徑。可以使用 UNC 路徑。如果該參數爲 116 | nullptr, 新進程將使用調用該函數的進程所使用的當前路徑。 117 | 118 | ### 返回值 119 | 120 | HRESULT 類型。如果函數調用成功, 則返回值爲 S_OK。 121 | 122 | ## C# 接口 123 | 124 | 在你的項目中加載 M2.NSudo 程序集, 你就會知曉其用法。 125 | 126 | ### 代碼示例 127 | 128 | ```csharp 129 | using System; 130 | 131 | namespace M2.NSudo.Demo 132 | { 133 | class Program 134 | { 135 | static void Main(string[] args) 136 | { 137 | NSudoInstance instance = new NSudoInstance(); 138 | 139 | instance.CreateProcess( 140 | NSUDO_USER_MODE_TYPE.TRUSTED_INSTALLER, 141 | NSUDO_PRIVILEGES_MODE_TYPE.ENABLE_ALL_PRIVILEGES, 142 | NSUDO_MANDATORY_LABEL_TYPE.SYSTEM, 143 | NSUDO_PROCESS_PRIORITY_CLASS_TYPE.NORMAL, 144 | NSUDO_SHOW_WINDOW_MODE_TYPE.DEFAULT, 145 | 0, 146 | true, 147 | "cmd", 148 | null); 149 | 150 | Console.ReadKey(); 151 | } 152 | } 153 | } 154 | ``` 155 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: CI Build {Build} 2 | skip_commits: 3 | files: 4 | - '.github/**/*' 5 | - 'Website/**/*' 6 | - 'Scripts/**/*' 7 | - '*.md' 8 | image: Visual Studio 2019 9 | install: 10 | - >- 11 | git submodule update --init --recursive 12 | before_build: 13 | - >- 14 | dotnet nuget locals all --clear 15 | build: 16 | project: Source/Native/BuildAllTargets.proj 17 | parallel: true 18 | after_build: 19 | - >- 20 | 7z a -r NSudo_CI_Build_%APPVEYOR_BUILD_NUMBER%.zip ^ 21 | .\Source\Native\Output\*.exe ^ 22 | .\Source\Native\Output\*.dll ^ 23 | .\Source\Native\Output\*.pdb ^ 24 | .\Source\Native\Output\*.json 25 | artifacts: 26 | - path: NSudo_CI_Build_%APPVEYOR_BUILD_NUMBER%.zip 27 | --------------------------------------------------------------------------------