Skip to content

Commit

Permalink
Final correction of license notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ncc-erik-steringer committed Aug 25, 2019
1 parent 2ab877e commit 3195034
Show file tree
Hide file tree
Showing 46 changed files with 79 additions and 645 deletions.
16 changes: 2 additions & 14 deletions pmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Wrap around principalmapper/__main__.py
"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.

# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -18,19 +19,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

import sys

Expand Down
15 changes: 1 addition & 14 deletions principalmapper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Module principalmapper: Python code to dissect and analyze an AWS account's use of IAM"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.
# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -14,18 +14,5 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

__version__ = '1.0.0'
15 changes: 1 addition & 14 deletions principalmapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Provides a command-line interface to use the principalmapper library
"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.
# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -16,19 +16,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

import argparse
import os
Expand Down
17 changes: 3 additions & 14 deletions principalmapper/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.
# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -12,17 +12,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.



17 changes: 3 additions & 14 deletions principalmapper/analysis/risks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
}
"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.


# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -23,19 +25,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

import datetime as dt
import json
Expand Down
17 changes: 3 additions & 14 deletions principalmapper/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.
# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -12,18 +12,7 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.



"""Module defining classes and functions used commonly across principalmapper"""
17 changes: 3 additions & 14 deletions principalmapper/common/edges.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Python code for implementing the edges of a graph"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.


# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -14,19 +16,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

from principalmapper.common.nodes import Node
from principalmapper.util import arns
Expand Down
17 changes: 3 additions & 14 deletions principalmapper/common/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
create a graph object, you need all the policies, then all the groups, then you can build the lists of nodes and edges.
"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.


# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -18,19 +20,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

import json
import os
Expand Down
17 changes: 3 additions & 14 deletions principalmapper/common/groups.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Python code for handling AWS IAM groups"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.


# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -14,19 +16,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

from typing import List
from typing import Optional
Expand Down
17 changes: 3 additions & 14 deletions principalmapper/common/nodes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Python code for implementing the nodes of a graph"""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.


# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -14,19 +16,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

from typing import List, Optional

Expand Down
15 changes: 1 addition & 14 deletions principalmapper/common/policies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Python code for handling AWS IAM policies"""


# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.
# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -15,19 +15,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

class Policy(object):
"""A class representing a single IAM policy"""
Expand Down
15 changes: 1 addition & 14 deletions principalmapper/graphing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.
# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -12,18 +12,5 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

"""Module for graphing code"""
15 changes: 1 addition & 14 deletions principalmapper/graphing/cloudformation_edges.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Code to identify if a principal in an AWS account can use access to CloudFormation to access other principals."""

# Copyright NCC Group (c) 2019. This file is part of Principal Mapper.
# Copyright (c) NCC Group and Erik Steringer 2019. This file is part of Principal Mapper.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand All @@ -14,19 +14,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with Principal Mapper. If not, see <https://www.gnu.org/licenses/>.
#
# Principal Mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Principal Mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Foobar. If not, see <https://www.gnu.org/licenses/>.

import io
import os
Expand Down
Loading

0 comments on commit 3195034

Please sign in to comment.