├── .gitattributes ├── .github └── ISSUE_TEMPLATE │ └── bug_report.md ├── .gitignore ├── 1.png ├── 2.png ├── 3.png ├── CODE_OF_CONDUCT.md ├── LICENSE ├── MagentoScanner.sln ├── MagentoScanner ├── Async │ └── HttpAsync.cs ├── Core │ ├── DiscoverContent.cs │ ├── MageReport.cs │ ├── ResponseHeaders.cs │ ├── RobotsSitemap.cs │ ├── UsersEnumerator.cs │ └── VersionIdentifier.cs ├── GlobalSuppressions.cs ├── Helpers │ ├── ArgsHelper.cs │ ├── Extensions.cs │ ├── HashCalculator.cs │ ├── Helper.cs │ ├── Importance.cs │ └── Logger.cs ├── MagentoScanner.csproj ├── Models │ └── TargetOptions.cs ├── Program.cs ├── Properties │ └── launchSettings.json └── Resources │ ├── default_content.txt │ └── version_hashes.json └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc 262 | /MagentoScanner/Properties/PublishProfiles 263 | -------------------------------------------------------------------------------- /1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soufianetahiri/MagentoScanner/c7f0f1fa0585c752f56b85e8a05daa74d96bfe26/1.png -------------------------------------------------------------------------------- /2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soufianetahiri/MagentoScanner/c7f0f1fa0585c752f56b85e8a05daa74d96bfe26/2.png -------------------------------------------------------------------------------- /3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soufianetahiri/MagentoScanner/c7f0f1fa0585c752f56b85e8a05daa74d96bfe26/3.png -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at soufianetahiri@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /MagentoScanner.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.852 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MagentoScanner", "MagentoScanner\MagentoScanner.csproj", "{722B6034-32DD-4586-8C8B-481662B78AFB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {722B6034-32DD-4586-8C8B-481662B78AFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {722B6034-32DD-4586-8C8B-481662B78AFB}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {722B6034-32DD-4586-8C8B-481662B78AFB}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {722B6034-32DD-4586-8C8B-481662B78AFB}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {0B95557E-1EC2-4420-8BA2-5E8716887B61} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /MagentoScanner/Async/HttpAsync.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Core; 2 | using MagentoScanner.Helpers; 3 | using MagentoScanner.Models; 4 | using System; 5 | using System.Net.Http; 6 | using System.Threading.Tasks; 7 | 8 | 9 | namespace MagentoScanner.Async 10 | { 11 | public class HttpAsync 12 | { 13 | private readonly IHttpClientFactory _httpClientFactory; 14 | private readonly HttpClient client; 15 | public HttpAsync(IHttpClientFactory httpClientFactory, TargetOptions targetOptions) 16 | { 17 | _httpClientFactory = httpClientFactory; 18 | if (targetOptions.IgnoreSSl) 19 | { 20 | HttpClientHandler ignoreSSLHandler = new HttpClientHandler() 21 | { 22 | #pragma warning disable SCS0004 // Certificate Validation has been disabled 23 | ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => 24 | { 25 | return true; 26 | } 27 | #pragma warning restore SCS0004 // Certificate Validation has been disabled 28 | }; 29 | client = new HttpClient(ignoreSSLHandler); 30 | } 31 | else 32 | { 33 | client = Helper.InithttpClient(_httpClientFactory, targetOptions); 34 | } 35 | } 36 | public async Task Start(TargetOptions targetOptions) 37 | { 38 | try 39 | { 40 | if ((await InitClientAsync(targetOptions)).IsSuccessStatusCode || 41 | (await InitClientAsync(targetOptions)).StatusCode == System.Net.HttpStatusCode.BadRequest) 42 | { 43 | ResponseHeaders.PrintResponseHeaders(await InitClientAsync(targetOptions)); 44 | await RobotsSitemap.GetSitemaps(targetOptions, client); 45 | await VersionIdentifier.TryToDetectVersion(targetOptions, client); 46 | if (targetOptions.MageReport) 47 | { 48 | await MageReport.TestMegaReportAsync(targetOptions, client); 49 | } 50 | 51 | if (targetOptions.DiscoverContent) 52 | { 53 | await DiscoverContent.StartDiscoveryAsync(targetOptions, client); 54 | } 55 | } 56 | else 57 | { 58 | Logger.Log(Importance.Critical, string.Concat(targetOptions.Url) + " responded " + (await InitClientAsync(targetOptions)).StatusCode, ConsoleColor.Red); 59 | } 60 | Logger.Log(Importance.Log, " DONE, press any key to exit.", ConsoleColor.White); 61 | Console.ReadKey(); 62 | Environment.Exit(0); 63 | } 64 | catch (Exception ex) 65 | { 66 | Logger.Log(Importance.Critical, "Something went wrong: " + ex.Message, ConsoleColor.Red); 67 | Logger.Log(Importance.Critical, ex.Source + "\n" + ex.StackTrace, ConsoleColor.Red); 68 | Console.ReadKey(); 69 | Environment.Exit(0); 70 | } 71 | return null; 72 | } 73 | private async Task InitClientAsync(TargetOptions targetOptions) 74 | { 75 | try 76 | { 77 | return await client.GetAsync(new Uri(Helper.AddSlash(targetOptions)), HttpCompletionOption.ResponseHeadersRead); 78 | 79 | } 80 | catch (Exception ex) 81 | { 82 | if (ex.InnerException is System.Security.Authentication.AuthenticationException) 83 | { 84 | Logger.Log(Importance.Critical, "The remote certificate is invalid according to the validation procedure. Try turn on --ignore-ssl flag", ConsoleColor.Red); 85 | } 86 | else 87 | { 88 | Logger.Log(Importance.Critical, ex.InnerException.Message, ConsoleColor.Red); 89 | } 90 | Console.ReadKey(); 91 | Environment.Exit(0); 92 | } 93 | return null; 94 | } 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /MagentoScanner/Core/DiscoverContent.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Helpers; 2 | using MagentoScanner.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | using System.Net.Http; 7 | using System.Threading.Tasks; 8 | 9 | namespace MagentoScanner.Core 10 | { 11 | 12 | public static class DiscoverContent 13 | 14 | { 15 | private static readonly string[] admin_locations = { "admin", "index.php/admin", "administrator", "index.php/administrator", "backend","adminMage" }; 16 | private static readonly string[] customer_locations = { "customer/account/create/", "customer/account/login/", "customer/account/forgotpassword/"}; 17 | private static HttpClient _client = new HttpClient(); 18 | 19 | 20 | public static async Task StartDiscoveryAsync(TargetOptions targetOptions, HttpClient client) 21 | { 22 | await IdentifyEasyHits(targetOptions, client); 23 | 24 | Logger.Log(Importance.Log, " Starting content discovery (warming up) ", ConsoleColor.White); 25 | 26 | HttpResponseMessage[] results = await LoadContentAsync(targetOptions); 27 | try 28 | { 29 | foreach (var result in results) 30 | { 31 | if (result != null && (int) result.StatusCode != 404) 32 | { 33 | Console.ForegroundColor = ConsoleColor.Green; 34 | Console.WriteLine("\t\t " + "[" + (int) result.StatusCode + "] " + 35 | result.RequestMessage.RequestUri.ToString()); 36 | Console.ResetColor(); 37 | } 38 | } 39 | } 40 | catch (Exception ex) 41 | { 42 | Logger.Log(Importance.Warning, "Error during content discovery", ConsoleColor.Red); 43 | Logger.Log(Importance.Warning, ex.Message + ex.Source + ex.StackTrace, ConsoleColor.Red); 44 | } 45 | } 46 | 47 | private static async Task IdentifyEasyHits(TargetOptions targetOptions, HttpClient client) 48 | { 49 | Logger.Log(Importance.Log, " Identifying admin pannel... ", ConsoleColor.White); 50 | bool isAdminPathIdentified = false; 51 | for (int i = 0; i < admin_locations.Length; i++) 52 | { 53 | HttpResponseMessage result = await client.GetAsync(new Uri(string.Concat(Helper.AddSlash(targetOptions), admin_locations[i])), 54 | completionOption: HttpCompletionOption.ResponseHeadersRead); 55 | if (result.IsSuccessStatusCode) 56 | { 57 | Logger.Log(Importance.Info, "[" + (int)result.StatusCode + "] " + 58 | string.Concat(Helper.AddSlash(targetOptions), admin_locations[i]), ConsoleColor.Green); 59 | isAdminPathIdentified = true; 60 | } 61 | } 62 | if (!isAdminPathIdentified) 63 | { 64 | Logger.Log(Importance.Warning, "No admin panel identified.", ConsoleColor.DarkYellow); 65 | 66 | } 67 | 68 | Logger.Log(Importance.Log, " Identifying customer related screens... ", ConsoleColor.White); 69 | bool isCustomerPathIdentified = false; 70 | for (int i = 0; i < customer_locations.Length; i++) 71 | { 72 | HttpResponseMessage result = await client.GetAsync(new Uri(string.Concat(Helper.AddSlash(targetOptions), customer_locations[i])), 73 | HttpCompletionOption.ResponseHeadersRead); 74 | if (result.IsSuccessStatusCode) 75 | { 76 | Logger.Log(Importance.Info, "[" + (int)result.StatusCode + "] " + 77 | string.Concat(Helper.AddSlash(targetOptions), customer_locations[i]), ConsoleColor.Green); 78 | isCustomerPathIdentified = true; 79 | } 80 | } 81 | if (!isCustomerPathIdentified) 82 | { 83 | Logger.Log(Importance.Warning, "No customer related screen identified.", ConsoleColor.DarkYellow); 84 | 85 | } 86 | } 87 | 88 | 89 | //Please choose a better name than this 90 | private static async Task GetData(string url) 91 | { 92 | //Handling stupidly stupid Unrecognized Response 93 | try 94 | { 95 | return await _client.GetAsync(url); 96 | } 97 | catch 98 | { 99 | return null; 100 | } 101 | } 102 | 103 | private static async Task LoadContentAsync(TargetOptions targetOptions) 104 | { 105 | string content = Path.Combine(AppDomain.CurrentDomain.BaseDirectory.CurrentProjectFolder(), "../Resources/default_content.txt"); 106 | if (File.Exists(content)) 107 | { 108 | string[] paths = File.ReadAllLines(content); 109 | var tasks = new List>(); 110 | for (int i = 0; i < paths.Length; i++) 111 | { 112 | tasks.Add(GetData(string.Concat(Helper.AddSlash(targetOptions), paths[i]))); 113 | Console.Write("\r[{0}] Preparing {1} requests", DateTime.Now.ToString("HH:mm:ss"), i); 114 | } 115 | Console.WriteLine("\n[{0}] {1}", DateTime.Now.ToString("HH:mm:ss"),"Analyzing responses, it may takes sometime so PLEASE WAIT :-)"); 116 | return await Task.WhenAll(tasks); 117 | } 118 | return null; 119 | } 120 | } 121 | } 122 | 123 | -------------------------------------------------------------------------------- /MagentoScanner/Core/MageReport.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Helpers; 2 | using MagentoScanner.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Net.Http; 7 | using System.Threading.Tasks; 8 | 9 | namespace MagentoScanner.Core 10 | { 11 | public static class MageReport 12 | { 13 | private const string refresh = "&refresh=1"; 14 | private static int scanRetry = 0; 15 | 16 | 17 | public static async Task TestMegaReportAsync(TargetOptions targetOptions, HttpClient client) 18 | { 19 | Logger.Log(Importance.Log, " Scanning Patches... ", ConsoleColor.White); 20 | await Scan(targetOptions, client); 21 | } 22 | 23 | private static async Task Scan(TargetOptions targetOptions, HttpClient client) 24 | { 25 | HttpResponseMessage result = await client.GetAsync(new Uri(uriString: string.Concat("https://www.magereport.com/scan/result/?s=", 26 | string.Concat(Helper.AddSlash(targetOptions), refresh))), 27 | HttpCompletionOption.ResponseHeadersRead); 28 | if (!result.IsSuccessStatusCode) 29 | { 30 | scanRetry++; 31 | if (scanRetry < 2) 32 | { 33 | Logger.Log(Importance.Warning, "Unable to connect. Retrying...", ConsoleColor.DarkYellow); 34 | result = await client.GetAsync(new Uri(string.Concat("https://www.magereport.com/scan/result/?s=", 35 | string.Concat(Helper.AddSlash(targetOptions)))), 36 | HttpCompletionOption.ResponseHeadersRead); 37 | if (result.IsSuccessStatusCode) 38 | { 39 | ParseResponse(await result.Content.ReadAsStringAsync()); 40 | } 41 | else 42 | { 43 | Logger.Log(Importance.Warning, "Unable to scan for patches. Are you sure it's a Magento ?", ConsoleColor.DarkYellow); 44 | } 45 | } 46 | } 47 | else 48 | { 49 | ParseResponse(await result.Content.ReadAsStringAsync()); 50 | } 51 | scanRetry = 0; 52 | } 53 | 54 | private static void ParseResponse(string mixedString) 55 | { 56 | List output = mixedString.Replace("'", string.Empty).Split('{', '}').Where(x => !string.IsNullOrEmpty(x)).ToList(); 57 | bool SecPatchFound = false; 58 | for (int i = 0; i < output.Count; i++) 59 | { 60 | if (output[i].Trim().Contains("security.supee")) 61 | { 62 | SecPatchFound = true; 63 | string idPatch = output[i].Split("security.supee")[1].Replace(":", string.Empty).Trim(); 64 | string infoUrl = string.Format("https://magentary.com/glossary/supee-{0}/", idPatch); 65 | Enum.TryParse(ExtractValues(output[i + 1].Trim().Replace("\"", string.Empty), "resultString:"), true, out PatchStats patchStats); 66 | string msg = string.Format("Security Patch {0} ({1}). More info @ {2}", idPatch, patchStats, infoUrl); 67 | Enum.TryParse(ExtractValues(output[i + 1].Trim().Replace("\"", string.Empty), "riskRating:"), true, out Criticity criticity); 68 | PrintPatches(patchStats, msg); 69 | PrintRisk(criticity); 70 | } 71 | } 72 | 73 | if (!SecPatchFound) 74 | { 75 | Logger.Log(Importance.Critical, "Security Patches could not be scanned. Retrying...", ConsoleColor.DarkRed); 76 | } 77 | 78 | for (int i = 0; i < output.Count; i++) 79 | { 80 | if (output[i].Trim().Replace("\"", string.Empty).Contains("security.magversion:")) 81 | { 82 | Logger.Log(Importance.Info, "Confirming Magento version : " + ExtractValues(output[i + 1].Trim().Replace("\"", string.Empty), "resultString:"), ConsoleColor.Green); 83 | Enum.TryParse(ExtractValues(output[i + 1].Trim().Replace("\"", string.Empty), "riskRating:"), true, out Criticity criticity); 84 | PrintRisk(criticity); 85 | } 86 | } 87 | } 88 | 89 | private static string ExtractValues(string re, string key) 90 | { 91 | //dirty lazy way because of why not. 92 | try 93 | { 94 | return re.Split(new string[] { key }, StringSplitOptions.None)[1] 95 | .Split(',')[0].Replace(" ", string.Empty); 96 | } 97 | catch 98 | { 99 | return re.Split(new string[] { key }, StringSplitOptions.None)[0] 100 | .Split(',')[0].Replace(" ", string.Empty); 101 | } 102 | } 103 | private static void PrintPatches(PatchStats patchStats, string data) 104 | { 105 | switch (patchStats) 106 | { 107 | case PatchStats.NotPatched: 108 | PrintPatch(ConsoleColor.Red, data); 109 | break; 110 | case PatchStats.Installed: 111 | case PatchStats.Patched: 112 | PrintPatch(ConsoleColor.Green, data); 113 | break; 114 | case PatchStats.Unknown: 115 | default: 116 | PrintPatch(ConsoleColor.DarkGray, data); 117 | break; 118 | } 119 | } 120 | private static void PrintRisk(Criticity criticity) 121 | { 122 | switch (criticity) 123 | { 124 | 125 | case Criticity.Low: 126 | Print(Criticity.Low, ConsoleColor.Yellow); 127 | break; 128 | case Criticity.High: 129 | Print(Criticity.High, ConsoleColor.Red); 130 | break; 131 | case Criticity.Unknown: 132 | default: 133 | Print(Criticity.Unknown, ConsoleColor.DarkGray); 134 | break; 135 | } 136 | } 137 | 138 | private static void PrintPatch(ConsoleColor consoleColor, string data) 139 | { 140 | Console.ForegroundColor = consoleColor; 141 | Console.WriteLine("\t\t " + data); 142 | Console.ResetColor(); 143 | } 144 | private static void Print(Criticity criticity, ConsoleColor consoleColor) 145 | { 146 | Console.ForegroundColor = consoleColor; 147 | Console.WriteLine("\t\t Risk Rating: " + criticity); 148 | Console.ResetColor(); 149 | } 150 | 151 | } 152 | } 153 | -------------------------------------------------------------------------------- /MagentoScanner/Core/ResponseHeaders.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Helpers; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Net.Http; 5 | 6 | namespace MagentoScanner.Core 7 | { 8 | public static class ResponseHeaders 9 | { 10 | public static void PrintResponseHeaders(HttpResponseMessage result) 11 | { 12 | Logger.Log(Importance.Log, " Response Headers:" , ConsoleColor.White); 13 | foreach (KeyValuePair> headerItem in result.Headers) 14 | { 15 | IEnumerable values; 16 | string HeaderItemValue = ""; 17 | values = result.Headers.GetValues(headerItem.Key); 18 | if (values != null) 19 | { 20 | foreach (string valueItem in values) 21 | { 22 | HeaderItemValue = HeaderItemValue + valueItem; 23 | } 24 | } 25 | Console.WriteLine("\t\t "+headerItem.Key + " : " + HeaderItemValue); 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /MagentoScanner/Core/RobotsSitemap.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Helpers; 2 | using MagentoScanner.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Net.Http; 6 | using System.Text; 7 | 8 | namespace MagentoScanner.Core 9 | { 10 | public static class RobotsSitemap 11 | { 12 | public static async System.Threading.Tasks.Task GetSitemaps(TargetOptions targetOptions, HttpClient client) 13 | { 14 | HttpResponseMessage result = await client.GetAsync(new Uri(string.Concat(Helper.AddSlash(targetOptions), "robots.txt")), HttpCompletionOption.ResponseHeadersRead); 15 | if (result.IsSuccessStatusCode) 16 | { 17 | var rTxt = await result.Content.ReadAsStringAsync(); 18 | Logger.Log(Importance.Log, " Robots.txt found ", ConsoleColor.White); 19 | if (rTxt.Contains("Sitemap",StringComparison.CurrentCultureIgnoreCase)) 20 | { 21 | string[] sitemaps = rTxt.Split("Sitemap:", StringSplitOptions.RemoveEmptyEntries); 22 | Logger.Log(Importance.Log, " Sitemap found: " , ConsoleColor.White); 23 | for (int i = 1; i < sitemaps.Length ; i++) 24 | { 25 | if (!string.IsNullOrEmpty(sitemaps[i])) 26 | { 27 | Console.ForegroundColor = ConsoleColor.Green; 28 | Console.WriteLine("\t\t " + sitemaps[i]); 29 | Console.ResetColor(); 30 | } 31 | 32 | } 33 | } 34 | else 35 | { 36 | Logger.Log(Importance.Warning, "Sitemap is not declared in robots.txt", ConsoleColor.DarkYellow); 37 | } 38 | } 39 | else 40 | { 41 | Logger.Log(Importance.Warning, "No robots.txt found", ConsoleColor.DarkYellow); 42 | } 43 | } 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /MagentoScanner/Core/UsersEnumerator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace MagentoScanner.Core 6 | { 7 | class UsersEnumerator 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /MagentoScanner/Core/VersionIdentifier.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Helpers; 2 | using MagentoScanner.Models; 3 | using Newtonsoft.Json; 4 | using Newtonsoft.Json.Linq; 5 | using System; 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using System.IO; 9 | using System.Net.Http; 10 | using System.Threading.Tasks; 11 | 12 | namespace MagentoScanner.Core 13 | { 14 | public static class VersionIdentifier 15 | { 16 | public static async Task TryToDetectVersion(TargetOptions targetOptions, HttpClient client) 17 | { 18 | Logger.Log(Importance.Log, " Identifying Magento version...", ConsoleColor.White); 19 | 20 | bool versionIdentified = false; 21 | //Try direct access Magento 2.x 22 | //https://magento.stackexchange.com/questions/60476/determine-magento-version-without-access-to-code-base 23 | string u = string.Concat(Helper.AddSlash(targetOptions), "magento_version"); 24 | HttpResponseMessage result = await client.GetAsync(new Uri(u), HttpCompletionOption.ResponseHeadersRead); 25 | if (result.IsSuccessStatusCode && result.RequestMessage.RequestUri == new Uri(u)) 26 | { 27 | string tmpRslt = await result.Content.ReadAsStringAsync(); 28 | if (!tmpRslt.Contains("")) 29 | { 30 | Logger.Log(Importance.Info, "Magento version used: " + tmpRslt, ConsoleColor.Green); 31 | versionIdentified = true; 32 | } 33 | } 34 | //Redirection? 35 | else if (result.IsSuccessStatusCode && result.RequestMessage.RequestUri != new Uri(u)) 36 | { 37 | HttpResponseMessage result2 = await client.GetAsync( 38 | string.Concat(result.RequestMessage.RequestUri.ToString(), "magento_version"), 39 | HttpCompletionOption.ResponseHeadersRead); 40 | 41 | string tmpRslt = await result2.Content.ReadAsStringAsync(); 42 | if (!tmpRslt.Contains("")) 43 | { 44 | Logger.Log(Importance.Info, "Magento version used: " + tmpRslt, ConsoleColor.Green); 45 | versionIdentified = true; 46 | } 47 | } 48 | 49 | try 50 | { 51 | if (!versionIdentified) 52 | { 53 | //start version identification 54 | JObject versionHashs = LoadVersionHash(); 55 | foreach (KeyValuePair jToken in versionHashs) 56 | { 57 | result = await client.GetAsync( 58 | new Uri(string.Concat(Helper.AddSlash(targetOptions), jToken.Key)), 59 | HttpCompletionOption.ResponseHeadersRead); 60 | if (result.IsSuccessStatusCode) 61 | { 62 | string fileHash = HashCalculator.CalculateMD5(await result.Content.ReadAsByteArrayAsync()) 63 | .ToLower(); 64 | if (jToken.Value.SelectToken(fileHash) != null) 65 | { 66 | Logger.Log(Importance.Info, 67 | "Magento version used: " + jToken.Value.SelectToken(fileHash).Value(), 68 | ConsoleColor.Green); 69 | versionIdentified = true; 70 | break; 71 | } 72 | } 73 | } 74 | } 75 | } 76 | catch (Exception ex) 77 | { 78 | Logger.Log(Importance.Warning, "Error while determining Magento version", ConsoleColor.Red); 79 | Logger.Log(Importance.Warning, ex.Message + ex.Source + ex.StackTrace, ConsoleColor.Red); 80 | } 81 | 82 | if (!versionIdentified) 83 | { 84 | Logger.Log(Importance.Warning, "Unable to determine Magento version", ConsoleColor.DarkYellow); 85 | } 86 | } 87 | 88 | private static JObject LoadVersionHash() 89 | { 90 | string version_hashes = 91 | Path 92 | .Combine(AppDomain.CurrentDomain.BaseDirectory.CurrentProjectFolder(), 93 | "../Resources/version_hashes.json"); 94 | 95 | if (File.Exists(version_hashes)) 96 | { 97 | using (StreamReader file = File.OpenText(version_hashes)) 98 | using (JsonTextReader reader = new JsonTextReader(file)) 99 | { 100 | return (JObject) JToken.ReadFrom(reader); 101 | } 102 | } 103 | 104 | Logger.Log(Importance.Critical, "version_hashes.json file not found!", ConsoleColor.Red); 105 | return null; 106 | } 107 | } 108 | } -------------------------------------------------------------------------------- /MagentoScanner/GlobalSuppressions.cs: -------------------------------------------------------------------------------- 1 |  2 | // This file is used by Code Analysis to maintain SuppressMessage 3 | // attributes that are applied to this project. 4 | // Project-level suppressions either have no target or are given 5 | // a specific target and scoped to a namespace, type, member, etc. 6 | 7 | [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Security", "SCS0006:Weak hashing function", Justification = "", Scope = "member", Target = "~M:MagentoScanner.Helpers.HashCalculator.CalculateMD5(System.String)~System.String")] 8 | 9 | -------------------------------------------------------------------------------- /MagentoScanner/Helpers/ArgsHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MagentoScanner.Models; 3 | using MatthiWare.CommandLine; 4 | 5 | namespace MagentoScanner.Helpers 6 | { 7 | public static class ArgsHelper 8 | { 9 | public static TargetOptions ParseArgs(string[] args) 10 | { 11 | var options = new CommandLineParserOptions { 12 | AppName = "MagentoScanner", 13 | }; 14 | 15 | var parser = new CommandLineParser(options); 16 | var res = parser.Parse(args); 17 | if(res.HasErrors) 18 | { 19 | Console.ReadKey(); 20 | Environment.Exit(-1); 21 | } 22 | return res.Result; 23 | 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MagentoScanner/Helpers/Extensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Text; 5 | 6 | namespace MagentoScanner.Helpers 7 | { 8 | public static class Extensions 9 | { 10 | /// 11 | /// Given a folder name return all parents according to level 12 | /// 13 | /// Sub-folder name 14 | /// Level to move up the folder chain 15 | /// List of folders dependent on level parameter 16 | public static string UpperFolder(this string FolderName, Int32 level) 17 | { 18 | List folderList = new List(); 19 | 20 | while (!string.IsNullOrEmpty(FolderName)) 21 | { 22 | var temp = Directory.GetParent(FolderName); 23 | if (temp == null) 24 | { 25 | break; 26 | } 27 | FolderName = Directory.GetParent(FolderName).FullName; 28 | folderList.Add(FolderName); 29 | } 30 | 31 | if (folderList.Count > 0 && level > 0) 32 | { 33 | if (level - 1 <= folderList.Count - 1) 34 | { 35 | return folderList[level - 1]; 36 | } 37 | else 38 | { 39 | return FolderName; 40 | } 41 | } 42 | else 43 | { 44 | return FolderName; 45 | } 46 | } 47 | public static string CurrentProjectFolder(this string sender) 48 | { 49 | return sender.UpperFolder(3); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /MagentoScanner/Helpers/HashCalculator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Security.Cryptography; 4 | using System.Threading.Tasks; 5 | 6 | namespace MagentoScanner.Helpers 7 | { 8 | public static class HashCalculator 9 | { 10 | public static string CalculateMD5(byte[] fileBytes) 11 | { 12 | #pragma warning disable SCS0006 // Weak hashing function 13 | using (MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider()) 14 | #pragma warning restore SCS0006 // Weak hashing function 15 | { 16 | using (MemoryStream ms = new MemoryStream(fileBytes)) 17 | using (BufferedStream bs = new BufferedStream(ms, 100_000)) 18 | { 19 | return BitConverter.ToString(md5.ComputeHash(bs)).Replace("-", string.Empty); 20 | } 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MagentoScanner/Helpers/Helper.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Models; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.Net; 6 | using System.Net.Http; 7 | using System.Text; 8 | 9 | namespace MagentoScanner.Helpers 10 | { 11 | public static class Helper 12 | { 13 | private static string GetUri(this string s) 14 | { 15 | return new UriBuilder(s).Uri.ToString(); 16 | } 17 | public static string AddSlash(TargetOptions targetOptions) { 18 | 19 | if (!string.IsNullOrEmpty( targetOptions?.Url) ) 20 | { 21 | targetOptions.Url = GetUri(targetOptions.Url); 22 | if (targetOptions.Url.EndsWith("/")) 23 | { 24 | return targetOptions.Url; 25 | } 26 | else 27 | { 28 | return targetOptions.Url + "/"; 29 | } 30 | } 31 | return null; 32 | } 33 | 34 | public static HttpClient InithttpClient(IHttpClientFactory httpClientFactory , TargetOptions targetOptions) 35 | { 36 | HttpClient client = httpClientFactory.CreateClient("MagentoScanner"); 37 | 38 | //Add CustomHeader 39 | if (targetOptions.CustomHeaders != null) 40 | { 41 | foreach (DictionaryEntry header in targetOptions.CustomHeaders) 42 | { 43 | client.DefaultRequestHeaders.Add(header.Key.ToString(), header.Value.ToString()); 44 | } 45 | } 46 | //Add CustomCookies 47 | if (!string.IsNullOrEmpty(targetOptions.Cookies)) 48 | { 49 | AddHeader(client, "Cookie", targetOptions.Cookies); 50 | 51 | } 52 | return client; 53 | } 54 | 55 | private static HttpClient AddHeader(HttpClient client, string headerName, string headerValue) 56 | { 57 | client.DefaultRequestHeaders.Add(headerName,headerValue ); 58 | return client; 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /MagentoScanner/Helpers/Importance.cs: -------------------------------------------------------------------------------- 1 | namespace MagentoScanner.Helpers 2 | { 3 | public enum Importance 4 | { 5 | Info, 6 | Warning, 7 | Critical, 8 | Log 9 | } 10 | public enum Criticity 11 | { 12 | Unknown, 13 | Low, 14 | High 15 | } 16 | public enum PatchStats 17 | { 18 | Unknown, 19 | NotPatched, 20 | Patched, 21 | Installed, 22 | BackendUrlRequired 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MagentoScanner/Helpers/Logger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MagentoScanner.Helpers 4 | { 5 | public static class Logger 6 | { 7 | public static void Log(Importance importance, string data, ConsoleColor consoleColor) 8 | { 9 | Console.ForegroundColor = consoleColor; 10 | Console.WriteLine(string.Format("[{0}] [{1}] {2}", DateTime.Now.ToString("HH:mm:ss"), importance.ToString(), data)); 11 | Console.ResetColor(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /MagentoScanner/MagentoScanner.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp5.0 6 | latest 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /MagentoScanner/Models/TargetOptions.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Specialized; 2 | using System.Text.RegularExpressions; 3 | using MatthiWare.CommandLine.Core.Attributes; 4 | 5 | namespace MagentoScanner.Models 6 | { 7 | public class TargetOptions 8 | { 9 | [Required, Name("u", "url"), Description("Target URL (e.g. 'http://www.site.com/')"), Required] 10 | public string Url { get; set; } 11 | 12 | [Name("ssl", "ignore-ssl"), Description("Ignore SSL errors")] 13 | 14 | public bool IgnoreSSl { get; set; } 15 | [Name("mr", "mage-report"), Description("Scan target using https://www.magereport.com/ ")] 16 | public bool MageReport { get; set; } 17 | [Name("d", "discover"), Description("Search for some default locations (admin panels, customer panels...)")] 18 | 19 | public bool DiscoverContent { get; set; } 20 | 21 | [Name("ua", "user-agent"), Description("HTTP User-Agent header value")] 22 | public string UserAgent 23 | { 24 | get { return string.Empty; } 25 | set 26 | { 27 | if (this.CustomHeaders != null) 28 | if (!CustomHeaders.Contains("user-agent")) 29 | CustomHeaders.Add("user-agent", value); 30 | } 31 | } 32 | 33 | [Name("H" ,"headers"), Description("List of headers (e.g. \"Accept-Language: fr|ETag: 123\")")] 34 | public string Headers 35 | { 36 | get { return string.Empty; } // CommandeLineParser need a getter 37 | set 38 | { 39 | if(!string.IsNullOrWhiteSpace(value)) 40 | { 41 | var dics = new ListDictionary(); 42 | var regex = new Regex("(.+):(.+)"); 43 | if (value.Contains(@"|")) 44 | { 45 | foreach (var line in value.Split(@"|")) 46 | { 47 | CustomHeaderBuilder(dics, regex, line); 48 | } 49 | } 50 | else // have one line 51 | { 52 | CustomHeaderBuilder(dics, regex, value); 53 | } 54 | this.CustomHeaders = dics; 55 | } 56 | } 57 | } 58 | 59 | [Name("c", "cookie"), Description("HTTP cookie header")] 60 | public string Cookies { get; set; } 61 | 62 | internal ListDictionary CustomHeaders 63 | { 64 | get; set; 65 | } 66 | 67 | private void CustomHeaderBuilder(ListDictionary dics, Regex regex, string line) 68 | { 69 | if (regex == null || string.IsNullOrWhiteSpace(line)) 70 | return; 71 | var match = regex.Match(line); 72 | if(match.Success) 73 | dics.Add(match.Groups[1].Value.Trim().ToLower(), match.Groups[2].Value.Trim()); 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /MagentoScanner/Program.cs: -------------------------------------------------------------------------------- 1 | using MagentoScanner.Async; 2 | using MagentoScanner.Helpers; 3 | using MagentoScanner.Models; 4 | using Microsoft.Extensions.DependencyInjection; 5 | using System; 6 | using System.Net; 7 | using System.Net.Http; 8 | using System.Net.Http.Headers; 9 | using System.Net.Security; 10 | using System.Runtime.InteropServices; 11 | using System.Threading.Tasks; 12 | 13 | namespace MagentoScanner 14 | { 15 | class Program 16 | { 17 | static async Task Main(string[] args) 18 | { 19 | if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) 20 | { 21 | Console.SetWindowSize( 22 | Math.Min(140, Console.LargestWindowWidth), 23 | Math.Min(50, Console.LargestWindowHeight)); 24 | Console.Title = "MagentoScanner v0.1"; 25 | } 26 | 27 | string banner = @" 28 | __ __ _______ _______ _______ __ _ _______ _______ _______ _______ _______ __ _ __ _ _______ ______ 29 | | |_| || _ || || || | | || || || || || _ || | | || | | || || _ | 30 | | || |_| || ___|| ___|| |_| ||_ _|| _ || _____|| || |_| || |_| || |_| || ___|| | || 31 | | || || | __ | |___ | | | | | | | || |_____ | || || || || |___ | |_||_ 32 | | || || || || ___|| _ | | | | |_| ||_____ || _|| || _ || _ || ___|| __ | 33 | | ||_|| || _ || |_| || |___ | | | | | | | | _____| || |_ | _ || | | || | | || |___ | | | | 34 | |_| |_||__| |__||_______||_______||_| |__| |___| |_______||_______||_______||__| |__||_| |__||_| |__||_v_0.1_||___| |_| 35 | "; 36 | 37 | Console.WriteLine(banner); 38 | ServiceProvider serviceProvider = new ServiceCollection().AddHttpClient().BuildServiceProvider(); 39 | IHttpClientFactory httpClientFactory = serviceProvider.GetService(); 40 | TargetOptions targetOptions = ArgsHelper.ParseArgs(args); 41 | Logger.Log(Importance.Log, " Starting scan @ " + DateTime.Now, ConsoleColor.White); 42 | Logger.Log(Importance.Log, " Target set to " + targetOptions.Url, ConsoleColor.White); 43 | Console.WriteLine(string.Empty); 44 | await Task.Run(() => new HttpAsync(httpClientFactory, targetOptions).Start(targetOptions)); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /MagentoScanner/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "MagentoScanner": { 4 | "commandName": "Project" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /MagentoScanner/Resources/default_content.txt: -------------------------------------------------------------------------------- 1 | includes 2 | includes/config.php 3 | includes/.htaccess 4 | get.php 5 | cron.sh 6 | cron.php 7 | media/xmlconnect 8 | media/xmlconnect/system 9 | install.php 10 | downloader/.htaccess 11 | downloader/config.ini 12 | downloader/target.xml 13 | downloader/index.php 14 | pkginfo 15 | pkginfo/.htaccess 16 | pkginfo/Mage_All.txt 17 | pkginfo/Mage_All_Latest.txt 18 | var 19 | var/.htaccess 20 | index.php.sample 21 | LICENSE.txt 22 | media/.htaccess 23 | media/dhl 24 | media/downloadable 25 | media/downloadable/.htaccess 26 | media/customer 27 | media/customer/.htaccess 28 | skin/adminhtml 29 | skin/adminhtml/default/default/xmlconnect 30 | skin/adminhtml/default/default/images/xmlconnect 31 | skin/adminhtml/default/default/media/uploader.swf 32 | skin/adminhtml/default/default/media/flex.swf 33 | skin/adminhtml/default/default/media/editor.swf 34 | skin/adminhtml/default/default/media/uploaderSingle.swf 35 | skin/frontend/base/default/images/xmlconnect 36 | skin/frontend/base/default/images/cookies 37 | skin/frontend/base/default/images/widgets 38 | skin/frontend/default/default 39 | skin/frontend/default/default/images/xmlconnect 40 | skin/frontend/default/french 41 | skin/install 42 | skin/install/default 43 | skin/install/default/default 44 | .htaccess 45 | .htaccess.sample 46 | api.php 47 | errors 48 | errors/503.php 49 | errors/local.xml.sample 50 | errors/report.php 51 | errors/404.php 52 | errors/.htaccess 53 | errors/processor.php 54 | errors/default 55 | errors/default/404.phtml 56 | errors/default/page.phtml 57 | errors/design.xml 58 | errors/default/report.phtml 59 | lib/Magento/Db 60 | lib/Magento/Db/Object 61 | lib/Magento/Db/Object/Interface.php 62 | lib/Magento/Db/Object/Trigger.php 63 | lib/Magento/Db/Object/Table.php 64 | lib/Magento/Db/Object/View.php 65 | lib/Magento/Db/Object.php 66 | lib/Magento/Db/Sql 67 | lib/Magento/Db/Sql/Select.php 68 | lib/Magento/Db/Sql/Trigger.php 69 | lib/Magento/Db/Adapter 70 | lib/Magento/Db/Adapter/Pdo 71 | lib/Magento/Db/Adapter/Pdo/Mysql.php 72 | lib/Magento/Exception.php 73 | lib/Magento/Profiler.php 74 | lib/Magento/Profiler 75 | lib/Magento/Profiler/OutputAbstract.php 76 | lib/Magento/Profiler/Output 77 | lib/Magento/Profiler/Output/Csvfile.php 78 | lib/Magento/Profiler/Output/Html.php 79 | lib/Magento/Profiler/Output/Firebug.php 80 | lib/3Dsecure 81 | lib/3Dsecure/XMLParser.php 82 | lib/3Dsecure/CentinelErrors.php 83 | lib/3Dsecure/CentinelClient.php 84 | lib/phpseclib 85 | lib/phpseclib/Crypt 86 | lib/phpseclib/Crypt/Hash.php 87 | lib/phpseclib/Crypt/RC4.php 88 | lib/phpseclib/Crypt/TripleDES.php 89 | lib/phpseclib/Crypt/AES.php 90 | lib/phpseclib/Crypt/Random.php 91 | lib/phpseclib/Crypt/RSA.php 92 | lib/phpseclib/Crypt/Rijndael.php 93 | lib/phpseclib/Crypt/DES.php 94 | lib/phpseclib/Math 95 | lib/phpseclib/Math/BigInteger.php 96 | lib/phpseclib/PHP 97 | lib/phpseclib/Net 98 | lib/phpseclib/Net/SFTP.php 99 | lib/phpseclib/Net/SSH2.php 100 | lib/phpseclib/Net/SSH1.php 101 | lib/Mage 102 | lib/Mage/System 103 | lib/Mage/System/Dirs.php 104 | lib/Mage/System/Ftp.php 105 | lib/Mage/System/Args.php 106 | lib/Mage/Backup 107 | lib/Mage/Backup/Abstract.php 108 | lib/Mage/Backup/Exception.php 109 | lib/Mage/Backup/Filesystem.php 110 | lib/Mage/Backup/Interface.php 111 | lib/Mage/Backup/Media.php 112 | lib/Mage/Backup/Db.php 113 | lib/Mage/Backup/Filesystem 114 | lib/Mage/Backup/Filesystem/Iterator 115 | lib/Mage/Backup/Filesystem/Iterator/File.php 116 | lib/Mage/Backup/Filesystem/Iterator/Filter.php 117 | lib/Mage/Backup/Filesystem/Rollback 118 | lib/Mage/Backup/Filesystem/Rollback/Abstract.php 119 | lib/Mage/Backup/Filesystem/Rollback/Ftp.php 120 | lib/Mage/Backup/Filesystem/Rollback/Fs.php 121 | lib/Mage/Backup/Filesystem/Helper.php 122 | lib/Mage/Backup/Archive 123 | lib/Mage/Backup/Archive/Tar.php 124 | lib/Mage/Backup/Snapshot.php 125 | lib/Mage/Backup/Exception 126 | lib/Mage/Backup/Exception/FtpConnectionFailed.php 127 | lib/Mage/Backup/Exception/CantLoadSnapshot.php 128 | lib/Mage/Backup/Exception/NotEnoughPermissions.php 129 | lib/Mage/Backup/Exception/NotEnoughFreeSpace.php 130 | lib/Mage/Backup/Exception/FtpValidationFailed.php 131 | lib/Mage/Backup/Nomedia.php 132 | lib/Mage/DB 133 | lib/Mage/DB/Exception.php 134 | lib/Mage/Connect/Command/Config_Header.php 135 | lib/Mage/Connect/Command/Config.php 136 | lib/Mage/Connect/Command/Registry_Header.php 137 | lib/Mage/Connect/Command/Install_Header.php 138 | lib/Mage/Connect/Command/Package_Header.php 139 | lib/Mage/Connect/Command/Remote.php 140 | lib/Mage/Connect/Command/Remote_Header.php 141 | lib/Mage/Connect/Command/Channels_Header.php 142 | lib/Mage/Connect/Command/Channels.php 143 | lib/Mage/Connect/Command/Package.php 144 | lib/Mage/Connect/Command/Install.php 145 | lib/Mage/Connect/Command/Registry.php 146 | lib/Mage/Backup.php 147 | lib/Mage/Cache 148 | lib/Mage/Cache/Backend 149 | lib/Mage/Cache/Backend/File.php 150 | lib/Mage/Cache/Backend/Redis.php 151 | lib/Mage/Xml 152 | lib/Mage/Xml/Generator.php 153 | lib/Mage/Xml/Parser.php 154 | lib/Mage/Archive 155 | lib/Zend/Currency.php 156 | lib/Zend/Version.php 157 | lib/Zend/Test 158 | lib/Zend/Test/PHPUnit 159 | lib/Zend/Test/PHPUnit/DatabaseTestCase.php 160 | lib/Zend/Test/PHPUnit/Db 161 | lib/Zend/Test/PHPUnit/Db/Operation 162 | lib/Zend/Test/PHPUnit/Db/Operation/Truncate.php 163 | lib/Zend/Test/PHPUnit/Db/Operation/Insert.php 164 | lib/Zend/Test/PHPUnit/Db/Operation/DeleteAll.php 165 | lib/Zend/Test/PHPUnit/Db/Exception.php 166 | lib/Zend/Test/PHPUnit/Db/SimpleTester.php 167 | lib/Zend/Test/PHPUnit/Db/Connection.php 168 | lib/Zend/Test/PHPUnit/Db/Metadata 169 | lib/Zend/Test/PHPUnit/Db/Metadata/Generic.php 170 | lib/Zend/Test/PHPUnit/Db/DataSet 171 | lib/Zend/Test/PHPUnit/Db/DataSet/QueryTable.php 172 | lib/Zend/Test/PHPUnit/Db/DataSet/DbRowset.php 173 | lib/Zend/Test/PHPUnit/Db/DataSet/DbTableDataSet.php 174 | lib/Zend/Test/PHPUnit/Db/DataSet/DbTable.php 175 | lib/Zend/Test/PHPUnit/Db/DataSet/QueryDataSet.php 176 | lib/Zend/Test/PHPUnit/ControllerTestCase.php 177 | lib/Zend/Test/PHPUnit/Constraint 178 | lib/Zend/Test/PHPUnit/Constraint/DomQuery.php 179 | lib/Zend/Test/PHPUnit/Constraint/Redirect.php 180 | lib/Zend/Test/PHPUnit/Constraint/Exception.php 181 | lib/Zend/Test/PHPUnit/Constraint/ResponseHeader.php 182 | lib/Zend/Test/DbAdapter.php 183 | lib/Zend/Test/DbStatement.php 184 | lib/Zend/Soap/Server.php 185 | lib/Zend/Soap/AutoDiscover.php 186 | lib/Zend/Soap/Client.php 187 | lib/Zend/Soap/Server 188 | lib/Zend/Soap/Server/Exception.php 189 | lib/Zend/Soap/Wsdl.php 190 | lib/Zend/Queue.php 191 | lib/Zend/Ldap 192 | lib/Zend/Ldap/Node.php 193 | lib/Zend/Ldap/Node 194 | lib/Zend/Tool/Framework/System 195 | lib/Zend/Tool/Framework/System/Manifest.php 196 | lib/Zend/Tool/Framework/System/Provider 197 | lib/Zend/Tool/Framework/System/Provider/Version.php 198 | lib/Zend/Tool/Framework/System/Provider/Config.php 199 | lib/Zend/Tool/Framework/System/Provider/Manifest.php 200 | lib/Zend/Tool/Framework/System/Provider/Phpinfo.php 201 | lib/Zend/Log.php 202 | lib/Zend/XmlRpc 203 | lib/Zend/XmlRpc/Request.php 204 | lib/Zend/XmlRpc/Server.php 205 | lib/Zend/XmlRpc/Client.php 206 | lib/Zend/XmlRpc/Generator 207 | lib/Zend/XmlRpc/Generator/GeneratorAbstract.php 208 | lib/Zend/XmlRpc/Generator/DomDocument.php 209 | lib/Zend/XmlRpc/Generator/XmlWriter.php 210 | lib/Zend/XmlRpc/Server 211 | lib/Zend/XmlRpc/Server/Exception.php 212 | lib/Zend/XmlRpc/Server/System.php 213 | lib/Zend/XmlRpc/Server/Fault.php 214 | lib/Zend/XmlRpc/Server/Cache.php 215 | lib/Zend/Json.php 216 | lib/Zend/Log 217 | app/code/core/Mage/Downloadable 218 | app/code/core/Mage/Downloadable/Model 219 | app/code/core/Mage/Downloadable/Model/System 220 | app/code/core/Mage/Downloadable/Model/System/Config 221 | app/code/core/Mage/Downloadable/Model/System/Config/Source 222 | app/code/core/Mage/Downloadable/Model/System/Config/Source/Contentdisposition.php 223 | app/code/core/Mage/Downloadable/Model/System/Config/Source/Orderitemstatus.php 224 | app/code/core/Mage/Downloadable/Model/Mysql4 225 | app/code/core/Mage/Downloadable/Model/Mysql4/Indexer 226 | app/code/core/Mage/Downloadable/Model/Mysql4/Indexer/Price.php 227 | app/code/core/Mage/Downloadable/Model/Mysql4/Sample 228 | app/code/core/Mage/Downloadable/Model/Mysql4/Sample/Collection.php 229 | app/code/core/Mage/Downloadable/Model/Mysql4/Sample.php 230 | app/code/core/Mage/Downloadable/Model/Mysql4/Link.php 231 | app/code/core/Mage/Downloadable/Model/Mysql4/Link 232 | app/code/core/Mage/Downloadable/Model/Mysql4/Link/Purchased 233 | app/code/core/Mage/Downloadable/Model/Mysql4/Link/Purchased/Collection.php 234 | app/code/core/Mage/Downloadable/Model/Mysql4/Link/Purchased/Item.php 235 | app/code/core/Mage/Downloadable/Model/Mysql4/Link/Purchased/Item 236 | app/code/core/Mage/Downloadable/Model/Mysql4/Link/Purchased/Item/Collection.php 237 | app/code/core/Mage/Downloadable/Model/Mysql4/Link/Collection.php 238 | app/code/core/Mage/Downloadable/Model/Mysql4/Link/Purchased.php 239 | app/code/core/Mage/Downloadable/Model/Resource 240 | app/code/core/Mage/Downloadable/Model/Resource/Indexer 241 | app/code/core/Mage/Downloadable/Model/Resource/Indexer/Price.php 242 | app/code/core/Mage/Downloadable/Model/Resource/Sample 243 | app/code/core/Mage/Downloadable/Model/Resource/Sample/Collection.php 244 | app/code/core/Mage/Downloadable/Model/Resource/Sample.php 245 | app/code/core/Mage/Downloadable/Model/Resource/Link.php 246 | app/code/core/Mage/Downloadable/Model/Resource/Link 247 | app/code/core/Mage/Downloadable/Model/Resource/Link/Purchased 248 | app/code/core/Mage/Downloadable/Model/Resource/Link/Purchased/Collection.php 249 | app/code/core/Mage/Downloadable/Model/Resource/Link/Purchased/Item.php 250 | app/code/core/Mage/Downloadable/Model/Resource/Link/Purchased/Item 251 | app/code/core/Mage/Downloadable/Model/Resource/Link/Purchased/Item/Collection.php 252 | app/code/core/Mage/Downloadable/Model/Resource/Link/Collection.php 253 | app/code/core/Mage/Downloadable/Model/Resource/Link/Purchased.php 254 | app/code/core/Mage/Downloadable/Model/Product 255 | app/code/core/Mage/Downloadable/Model/Product/Type.php 256 | app/code/core/Mage/Downloadable/Model/Product/Price.php 257 | app/code/core/Mage/Downloadable/Model/Sample.php 258 | app/code/core/Mage/Downloadable/Model/Sales 259 | app/code/core/Mage/Downloadable/Model/Sales/Order 260 | app/code/core/Mage/Downloadable/Model/Sales/Order/Pdf 261 | app/code/core/Mage/Downloadable/Model/Sales/Order/Pdf/Items 262 | app/code/core/Mage/Downloadable/Model/Sales/Order/Pdf/Items/Creditmemo.php 263 | app/code/core/Mage/Downloadable/Model/Sales/Order/Pdf/Items/Abstract.php 264 | app/code/core/Mage/Downloadable/Model/Sales/Order/Pdf/Items/Invoice.php 265 | app/code/core/Mage/Downloadable/Model/CatalogIndex 266 | app/code/core/Mage/Downloadable/Model/CatalogIndex/Data 267 | app/code/core/Mage/Downloadable/Model/CatalogIndex/Data/Downloadable.php 268 | app/code/core/Mage/Downloadable/Model/Link.php 269 | app/code/core/Mage/Downloadable/Model/Observer.php 270 | app/code/core/Mage/Downloadable/Model/Link 271 | app/code/core/Mage/Downloadable/Model/Link/Api 272 | app/code/core/Mage/Downloadable/Model/Link/Api/Validator.php 273 | app/code/core/Mage/Downloadable/Model/Link/Api/Uploader.php 274 | app/code/core/Mage/Downloadable/Model/Link/Api/V2.php 275 | app/code/core/Mage/Downloadable/Model/Link/Purchased 276 | app/code/core/Mage/Downloadable/Model/Link/Purchased/Item.php 277 | app/code/core/Mage/Downloadable/Model/Link/Api.php 278 | app/code/core/Mage/Downloadable/Model/Link/Purchased.php 279 | app/code/core/Mage/Downloadable/sql 280 | app/code/core/Mage/Downloadable/sql/downloadable_setup 281 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-1.4.0.2-1.4.0.3.php 282 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-install-0.1.0.php 283 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.4-0.1.5.php 284 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php 285 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.5-0.1.6.php 286 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.14-0.1.15.php 287 | app/code/core/Mage/Downloadable/sql/downloadable_setup/upgrade-1.6.0.0-1.6.0.0.1.php 288 | app/code/core/Mage/Downloadable/sql/downloadable_setup/install-1.6.0.0.php 289 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-1.4.0.0-1.4.0.1.php 290 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-1.4.0.1-1.4.0.2.php 291 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.8-0.1.9.php 292 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.13-0.1.14.php 293 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.7-0.1.8.php 294 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.3-0.1.4.php 295 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.6-0.1.7.php 296 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.10-0.1.11.php 297 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.9-0.1.10.php 298 | app/code/core/Mage/Downloadable/sql/downloadable_setup/upgrade-1.6.0.0.1-1.6.0.0.2.php 299 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.2-0.1.3.php 300 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.0-0.1.1.php 301 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.11-0.1.12.php 302 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-install-1.4.0.0.php 303 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.15-0.1.16.php 304 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-1.3.9-1.4.0.0.php 305 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.1-0.1.2.php 306 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-0.1.12-0.1.13.php 307 | app/code/core/Mage/Downloadable/sql/downloadable_setup/mysql4-upgrade-1.6.0.0.1-1.6.0.0.2.php 308 | app/code/core/Mage/Downloadable/etc 309 | app/code/core/Mage/Downloadable/etc/config.xml 310 | app/code/core/Mage/Downloadable/etc/wsdl.xml 311 | app/code/core/Mage/Downloadable/etc/wsi.xml 312 | app/code/core/Mage/Downloadable/etc/api.xml 313 | app/code/core/Mage/Downloadable/etc/system.xml 314 | app/code/core/Mage/Downloadable/etc/adminhtml.xml 315 | app/code/core/Mage/Downloadable/Block/Checkout/Success.php 316 | app/code/core/Mage/Downloadable/data 317 | app/code/core/Mage/Downloadable/data/downloadable_setup 318 | app/code/core/Mage/Downloadable/data/downloadable_setup/data-install-1.6.0.0.php 319 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup 320 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.5-0.7.6.php 321 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.4-0.7.5.php 322 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.0-0.7.1.php 323 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php 324 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/install-1.6.0.0.php 325 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.7-0.7.8.php 326 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.3-0.7.4.php 327 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.6-0.7.7.php 328 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-install-0.7.0.php 329 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-1.6.0.0-1.6.0.0.1.php 330 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.2-0.7.3.php 331 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/upgrade-1.6.0.0.1-1.6.0.0.2.php 332 | app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.1-0.7.2.php 333 | app/code/core/Mage/CatalogInventory/etc 334 | app/code/core/Mage/CatalogInventory/etc/config.xml 335 | app/code/core/Mage/CatalogInventory/etc/wsdl.xml 336 | app/code/core/Mage/CatalogInventory/etc/wsi.xml 337 | app/code/core/Mage/CatalogInventory/etc/api.xml 338 | app/code/core/Mage/CatalogInventory/etc/api2.xml 339 | app/code/core/Mage/CatalogInventory/etc/system.xml 340 | app/code/core/Mage/CatalogInventory/etc/adminhtml.xml 341 | app/code/core/Mage/PaypalUk/sql 342 | app/code/core/Mage/PaypalUk/sql/paypaluk_setup 343 | app/code/core/Mage/PaypalUk/sql/paypaluk_setup/install-1.6.0.0.php 344 | app/code/core/Mage/PaypalUk/sql/paypaluk_setup/mysql4-install-0.7.0.php 345 | app/code/core/Mage/Backup 346 | app/code/core/Mage/Backup/Model 347 | app/code/core/Mage/Backup/Model/Mysql4 348 | app/code/core/Mage/Backup/Model/Mysql4/Db.php 349 | app/code/core/Mage/Backup/Model/Fs 350 | app/code/core/Mage/Backup/Model/Fs/Collection.php 351 | app/code/core/Mage/Backup/Model/Config 352 | app/code/core/Mage/Backup/Model/Config/Source 353 | app/code/core/Mage/Backup/Model/Config/Source/Type.php 354 | app/code/core/Mage/Backup/Model/Config/Backend 355 | app/code/core/Mage/Backup/Model/Config/Backend/Cron.php 356 | app/code/core/Mage/Backup/Model/Resource 357 | app/code/core/Mage/Backup/Model/Resource/Db.php 358 | app/code/core/Mage/Backup/Model/Resource/Helper 359 | app/code/core/Mage/Backup/Model/Resource/Helper/Mysql4.php 360 | app/code/core/Mage/Backup/Model/Backup.php 361 | app/code/core/Mage/Backup/Model/Db.php 362 | app/code/core/Mage/Backup/Model/Observer.php 363 | app/code/core/Mage/Backup/etc 364 | app/code/core/Mage/Backup/etc/config.xml 365 | app/code/core/Mage/Backup/etc/system.xml 366 | app/code/core/Mage/Backup/etc/adminhtml.xml 367 | app/code/core/Mage/Api/Model/Wsdl 368 | app/code/core/Mage/Api/Model/Wsdl/Config 369 | app/code/core/Mage/Api/Model/Wsdl/Config/Base.php 370 | app/code/core/Mage/Api/Model/Wsdl/Config/Element.php 371 | app/code/core/Mage/Api/Model/Wsdl/Config.php 372 | app/code/core/Mage/Api/Model/Role.php 373 | app/code/core/Mage/Api/Model/Session.php 374 | app/code/core/Mage/Api/Model/Rules.php 375 | app/code/core/Mage/Api/sql 376 | app/code/core/Mage/Api/sql/api_setup 377 | app/code/core/Mage/Api/sql/api_setup/mysql4-upgrade-0.7.0-0.7.1.php 378 | app/code/core/Mage/Api/sql/api_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php 379 | app/code/core/Mage/Api/sql/api_setup/install-1.6.0.0.php 380 | app/code/core/Mage/Api/sql/api_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php 381 | app/code/core/Mage/Api/sql/api_setup/mysql4-upgrade-0.8.0-0.8.1.php 382 | app/code/core/Mage/Api/sql/api_setup/mysql4-install-0.7.0.php 383 | app/code/core/Mage/Api/etc 384 | app/code/core/Mage/Api/etc/config.xml 385 | app/code/core/Mage/Api/etc/wsdl.xml 386 | app/code/core/Mage/Api/etc/wsi.xml 387 | app/code/core/Mage/Api/etc/wsdl2.xml 388 | app/code/core/Mage/Api/etc/api.xml 389 | app/code/core/Mage/Api/etc/system.xml 390 | app/code/core/Mage/Api/etc/adminhtml.xml 391 | app/code/core/Mage/Tax/sql 392 | app/code/core/Mage/Tax/sql/tax_setup 393 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.5-0.7.6.php 394 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.4-0.7.5.php 395 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.0-0.7.1.php 396 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.9-0.7.10.php 397 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php 398 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-1.3.9-1.4.0.php 399 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.12-0.7.13.php 400 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.10-0.7.11.php 401 | app/code/core/Mage/Tax/sql/tax_setup/install-1.6.0.0.php 402 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-1.4.0.0-1.4.0.1.php 403 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-1.4.0.1-1.4.0.2.php 404 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.11-0.7.12.php 405 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.7-0.7.8.php 406 | app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.1-1.6.0.2.php 407 | app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.2-1.6.0.3.php 408 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.3-0.7.4.php 409 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.8-0.7.9.php 410 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.6-0.7.7.php 411 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-install-0.7.0.php 412 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.2-0.7.3.php 413 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-install-1.4.0.0.php 414 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.6.1-0.7.0.php 415 | app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.0-1.6.0.1.php 416 | app/code/core/Mage/Tax/sql/tax_setup/mysql4-upgrade-0.7.1-0.7.2.php 417 | app/code/core/Mage/Tax/sql/tax_setup/upgrade-1.6.0.3-1.6.0.4.php 418 | app/code/core/Mage/Usa/etc/config.xml 419 | app/code/core/Mage/Usa/etc/wsdl 420 | app/code/core/Mage/Usa/etc/wsdl/FedEx 421 | app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v9.wsdl 422 | app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v10.wsdl 423 | app/code/core/Mage/Usa/etc/wsdl/FedEx/TrackService_v5.wsdl 424 | app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v9.wsdl 425 | app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v10.wsdl 426 | lib/Zend/Service/DeveloperGarden/Wsdl 427 | lib/Zend/Service/DeveloperGarden/Wsdl/ccsPort.xsd 428 | lib/Zend/Service/DeveloperGarden/Wsdl/SmsService.wsdl 429 | lib/Zend/Service/DeveloperGarden/Wsdl/VoiceButlerService.wsdl 430 | lib/Zend/Service/DeveloperGarden/Wsdl/TokenService.wsdl 431 | lib/Zend/Service/DeveloperGarden/Wsdl/ccsPort.wsdl 432 | lib/Zend/Service/DeveloperGarden/Wsdl/ODGBaseUserService.wsdl 433 | lib/Zend/Service/DeveloperGarden/Wsdl/VoiceButlerService.xsd 434 | lib/Zend/Service/DeveloperGarden/Wsdl/SmsValidationUserService.wsdl 435 | lib/Zend/Service/DeveloperGarden/Wsdl/IPLocation.xsd 436 | lib/Zend/Service/DeveloperGarden/Wsdl/localsearch.wsdl 437 | lib/Zend/Service/DeveloperGarden/Wsdl/IPLocation.wsdl 438 | lib/Zend/Service/DeveloperGarden/Wsdl/ODGBaseUserService.xsd 439 | lib/Zend/Service/DeveloperGarden/Wsdl/localsearch.xsd 440 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup 441 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.7.5-0.7.6.php 442 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.7.4-0.7.5.php 443 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.7.0-0.7.1.php 444 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php 445 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/install-1.6.0.0.php 446 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.1.3-0.7.0.php 447 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.7.3-0.7.4.php 448 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-install-0.7.0.php 449 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.7.2-0.7.3.php 450 | app/code/core/Mage/GiftMessage/sql/giftmessage_setup/mysql4-upgrade-0.7.1-0.7.2.php 451 | app/code/core/Zend/XmlRpc 452 | app/code/core/Zend/XmlRpc/Request.php 453 | app/code/core/Zend/XmlRpc/Response.php 454 | app/.htaccess 455 | app/design/adminhtml/default/default/template/xmlconnect 456 | app/design/adminhtml/default/default/template/api/userinfo.phtml 457 | app/design/adminhtml/default/default/template/api/userroles.phtml 458 | app/design/adminhtml/default/default/template/api/rolesedit.phtml 459 | app/design/adminhtml/default/default/template/api/usernroles.phtml 460 | app/design/adminhtml/default/default/template/api/rolesusers.phtml 461 | app/design/adminhtml/default/default/template/api/roleinfo.phtml 462 | app/design/adminhtml/default/default/template/api/user_roles_grid_js.phtml 463 | app/design/adminhtml/default/default/template/api/role_users_grid_js.phtml 464 | app/design/adminhtml/default/default/template/api/users.phtml 465 | app/design/adminhtml/default/default/template/api/roles.phtml 466 | app/design/adminhtml/default/default/template/review 467 | app/design/adminhtml/default/default/template/review/add.phtml -------------------------------------------------------------------------------- /MagentoScanner/Resources/version_hashes.json: -------------------------------------------------------------------------------- 1 | { 2 | "js/enterprise/adminhtml/staging.js": { 3 | "246df54d3d41adb3028f5fbd667b4679": "EE 1.14.3.x", 4 | "a2c362f8df34fe22413f264916a85389": "EE 1.14.4.0", 5 | "c8a011c0118bdf9cfd1e7399fd85f708": "EE 1.14.1.0", 6 | "f1b9a520bde90572902c61d1c451120f": "EE 1.14.4.4" 7 | }, 8 | "js/lib/flex.js": { 9 | "054d2e143c970eb7bd06fd8018365a9d": "CE 1.1.0", 10 | "4040182326f3836f98acabfe1d507960": "CE 1.4.0.1", 11 | "6463e85db4a201a7af3f6632884275d7": "CE 1.9.4.4", 12 | "8502efe74970465a64079318115b8c0c": "CE 1.0", 13 | "a8f224c7cf3ce698650a7225072d586b": "EE 1.14.4.4", 14 | "e37eeca21ff013a52085fc4f7bbe3299": "CE 1.9.1.0", 15 | "eb84fc6c93a9d27823dde31946be8767": "CE 1.4.0.0", 16 | "f1312acc7a5314daf5b2f3e1c4f1ef37": "EE 1.14.1.0" 17 | }, 18 | "js/mage/adminhtml/backup.js": { 19 | "1fa68aa36a89c4066c432a522fdb4f85": "EE 1.14.1.0", 20 | "3072872a60bb8ef1f48a3e81d8881222": "EE 1.14.4.4", 21 | "32f1b774009ddfc8e3987c2678d72600": "CE 1.9.1.0", 22 | "39370c6447e629726d5d248c127541fb": "CE 1.9.4.4", 23 | "3cad766c548b6ff3fee4e0e16d1dfbdc": "EE 1.14.3.7", 24 | "459223d59f5b2e0a638d9f1a7e35ca01": "EE 1.14.3.x", 25 | "5d78ec434f80f715995922cb99f7aa3e": "CE 1.9.3.7", 26 | "fd0f9f88969424c293e025e943efca4b": "CE 1.9.3.x" 27 | }, 28 | "js/mage/adminhtml/product.js": { 29 | "5290e61c41b2d880a93954a579e5ab36": "EE 1.14.1.0", 30 | "71ab5165873c747ec18ac28616d43693": "CE 1.0", 31 | "7941874630e6f7d6fa1c7b040cd00157": "CE 1.9.1.0", 32 | "7b00ba765c4046af67d6a0ab026174fb": "CE 1.9.4.4", 33 | "81d8065e9cee57a5e30ef2622f3a4506": "CE 1.6.0.0", 34 | "d50a6470367a63f6ad50eb84120dffa5": "CE 1.1.0", 35 | "e887acfc2f7af09e04f8e99ac6f7180d": "CE 1.3.0", 36 | "fd4ffc1452aacb9e2e086edc14c36302": "EE 1.14.4.4" 37 | }, 38 | "js/mage/adminhtml/sales.js": { 39 | "1cb6e72078c384df2d62745e34060fed": "CE 1.9.0.x", 40 | "26c8fd113b4e51aeffe200ce7880b67a": "CE 1.8.0.0", 41 | "3fe31e1608e6d4f525d5db227373c5a0": "EE 1.13.0.2", 42 | "4422dffc16da547c671b086938656397": "CE 1.4.2.0", 43 | "48d609bb2958b93d7254c13957b704c4": "CE 1.6.x", 44 | "4d6903199d6fb45c464b25b2dac6508d": "EE 1.9.1.1", 45 | "5656a8c1c646afaaf260a130fe405691": "CE 1.8.1.0", 46 | "6cb29dfb4ec4a6a40360d6243b777238": "EE 1.14.4.4", 47 | "7ca2e7e0080061d2edd1e5368915c267": "EE 1.10.1.1", 48 | "839ead52e82a2041f937389445b8db04": "CE 1.3.3.0", 49 | "95e730c4316669f2df71031d5439df21": "CE 1.1.0", 50 | "9a5d40b3f07f8bb904241828c5babf80": "EE 1.13.1.0", 51 | "a0436f1eee62dded68e0ec860baeb699": "CE 1.9.1.0", 52 | "a4296235ba7ad200dd042fa5200c11b0": "CE 1.6.0.0", 53 | "a86ad3ba7ab64bf9b3d7d2b9861d93dc": "CE 1.0", 54 | "ba43d3af7ee4cb6f26190fc9d8fba751": "EE 1.14.1.0", 55 | "bdacf81a3cf7121d7a20eaa266a684ec": "CE 1.5.1.0", 56 | "d1bfb9f8d4c83e4a6a826d2356a97fd7": "CE 1.3.1", 57 | "d799a44f06900262af5b3242292d20b1": "CE 1.9.4.4", 58 | "d80c40eeef3ca62eb4243443fe41705e": "CE 1.5.0.1", 59 | "ec6a34776b4d34b5b5549aea01c47b57": "EE 1.10.0.2" 60 | }, 61 | "js/mage/adminhtml/tools.js": { 62 | "2848e06105eddf6bc6b4fcb2d892f569": "EE 1.12.0.0", 63 | "6bda8e19f310c5023ce07a9ab44ca185": "CE 1.9.4.4", 64 | "6cf85d9068a84007202411ca06ed6b7b": "CE 1.9.1.0", 65 | "86bbebe2745581cd8f613ceb5ef82269": "CE 1.7.0.x", 66 | "bb2e66d349fd9c135c508a1458e51480": "EE 1.14.4.4", 67 | "ce878bdd1cf5adce7c6eb6f81c983bda": "EE 1.9.1.1", 68 | "d594237950932b9a3948288a020df1ba": "CE 1.3.x", 69 | "d7f5a1c048db67c081d94ee27e53b8bb": "CE 1.6.0.0", 70 | "df365e6f1093cad5afc5652c2a87de9a": "EE 1.14.1.0", 71 | "ea81bcf8d9b8fcddb27fb9ec7f801172": "CE 1.3.2.2", 72 | "ee9bda25c8f08856ce6002dea7d90e16": "CE 1.7.0.0", 73 | "f38b0f0c05e7d62782609f80dc50ad7c": "CE 1.4.2.0" 74 | }, 75 | "js/prototype/validation.js": { 76 | "1342ac8a049bb9fcd7e3c5a911822f08": "CE 1.0", 77 | "295494d0966637bdd03e4ec17c2f338c": "CE 1.4.1.0", 78 | "60943708791871a6964745805a1c60a9": "CE 1.1.0", 79 | "d3252becf15108532d21d45dced96d53": "CE 1.4.1.1" 80 | }, 81 | "js/varien/form.js": { 82 | "1fe3b366b66bf13b02d26571b4801ade": "CE 1.9.4.4", 83 | "4b3c33f5c351554bc412e3f4d9fd0b37": "EE 1.14.4.4", 84 | "8d4828273eec8af9d79d3baea24ea578": "EE 1.13.1.0", 85 | "8ec166d5e7afdb268f5a230b0c2d917b": "CE 1.8.1.0", 86 | "97f4e9bb5c9b78bff3de601dd3447975": "CE 1.8.0.0", 87 | "9ddb3e04fb7d3441ba135e4d21bd016b": "CE 1.9.1.0", 88 | "add8fe1f203838126c021e8ec7b64128": "EE 1.13.0.2", 89 | "c61dd0cb4508672e6223c84344fc2552": "CE 1.9.1.1", 90 | "c9d8cbc59f9f41afc19ba6ecce2c1259": "CE 1.1.0", 91 | "de0640b55c50f84aebeff1f84f1e2481": "CE 1.0", 92 | "ef4f316f10a2f0d43e97cf082c3463c2": "EE 1.14.1.0" 93 | }, 94 | "js/varien/js.js": { 95 | "365504893b4d855adb8be98e1dac09e8": "CE 1.9.4.1", 96 | "5da899f2708c722fb8078012633c295d": "CE 1.9.4.3", 97 | "5db597726468ddccaabc7691d0a0e474": "CE 1.0", 98 | "634c292271005a64a56c71abf98b5607": "CE 1.9.4.4", 99 | "64b4467d5f84c74aba5ee1b04c8c0439": "EE 1.9.1.1", 100 | "65b0925ee682224f77aad95528431e50": "CE 1.1.0", 101 | "721ae5c6332ed90f363e070cb3a4bebe": "CE 1.4.2.0", 102 | "77ca4a973ec6d904735a4f63373a2e40": "EE 1.14.4.2", 103 | "84056e9a629e7368e6f5d45c755e20e7": "CE 1.9.1.0", 104 | "9145e503e8a253ca5fdd4ac159d901c2": "CE 1.5.0.1", 105 | "9a384ace7598461132cafc03a82be02a": "EE 1.14.4.4", 106 | "9ece00d4f98a2aa522e109e15ca5fb3d": "CE 1.5.1.0", 107 | "a42130cfa97b2700d7746b353e4160f2": "EE 1.14.1.0", 108 | "b732ca3b2071dc4263534964532ad984": "CE 1.9.4.2", 109 | "b96fee476f3aee4f18a8f7ae6cb2fca8": "EE 1.14.4.1", 110 | "c0ad99bfeb3b98f539094dc8ba50d807": "EE 1.10.1.1", 111 | "c76a7927f4895e423542589daaf2cdd9": "EE 1.14.4.3", 112 | "ddec70c1bdfcf6b296d9404001422194": "EE 1.10.0.2" 113 | }, 114 | "js/varien/payment.js": { 115 | "5220420e83bb828458ed2a99b05f6a12": "EE 1.14.1.0", 116 | "8807c3d8abdf7820d9743787af81e367": "CE 1.9.4.4", 117 | "aaacf4fe8b88c217e11bee9a0001be7b": "EE 1.14.3.2", 118 | "b829958e83fe20fda7f03955bdc1d97f": "CE 1.9.1.0", 119 | "c877f6413c6a5b7d8a0225aa3ab88da0": "CE 1.9.3.2", 120 | "ec4b021bc391a9f404b2e9025d655d35": "EE 1.14.4.4" 121 | }, 122 | "skin/adminhtml/default/default/below_ie7.css": { 123 | "00821eb553f463e0c4a5d2fcfd270c1c": "CE 1.1.0", 124 | "1a417c9c87fe8e6b32fc30e41aa46d2f": "CE 1.0", 125 | "a7fd88d4e81dbaeac2aa67df1d3cf2d0": "EE 1.14.1.0", 126 | "a96ac172cb56e82e1606d8d65019d681": "EE 1.9.1.1", 127 | "bbe0e0a47d9f25aec1a0ba7f1df02836": "EE 1.14.4.4", 128 | "bf3062f6bd2a05a02946cb8370991538": "EE 1.14.2.x", 129 | "e25bd636a8f9ecc6d25d22a752502042": "EE 1.14.2.0", 130 | "fddc14db00d5f933dd3b2502fa30e0ec": "CE 1.9.4.4" 131 | }, 132 | "skin/adminhtml/default/default/boxes.css": { 133 | "0902e89fb50b22d44f8242954a89300c": "EE 1.12.0.0", 134 | "0e8a85aee65699c9cfaed8166d2ee678": "CE 1.0", 135 | "18c9de4b13f66453034ca520b3208309": "CE 1.3.2", 136 | "1cbeca223c2e15dcaf500caa5d05b4ed": "CE 1.7.0.0", 137 | "27cae1151271a8eb3ac356ab8b3e90ea": "CE 1.9.4.3", 138 | "29651cb812ad5a4b916d1da525df09ff": "CE 1.1.0", 139 | "30a39f4046f3daba55cfbe0e1ca44b4c": "CE 1.5.0.1", 140 | "31f79aa5159997fa0436c02abe06569d": "EE 1.14.0.x", 141 | "3c92a14ac461a1314291d4ad91f1f858": "EE 1.13.1.0", 142 | "5b537e36cb7b2670500a384f290bcaf8": "CE 1.4.2.0", 143 | "5b7a27313258f87ebd4ecb545929d9e9": "CE 1.1.x", 144 | "61e47784d7254e531bb6ce3991d68487": "CE 1.9.2.x", 145 | "635de832a3f79438ad2aae7f4f456aff": "EE 1.14.4.3", 146 | "6aefb246b1bb817077e8fca6ae53bf2c": "CE 1.2.0", 147 | "6b5b0372fbeb93675bfabe24d594bd02": "EE 1.10.1.1", 148 | "6ff7812c3c20c7d86909e706a9e60bdb": "EE 1.14.2.x", 149 | "76a565d95fa10e5449bf63549bc5c76b": "CE 1.3.3.0", 150 | "7c050f817f0472a797f583ab121645c2": "CE 1.9.x", 151 | "7d50affd3bc9d609630a74ee4c76ecec": "CE 1.9.4.4", 152 | "84b67457247969a206456565111c456b": "CE 1.1.x", 153 | "89c7b659d4e60aabd705af87f0014524": "EE 1.14.1.0", 154 | "8a5c088b435dbcf1bbaac9755d4ed45f": "EE 1.12.0.x", 155 | "8d7c0d6a023b476ff87c5d2b03a0cfa8": "CE 1.9.2.x", 156 | "a2c7f9ddda846ba76220d7bcbe85c985": "CE 1.2.1", 157 | "adca1795a4c58ce6a6332ceb2a6c5335": "CE 1.5.1.0", 158 | "b17593f892e24469429ffd693573778c": "CE 1.1.x", 159 | "b497d3538b1c18012455527f267bef53": "EE 1.11.0.x", 160 | "b8bfe2de577512342fc24eef1679057e": "EE 1.14.4.4", 161 | "ba8dd746c8468bfd1cff5c77eadc71a4": "CE 1.9.x", 162 | "c89fac64edb359d899aa7ae792ec5809": "EE 1.14.3.x", 163 | "cab2c9f5477e36b73c7d6ea36a9ad932": "EE 1.9.1.1", 164 | "d0511b190cdddf865cca7873917f9a69": "CE 1.1.1", 165 | "dd6fbd6cc6376045b3a62a823af9a361": "EE 1.10.0.2", 166 | "e79018e9c03a3deb366d7df7c50e95ec": "CE 1.9.3.x", 167 | "e895117cde7ba3305769bc1317a47818": "EE 1.11.x", 168 | "ffa8543ece0cc4d7f8093bbea2e29473": "EE 1.13.0.2" 169 | } 170 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # MagentoScanner 3 | Magento Security Scanner is an open source tool that automates the process recon against a Magento CMS. 4 | This is an early version under developpement, feel free to add your brick :) pull requets are welcomed ! 5 | 6 | **Usage** 7 | 8 | MagentoScanner [options] (e.g. MagentoScanner -u http://site.com/ --ignore--ssl --discover) 9 | 10 | Options: 11 | -u|--url Target URL (e.g. 'http://www.site.com/') 12 | -ssl|--ignore-ssl Ignore SSL errors 13 | -mr|--mage-report Scan target using https://www.magereport.com/ 14 | -d|--discover Search for some default locations (admin panels, customer panels...) 15 | -ua|--user-agent HTTP User-Agent header value 16 | -H|--headers List of headers (e.g. "Accept-Language: fr|ETag: 123") 17 | -c|--cookie HTTP cookie header 18 | **Execution example** 19 | ## Response Headers 20 | ![Response Headers ](https://github.com/soufianetahiri/MagentoScanner/blob/main/1.png?raw=true) 21 | ## SiteMap/Version/Patches/Admin Panel 22 | ![SiteMap/Version/Patches/Admin Panel ](https://github.com/soufianetahiri/MagentoScanner/blob/main/2.png?raw=true) 23 | ## Content Discovery 24 | ![Content Discovery ](https://github.com/soufianetahiri/MagentoScanner/blob/main/3.png?raw=true) 25 | 26 | # Road map 27 | 28 | - [ ] Catalog Information 29 | - [ ] Installed modules Enumeration 30 | - [ ] Malware Scan 31 | --------------------------------------------------------------------------------