Repository navigation
Conversation
A copy that was not admin asked for it and quit, with no limit. Started from the bar, the search or a file manager they opened (WinRust gives those the runas /trustlevel "basic user" token), UAC cannot raise the token: on a PC set to elevate without prompting each request quietly started another copy without rights, about one a second, forever (the busy cursor never stopped). - That token goes through Explorer instead (the shell's own token can be raised); the arguments wait in a note Explorer's copy picks up. - One request at most: a copy started for it and still not admin says so and stops.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A copy without admin rights asked for them and quit, with no limit. The bar, reshell and rs-launcher run with the
runas /trustlevel:0x20000token the installer gives them (common::launch::program), and so does what they open, e.g. rust-explorer from Win+E. UAC cannot raise that token (derived from an elevated one, it even reports TokenElevationTypeFull); on a PC set to elevate without prompting (ConsentPromptBehaviorAdmin = 0) each request quietly started another copy without rights, about one a second, forever: the busy cursor never stopped. Found through rust-explorer's "Analyze disk".explorer.exe wiztree.exe, with the arguments in a note (%LOCALAPPDATA%\WinRust\disk-start.txt, read within 30 s and deleted) since Explorer starts programs without any.--elevated); a copy started for it that is still not admin says so in a message box and stops.#142 fixes the token itself; this keeps WinRust Disk from looping whatever token it is started with. The message has no Spanish text here so this stands on
main; it comes with #144 (or I add it to whichever lands second).Test
On a PC with ConsentPromptBehaviorAdmin = 0, from an elevated shell:
runas /trustlevel:0x20000 "C:\Program Files\wiztree\wiztree.exe". Before: a new process every second. After: one window with admin rights (seen: the copy Explorer started asks, the third one opens).