Skip to content

Commit

Permalink
Add license header to python files
Browse files Browse the repository at this point in the history
  • Loading branch information
xshill committed Dec 19, 2018
1 parent 80c22ca commit 14d7d4a
Show file tree
Hide file tree
Showing 129 changed files with 767 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bin/pyrdp-clonecert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/python3

#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

import argparse
import logging
import sys
Expand Down
7 changes: 7 additions & 0 deletions bin/pyrdp-mitm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/python3

#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

import argparse
import logging
import logging.handlers
Expand Down
7 changes: 7 additions & 0 deletions bin/pyrdp-player.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/python3

#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

import argparse
import logging
import logging.handlers
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/core/Config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

class Config:
"""
Static class to keep the config passed by argument to the program
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.core.Config import Config
from pyrdp.core.helpers import decodeUTF16LE, encodeUTF16LE, getLoggerPassFilters
from pyrdp.core.observer import Observer, CompositeObserver
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/core/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

"""
File that contains helper methods to use in the library.
"""
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/core/observer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.pdu import PDU


Expand Down
7 changes: 6 additions & 1 deletion pyrdp/core/packing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env python2
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

import struct


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/core/stream.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from io import BytesIO


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/core/subject.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.core.observer import CompositeObserver, Observer


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/core/timer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

import time
from typing import Callable

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.enum.core import ParserMode
from pyrdp.enum.gcc import GCCPDUType
from pyrdp.enum.mcs import MCSChannelID, MCSPDUType, MCSResult
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/core.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/gcc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/mcs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/negotiation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/rdp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/segmentation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/virtual_channel/clipboard.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum, Enum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/virtual_channel/device_redirection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/virtual_channel/dynamic_channel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/virtual_channel/virtual_channel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/enum/x224.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from enum import IntEnum


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

class PyRDPError(Exception):
"""Base class for PyRDP errors"""

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.buffered import BufferedLayer
from pyrdp.layer.gcc import GCCClientConnectionLayer
from pyrdp.layer.layer import Layer, LayerObserver, LayerRoutedObserver, LayerStrictRoutedObserver
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/buffered.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.layer import Layer
from pyrdp.parser import SegmentationParser

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/gcc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.layer import Layer
from pyrdp.parser import GCCParser
from pyrdp.pdu import GCCConferenceCreateRequestPDU
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/layer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from typing import Optional

from pyrdp.core import ObservedBy, Observer, Subject
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/mcs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.layer import Layer
from pyrdp.parser import MCSParser
from pyrdp.pdu import MCSConnectInitialPDU, MCSDomainParams, MCSPDU
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/raw.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.layer import Layer
from pyrdp.pdu import PDU

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/connection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.layer import Layer
from pyrdp.parser import ClientConnectionParser, ServerConnectionParser

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.pdu import PDU


Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/fastpath.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.core import ObservedBy
from pyrdp.layer.buffered import BufferedLayer
from pyrdp.layer.layer import LayerObserver
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/security.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from binascii import hexlify

from pyrdp.core import ObservedBy
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/slowpath.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.core import ObservedBy
from pyrdp.enum import CapabilityType, SlowPathPDUType, VirtualChannelCompressionFlag
from pyrdp.exceptions import UnknownPDUTypeError
Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/virtual_channel/clipboard.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.layer import Layer
from pyrdp.parser import ClipboardParser

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/virtual_channel/device_redirection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer.layer import Layer
from pyrdp.parser import DeviceRedirectionParser

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/virtual_channel/dynamic_channel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.layer import Layer
from pyrdp.parser.rdp.virtual_channel.dynamic_channel import DynamicChannelParser

Expand Down
6 changes: 6 additions & 0 deletions pyrdp/layer/rdp/virtual_channel/virtual_channel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of the PyRDP project.
# Copyright (C) 2018 GoSecure Inc.
# Licensed under the GPLv3 or later.
#

from pyrdp.logging import log
from pyrdp.enum import VirtualChannelPDUFlag
from pyrdp.layer.layer import Layer
Expand Down
Loading

0 comments on commit 14d7d4a

Please sign in to comment.