diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..e69de29 diff --git a/src/binary_io.py b/src/binary_io.py index ce996f5..33dd906 100644 --- a/src/binary_io.py +++ b/src/binary_io.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import struct from abc import ABC, abstractmethod diff --git a/src/gui/dialogs/process_view.py b/src/gui/dialogs/process_view.py index a385e6f..df335d7 100644 --- a/src/gui/dialogs/process_view.py +++ b/src/gui/dialogs/process_view.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + from PyQt5.Qt import QDialog from gui.models.process_view_model import ProcessViewModel diff --git a/src/gui/main_window.py b/src/gui/main_window.py index db13b7d..7d1679a 100644 --- a/src/gui/main_window.py +++ b/src/gui/main_window.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + from PyQt5 import QtGui from PyQt5.Qt import QMainWindow, QHeaderView from PyQt5.QtCore import pyqtSlot @@ -7,6 +23,7 @@ from gui.dialogs.process_view import ProcessView from gui.models.found_address_model import FoundAddressModel from gui.ui.widgets.mainwindow import Ui_MainWindow +from gui.models.saved_address_model import SavedAddressModel class MainWindow(QMainWindow, Ui_MainWindow): @@ -18,6 +35,7 @@ def __init__(self): self.scan_widget.setEnabled(False) self.found_table.setModel(FoundAddressModel(self)) + self.saved_results.setModel(SavedAddressModel(self)) self.found_table.horizontalHeader().setSectionResizeMode(0, QHeaderView.Stretch) self.new_scan.clicked.connect(self.new_scan_clicked) diff --git a/src/gui/models/found_address_model.py b/src/gui/models/found_address_model.py index 77c54d8..a983be2 100644 --- a/src/gui/models/found_address_model.py +++ b/src/gui/models/found_address_model.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import typing from enum import IntEnum from typing import List @@ -38,7 +54,7 @@ def __init__(self, parent=None): """ NOTE: THIS LAMBDA IS INTENTIONAL, IT WILL NOT WORK IF YOU REMOVE THE LAMBDA AND WILL NOT - WORK. https://machinekoder.com/how-to-not-shoot-yourself-in-the-foot-using-python-qt/ + WORK. https://machinekoder.com/how-to-not-shoot-yourself-in-the-foot-using-python-qt/how-to-not-shoot-yourself-in-the-foot-using-python-qt """ self.destroyed.connect(lambda: self.__unregister()) diff --git a/src/gui/models/process_view_model.py b/src/gui/models/process_view_model.py index dd84910..a97bdc9 100644 --- a/src/gui/models/process_view_model.py +++ b/src/gui/models/process_view_model.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import typing from enum import IntEnum diff --git a/src/gui/threads/update_scanresult.py b/src/gui/threads/update_scanresult.py index 301f808..4a083c8 100644 --- a/src/gui/threads/update_scanresult.py +++ b/src/gui/threads/update_scanresult.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + from typing import List from time import sleep diff --git a/src/index.py b/src/index.py index 5f68a0a..c44b84b 100644 --- a/src/index.py +++ b/src/index.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import sys from PyQt5.Qt import QApplication diff --git a/src/memory.py b/src/memory.py index 035354e..8857fda 100644 --- a/src/memory.py +++ b/src/memory.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import struct import typing from abc import ABC diff --git a/src/tests/memory_test.py b/src/tests/memory_test.py index 02f3c85..9309da1 100644 --- a/src/tests/memory_test.py +++ b/src/tests/memory_test.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import unittest from unittest import mock from unittest.mock import Mock diff --git a/src/tests/type_test.py b/src/tests/type_test.py index ff0b41b..88bb24b 100644 --- a/src/tests/type_test.py +++ b/src/tests/type_test.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import unittest from type import Type diff --git a/src/type.py b/src/type.py index 12847bf..b8eb90f 100644 --- a/src/type.py +++ b/src/type.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import enum diff --git a/src/value.py b/src/value.py index 1af728d..d0fd8e5 100644 --- a/src/value.py +++ b/src/value.py @@ -1,3 +1,19 @@ +# This file is part of ot-project. +# +# ot-project is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# ot-project 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 General Public License +# along with Foobar. If not, see . +# + import typing from type import Type