THIRD-PARTY SOFTWARE NOTICES AND INFORMATION

This product includes third-party software components governed by the license(s)
identified below. The original copyright notices and license terms are provided
for informational purposes.

================================================================================
SMBLibrary
================================================================================

This product includes SMBLibrary (unmodified),
© Tal Aloni (https://github.com/TalAloni/SMBLibrary),
licensed under the GNU Lesser General Public License v3.0.

The source code for SMBLibrary is available at:
https://github.com/TalAloni/SMBLibrary

LGPL v3.0 COMPLIANCE NOTICE:
----------------------------
In accordance with the GNU Lesser General Public License v3.0:

1. SMBLibrary is dynamically linked and distributed as a separate DLL file
   (SMBLibrary.dll) alongside this application.

2. You may replace SMBLibrary.dll with your own modified version or a different
   compatible version of the library.

3. You are permitted to reverse engineer the SMBLibrary component for debugging
   purposes, to the extent necessary to debug modifications to the library.

4. The complete source code for SMBLibrary is available at:
   https://github.com/TalAloni/SMBLibrary

5. This product uses SMBLibrary in unmodified form.

The full text of the GNU Lesser General Public License v3.0 is included in the
file "LGPL-3.0.txt" distributed with this software, or can be obtained
from: https://www.gnu.org/licenses/lgpl-3.0.html

================================================================================
Kaitai Struct C# runtime
================================================================================

This product includes the Kaitai Struct C# runtime (MODIFIED - see below),
© Kaitai Project (https://github.com/kaitai-io/kaitai_struct_csharp_runtime),
licensed under the MIT License.

The upstream source code is available at:
https://github.com/kaitai-io/kaitai_struct_csharp_runtime

VERSION / BRANCH POINT:
-----------------------
The runtime source files are vendored into this product (they are not consumed
as a binary package). They were copied from upstream commit d8d5e25 on the
"master" branch, dated 2019-04-17, which is a state between upstream releases
0.7 and 0.9.

The vendored files are:
  Kaitai/generated/KaitaiStream.cs
  Kaitai/generated/KaitaiStruct.cs

MODIFICATIONS:
--------------
We changed the file KaitaiStream.cs, in order to prevent a memory-exhaustion
denial of service when parsing untrusted network packets.

Specifically, in both the ReadBytes(long count) and ReadBytes(ulong count)
overloads, we added a check that compares the requested count against the
number of bytes actually remaining in the underlying stream and throws
EndOfStreamException if the request exceeds it, before delegating to
BinaryReader.ReadBytes.

The reason for the change: BinaryReader.ReadBytes(int) allocates a buffer of the
full requested size up front, before reading any data. The upstream
implementation only rejected negative counts and counts above Int32.MaxValue,
and detected a short read after the allocation had already been paid for. As a
result, an attacker-controlled length field in a small packet (for example a
BER long-form ASN.1 length in an SNMP datagram) could force an allocation of
close to 2 GiB from an 11-byte UDP payload. The added check throws the same
EndOfStreamException that upstream would eventually throw, only without
performing the allocation first.

The file KaitaiStruct.cs is used in unmodified form. Both files were relocated
from "Kaitai/" to "Kaitai/generated/" within this product; that relocation did
not change their contents.

Note: the other files under Kaitai/generated/ are protocol parsers generated by
the Kaitai Struct compiler from our own .ksy definitions in Kaitai/ksy/, and are
not part of the third-party runtime.

MIT LICENSE NOTICE:
-------------------
Copyright 2015-2016 Kaitai Project: MIT license

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

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

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

================================================================================
SSH.NET
================================================================================

This product includes SSH.NET version 2020.0.2 (unmodified),
© RENCI (https://github.com/sshnet/SSH.NET),
licensed under the MIT License.

SSH.NET is consumed as an unmodified NuGet package (SSH.NET 2020.0.2). Its
assembly is statically bundled into this product's self-contained single-file
executable rather than shipped as a separate file alongside it, and may be
IL-trimmed as part of that build. No changes were made to its source code.

The source code for SSH.NET is available at:
https://github.com/sshnet/SSH.NET

MIT LICENSE NOTICE:
-------------------
The MIT License (MIT)

Copyright (c) 2012-2022, RENCI

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

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

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

================================================================================
