├── .github └── workflows │ └── codeql-analysis.yml ├── .gitignore ├── LICENSE ├── README.md └── src ├── AssemblyLocatorTestHarness ├── App.config ├── AssemblyLocatorTestHarness.csproj ├── Program.cs └── Properties │ └── AssemblyInfo.cs ├── IowaComputerGurus.Dnn.TelerikIdentifier ├── BuildScripts │ ├── MSBuild.Community.Tasks.Targets │ ├── MSBuild.Community.Tasks.dll │ └── ModulePackage.targets ├── Controllers │ └── ContentController.cs ├── IowaComputerGurus.Dnn.TelerikIdentifier.dnn ├── ManifestAssets │ ├── License.txt │ └── ReleaseNotes.txt ├── Models │ └── TelerikAnalysisModel.cs ├── Properties │ └── AssemblyInfo.cs ├── TelerikIdentifier.csproj ├── Views │ └── Content │ │ └── Index.cshtml └── packages.config └── TelerikIdentifier.sln /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | # For most projects, this workflow file will not need changing; you simply need 2 | # to commit it to your repository. 3 | # 4 | # You may wish to alter this file to override the set of languages analyzed, 5 | # or to provide custom queries or build logic. 6 | name: "CodeQL" 7 | 8 | on: 9 | push: 10 | branches: [main] 11 | pull_request: 12 | # The branches below must be a subset of the branches above 13 | branches: [main] 14 | schedule: 15 | - cron: '0 12 * * 0' 16 | 17 | jobs: 18 | analyze: 19 | name: Analyze 20 | runs-on: windows-latest 21 | 22 | strategy: 23 | fail-fast: false 24 | matrix: 25 | # Override automatic language detection by changing the below list 26 | # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] 27 | language: ['csharp'] 28 | # Learn more... 29 | # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection 30 | 31 | steps: 32 | - name: Checkout repository 33 | uses: actions/checkout@v2 34 | 35 | # Initializes the CodeQL tools for scanning. 36 | - name: Initialize CodeQL 37 | uses: github/codeql-action/init@v1 38 | with: 39 | languages: ${{ matrix.language }} 40 | # If you wish to specify custom queries, you can do so here or in a config file. 41 | # By default, queries listed here will override any specified in a config file. 42 | # Prefix the list here with "+" to use these queries and those in the config file. 43 | # queries: ./path/to/local/query, your-org/your-repo/queries@main 44 | 45 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 46 | # If this step fails, then you should remove it and run the build manually (see below) 47 | - name: Autobuild 48 | uses: github/codeql-action/autobuild@v1 49 | 50 | # ℹ️ Command-line programs to run using the OS shell. 51 | # 📚 https://git.io/JvXDl 52 | 53 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 54 | # and modify them (or add more) to build your code if your project 55 | # uses a compiled language 56 | 57 | #- run: | 58 | # make bootstrap 59 | # make release 60 | 61 | - name: Perform CodeQL Analysis 62 | uses: github/codeql-action/analyze@v1 63 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 IowaComputerGurus, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dnn Telerik Identifier 2 | This is a free utility that will look at all code currently running on your DNN Platform installation and identify any code that references Telerik. 3 | 4 | ## Purpose 5 | 6 | This tool has been provided to help those considering following the optional Telerik Removal steps to understand the potential risks within their own environment. 7 | 8 | ## Suggested Actions 9 | 10 | If this tool identifies any assemblies that are using Telerik it is recommended that you *NOT* attempt removal of Telerik until you are able to remove the offending code, or upgrade the code to a newer version that no longer has a dependency on Telerik. 11 | 12 | If the tool does NOT identify anything abnormal, you should still proceed with caution as there are still some situations that it might not detect, howeever, it is less likely. 13 | 14 | Once completed we suggest removing this module from your installation. 15 | 16 | ## Demo Video 17 | 18 | [![DEMO Video](https://img.youtube.com/vi/2zzpOFel2M0/0.jpg)](https://www.youtube.com/watch?v=2zzpOFel2M0 "Demo Video") 19 | 20 | ### Need Help? 21 | 22 | If you need help with your installation and the removal of Telerik be sure to reach out! -------------------------------------------------------------------------------- /src/AssemblyLocatorTestHarness/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/AssemblyLocatorTestHarness/AssemblyLocatorTestHarness.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {5AF021FD-225A-4223-973C-C986B316242F} 8 | Exe 9 | AssemblyLocatorTestHarness 10 | AssemblyLocatorTestHarness 11 | v4.7.2 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/AssemblyLocatorTestHarness/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Globalization; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Reflection; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace AssemblyLocatorTestHarness 11 | { 12 | class Program 13 | { 14 | private const string TestDirectory = "C:\\TestBin"; 15 | 16 | static void Main(string[] args) 17 | { 18 | var foundAssemblies = new List(); 19 | Console.WriteLine("Starting to Search"); 20 | var files = Directory.GetFiles(TestDirectory, "*.dll", SearchOption.AllDirectories); 21 | foreach (var file in files) 22 | { 23 | var references = Assembly.LoadFile(file).GetReferencedAssemblies(); 24 | var foundTelerik = 25 | references.Any(r => r.FullName.StartsWith("Telerik", true, CultureInfo.InvariantCulture)); 26 | if (!foundTelerik) 27 | continue; 28 | 29 | foundAssemblies.Add(Path.GetFileName(file)); 30 | } 31 | 32 | Console.WriteLine($"Found {foundAssemblies.Count} References"); 33 | Console.ReadLine(); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/AssemblyLocatorTestHarness/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("AssemblyLocatorTestHarness")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("HP Inc.")] 12 | [assembly: AssemblyProduct("AssemblyLocatorTestHarness")] 13 | [assembly: AssemblyCopyright("Copyright © HP Inc. 2020")] 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("5af021fd-225a-4223-973c-c986b316242f")] 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 | -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/BuildScripts/MSBuild.Community.Tasks.Targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | $(MSBuildProjectDirectory)\BuildScripts 7 | $(MSBuildProjectDirectory)\bin 8 | MSBuild.Community.Tasks.dll 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 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 | 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 | -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/BuildScripts/MSBuild.Community.Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IowaComputerGurus/DnnTelerikIdentifier/c616cf6a423a6905e9d33e73ab3259bdfc129445/src/IowaComputerGurus.Dnn.TelerikIdentifier/BuildScripts/MSBuild.Community.Tasks.dll -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/BuildScripts/ModulePackage.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 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 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/Controllers/ContentController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Globalization; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Reflection; 7 | using System.Web.Mvc; 8 | using DotNetNuke.Entities.Users; 9 | using DotNetNuke.Web.Mvc.Framework.Controllers; 10 | using IowaComputerGurus.Dnn.TelerikIdentifier.Models; 11 | 12 | namespace IowaComputerGurus.Dnn.TelerikIdentifier.Controllers 13 | { 14 | public class ContentController : DnnController 15 | { 16 | public ActionResult Index() 17 | { 18 | var model = new TelerikAnalysisModel(); 19 | var currentUser = UserController.Instance.GetCurrentUserInfo(); 20 | if (!currentUser.IsSuperUser) 21 | { 22 | model.AnalysisComplete = false; 23 | model.ErrorMessage = "You must be a host user to use this module."; 24 | return View(model); 25 | } 26 | 27 | model.AnalysisComplete = true; 28 | //Do the analysis 29 | var foundAssemblies = new List(); 30 | var files = Directory.GetFiles(Server.MapPath("~/bin"), "*.dll", SearchOption.AllDirectories); 31 | foreach (var file in files) 32 | { 33 | try 34 | { 35 | var references = Assembly.Load(System.IO.File.ReadAllBytes(file)).GetReferencedAssemblies(); 36 | var foundTelerik = 37 | references.Any(r => r.FullName.StartsWith("Telerik", true, CultureInfo.InvariantCulture)); 38 | if (!foundTelerik) 39 | continue; 40 | 41 | foundAssemblies.Add(Path.GetFileName(file)); 42 | } 43 | catch (Exception ex) 44 | { 45 | model.AssemblyAnalysisErrors.Add(new AssemblyAnalysisError 46 | {AssemblyName = Path.GetFileName(file), ErrorMessage = ex.Message}); 47 | } 48 | } 49 | 50 | //Filter out the known ones 51 | if (foundAssemblies.Contains("Telerik.Web.UI.Skins.dll")) 52 | { 53 | foundAssemblies.Remove("Telerik.Web.UI.Skins.dll"); 54 | model.ExpectedAssemblies.Add("Telerik.Web.UI.Skins.dll"); 55 | } 56 | if (foundAssemblies.Contains("DotNetNuke.Website.Deprecated.dll")) 57 | { 58 | foundAssemblies.Remove("DotNetNuke.Website.Deprecated.dll"); 59 | model.ExpectedAssemblies.Add("DotNetNuke.Website.Deprecated.dll"); 60 | } 61 | if (foundAssemblies.Contains("DotNetNuke.Web.Deprecated.dll")) 62 | { 63 | foundAssemblies.Remove("DotNetNuke.Web.Deprecated.dll"); 64 | model.ExpectedAssemblies.Add("DotNetNuke.Web.Deprecated.dll"); 65 | } 66 | if (foundAssemblies.Contains("DotNetNuke.Modules.DigitalAssets.dll")) 67 | { 68 | foundAssemblies.Remove("DotNetNuke.Modules.DigitalAssets.dll"); 69 | model.ExpectedAssemblies.Add("DotNetNuke.Modules.DigitalAssets.dll"); 70 | } 71 | 72 | if (foundAssemblies.Count > 0) 73 | model.UnexpectedAssemblies.AddRange(foundAssemblies); 74 | 75 | return View(model); 76 | } 77 | } 78 | } -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/IowaComputerGurus.Dnn.TelerikIdentifier.dnn: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Telerik Identifier 5 | A module to help identify possible Telerik dependencies 6 | 7 | 8 | IowaComputerGurus Inc. 9 | IowaComputerGurus Inc. 10 | http://www.iowacomputergurus.com 11 | webmaster@iowacomputergurus.com 12 | 13 | 14 | 15 | 16 | 09.03.02 17 | 18 | 19 | 20 | 21 | DesktopModules/MVC/IowaComputerGurus/TelerikIdentifier 22 | 23 | Resources.zip 24 | 25 | 26 | 27 | 28 | 29 | 30 | IowaComputerGurus.Dnn.TelerikIdentifier 31 | IowaComputerGurus/TelerikIdentifier 32 | 33 | 34 | 35 | 36 | Telerik Identifier 37 | 0 38 | 39 | 40 | 41 | IowaComputerGurus.Dnn.TelerikIdentifier.Controllers/Content/Index.mvc 42 | False 43 | 44 | View 45 | 46 | 47 | False 48 | 0 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | bin 59 | 60 | IowaComputerGurus.Dnn.TelerikIdentifier.dll 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/ManifestAssets/License.txt: -------------------------------------------------------------------------------- 1 | 

MIT License

2 | 3 |

Copyright (c) 2020 IowaComputerGurus, Inc.

4 | 5 |

Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions:

11 | 12 |

The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software.

14 | 15 |

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE.

-------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/ManifestAssets/ReleaseNotes.txt: -------------------------------------------------------------------------------- 1 | 

Version 01.00.01

2 |

Added additional support to handle improperly constructed module assemblies.

-------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/Models/TelerikAnalysisModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace IowaComputerGurus.Dnn.TelerikIdentifier.Models 4 | { 5 | public class TelerikAnalysisModel 6 | { 7 | public bool AnalysisComplete { get; set; } 8 | public string ErrorMessage { get; set; } 9 | public List ExpectedAssemblies { get; set; } = new List(); 10 | public List UnexpectedAssemblies { get; set; } = new List(); 11 | public List AssemblyAnalysisErrors { get; set; } = new List(); 12 | } 13 | 14 | public class AssemblyAnalysisError 15 | { 16 | public string AssemblyName { get; set; } 17 | public string ErrorMessage { get; set; } 18 | } 19 | } -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | ' Copyright (c) 2006-2012 IowaComputerGurus Inc. 3 | ' All rights reserved. 4 | ' 5 | ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 6 | ' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 7 | ' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 8 | ' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 9 | ' DEALINGS IN THE SOFTWARE. 10 | ' 11 | */ 12 | 13 | using System; 14 | using System.Reflection; 15 | using System.Runtime.InteropServices; 16 | 17 | // 18 | // General Information about an assembly is controlled through the following 19 | // set of attributes. Change these attribute values to modify the information 20 | // associated with an assembly. 21 | // 22 | [assembly: AssemblyTitle("DNN Telerik Identifier")] 23 | [assembly: AssemblyDescription("A reference inspection module.")] 24 | [assembly: AssemblyConfiguration("")] 25 | [assembly: AssemblyCompany("")] 26 | [assembly: AssemblyProduct("")] 27 | [assembly: AssemblyCopyright("2020 IowaComputerGurus Inc.")] 28 | [assembly: AssemblyTrademark("")] 29 | [assembly: AssemblyCulture("")] 30 | [assembly: ComVisible(false)] 31 | // 32 | // Version information for an assembly consists of the following four values: 33 | // 34 | // Major Version 35 | // Minor Version 36 | // Build Number 37 | // Revision 38 | // 39 | // You can specify all the values or you can default the Revision and Build Numbers 40 | // by using the '*' as shown below: 41 | 42 | [assembly: AssemblyVersion("01.00.00.*")] 43 | [assembly: AssemblyDelaySign(false)] 44 | [assembly: AssemblyKeyFile("")] 45 | [assembly: AssemblyKeyName("")] 46 | 47 | -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/TelerikIdentifier.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 10.0 6 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) 7 | 3.5 8 | 9 | 10 | 11 | 12 | 13 | Debug 14 | AnyCPU 15 | 9.0.30729 16 | 2.0 17 | {8356DA12-E259-4E53-A7F5-71821B8B513C} 18 | {349c5851-65df-11da-9384-00065b846f21};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 19 | Library 20 | IowaComputerGurus.Dnn.TelerikIdentifier 21 | IowaComputerGurus.Dnn.TelerikIdentifier 22 | 23 | 24 | v4.6.2 25 | 26 | 27 | true 28 | full 29 | DEBUG;TRACE 30 | bin\ 31 | 32 | 33 | 1 34 | false 35 | 36 | 37 | pdbonly 38 | TRACE 39 | true 40 | bin\ 41 | 42 | 43 | false 44 | 45 | 46 | 47 | ..\packages\DotNetNuke.Core.9.3.2\lib\net45\DotNetNuke.dll 48 | 49 | 50 | ..\packages\DotNetNuke.Web.9.3.2\lib\net45\DotNetNuke.Web.dll 51 | 52 | 53 | ..\packages\DotNetNuke.Web.Client.9.3.2\lib\net45\DotNetNuke.Web.Client.dll 54 | 55 | 56 | ..\packages\DotNetNuke.Web.Mvc.9.3.2\lib\net45\DotNetNuke.Web.Mvc.dll 57 | 58 | 59 | ..\packages\DotNetNuke.Web.9.3.2\lib\net45\DotNetNuke.WebUtility.dll 60 | 61 | 62 | ..\packages\DotNetNuke.Core.9.3.2\lib\net45\Microsoft.ApplicationBlocks.Data.dll 63 | 64 | 65 | ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll 66 | 67 | 68 | ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll 69 | 70 | 71 | 72 | 73 | 74 | 75 | ..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | ..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.Helpers.dll 84 | 85 | 86 | ..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll 87 | 88 | 89 | ..\packages\Microsoft.AspNet.Mvc.5.1.3\lib\net45\System.Web.Mvc.dll 90 | 91 | 92 | ..\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\System.Web.Razor.dll 93 | 94 | 95 | ..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.dll 96 | 97 | 98 | ..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Deployment.dll 99 | 100 | 101 | ..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Razor.dll 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 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | True 164 | 165 | 166 | 167 | 168 | 169 | zip 170 | IowaComputerGurus.Dnn.TelerikIdentifier 171 | BuildScripts 172 | 173 | 174 | 175 | 176 | -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/Views/Content/Index.cshtml: -------------------------------------------------------------------------------- 1 | @inherits DotNetNuke.Web.Mvc.Framework.DnnWebViewPage 2 | 3 | @if (Model.AnalysisComplete) 4 | { 5 |

Telerik Dependency Report

6 | if (Model.UnexpectedAssemblies.Count == 0) 7 | { 8 |
9 | Success! No unexpected dependencies on Telerik were discovered. You should have a reasonable expectation of being safe to uninstall Telerik per the 9.8.0 instructions. 10 |
11 | } 12 | else 13 | { 14 |
15 | WARNING! Dependencies on Telerik were discovered in assemblies that will NOT be addressed by un-installing per the instructions with 9.8.0. The list below includes all. 16 |
17 | 18 |
    19 | @foreach (var item in Model.UnexpectedAssemblies) 20 | { 21 |
  • @item
  • 22 | } 23 |
24 | } 25 | 26 | if (Model.AssemblyAnalysisErrors.Count > 0) 27 | { 28 |

Unexpected Errors Encountered!

29 | 30 |
31 | During processing we were unable to view the dependencies for the following assemblies. You will need to manually verify any Telerik dependencies of these items. 32 |
33 | 34 |
    35 | @foreach (var item in Model.AssemblyAnalysisErrors) 36 | { 37 |
  • @item.AssemblyName (@item.ErrorMessage)
  • 38 | } 39 |
40 | } 41 | 42 |
43 | This tool is provided AS-IS and no guarantee is provided, it MIGHT not be able to identify all possible dependencies that could cause issues. 44 |
45 | } 46 | else 47 | { 48 |
49 | You must be a host user to see results. 50 |
51 | } -------------------------------------------------------------------------------- /src/IowaComputerGurus.Dnn.TelerikIdentifier/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/TelerikIdentifier.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30517.126 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TelerikIdentifier", "IowaComputerGurus.Dnn.TelerikIdentifier\TelerikIdentifier.csproj", "{8356DA12-E259-4E53-A7F5-71821B8B513C}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLocatorTestHarness", "AssemblyLocatorTestHarness\AssemblyLocatorTestHarness.csproj", "{5AF021FD-225A-4223-973C-C986B316242F}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {8356DA12-E259-4E53-A7F5-71821B8B513C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {8356DA12-E259-4E53-A7F5-71821B8B513C}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {8356DA12-E259-4E53-A7F5-71821B8B513C}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {8356DA12-E259-4E53-A7F5-71821B8B513C}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {5AF021FD-225A-4223-973C-C986B316242F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {5AF021FD-225A-4223-973C-C986B316242F}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {5AF021FD-225A-4223-973C-C986B316242F}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {5AF021FD-225A-4223-973C-C986B316242F}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {374A2EBA-0D28-4DD5-A8E2-747082F67771} 30 | EndGlobalSection 31 | EndGlobal 32 | --------------------------------------------------------------------------------