summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-mythic-payloadtype-container.spec176
-rw-r--r--sources1
3 files changed, 178 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e412730 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mythic_payloadtype_container-0.1.18.tar.gz
diff --git a/python-mythic-payloadtype-container.spec b/python-mythic-payloadtype-container.spec
new file mode 100644
index 0000000..95f6ac7
--- /dev/null
+++ b/python-mythic-payloadtype-container.spec
@@ -0,0 +1,176 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mythic-payloadtype-container
+Version: 0.1.18
+Release: 1
+Summary: Functionality for Mythic Payload Type Containers
+License: BSD3
+URL: https://docs.mythic-c2.net/customizing/payload-type-development
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/02/4f/351398ab53d240c3d3d0f996742ab1762a2be1a0f03325b4eecfdbb73bc2/mythic_payloadtype_container-0.1.18.tar.gz
+BuildArch: noarch
+
+Requires: python3-aio-pika
+Requires: python3-dynaconf
+
+%description
+# Mythic Payload Type Container
+
+The `mythic_payloadtype_container` package creates an easy way to get everything set up in a new PayloadType container for a Mythic supported Payload Type. Mythic is a Command and Control (C2) framework for Red Teaming. The code is on GitHub (https://github.com/its-a-feature/Mythic) and the Mythic project's documentation is on GitBooks (https://docs.mythic-c2.net). This code will be included in the default Mythic Payload Type containers, but is available for anybody making custom containers as well.
+
+## Installation
+
+You can install the mythic scripting interface from PyPI:
+
+```
+pip install mythic-payloadtype-container
+```
+
+## How to use
+
+This container reports to mythic as version 12 (PyPi version 0.1.18). Use it with Mythic version 2.3.0.
+
+For the main execution of the heartbeat and service functionality, simply import and start the service:
+```
+from mythic_payloadtype_container import mythic_service
+mythic_service.start_service_and_heartbeat()
+```
+You can also set `MYTHIC_ENVIRONMENT=Testing` environment variable (directly for your container/host or via Mythic/.env) to get detailed debugging information.
+
+You can get the Mythic version of this package with the `get_version_info` function:
+```
+from mythic_payloadtype_container import get_version_info
+get_version_info()
+```
+
+## Where is the code?
+
+The code for this PyPi package can be found at https://github.com/MythicMeta/Mythic_PayloadType_Container
+
+
+
+
+%package -n python3-mythic-payloadtype-container
+Summary: Functionality for Mythic Payload Type Containers
+Provides: python-mythic-payloadtype-container
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mythic-payloadtype-container
+# Mythic Payload Type Container
+
+The `mythic_payloadtype_container` package creates an easy way to get everything set up in a new PayloadType container for a Mythic supported Payload Type. Mythic is a Command and Control (C2) framework for Red Teaming. The code is on GitHub (https://github.com/its-a-feature/Mythic) and the Mythic project's documentation is on GitBooks (https://docs.mythic-c2.net). This code will be included in the default Mythic Payload Type containers, but is available for anybody making custom containers as well.
+
+## Installation
+
+You can install the mythic scripting interface from PyPI:
+
+```
+pip install mythic-payloadtype-container
+```
+
+## How to use
+
+This container reports to mythic as version 12 (PyPi version 0.1.18). Use it with Mythic version 2.3.0.
+
+For the main execution of the heartbeat and service functionality, simply import and start the service:
+```
+from mythic_payloadtype_container import mythic_service
+mythic_service.start_service_and_heartbeat()
+```
+You can also set `MYTHIC_ENVIRONMENT=Testing` environment variable (directly for your container/host or via Mythic/.env) to get detailed debugging information.
+
+You can get the Mythic version of this package with the `get_version_info` function:
+```
+from mythic_payloadtype_container import get_version_info
+get_version_info()
+```
+
+## Where is the code?
+
+The code for this PyPi package can be found at https://github.com/MythicMeta/Mythic_PayloadType_Container
+
+
+
+
+%package help
+Summary: Development documents and examples for mythic-payloadtype-container
+Provides: python3-mythic-payloadtype-container-doc
+%description help
+# Mythic Payload Type Container
+
+The `mythic_payloadtype_container` package creates an easy way to get everything set up in a new PayloadType container for a Mythic supported Payload Type. Mythic is a Command and Control (C2) framework for Red Teaming. The code is on GitHub (https://github.com/its-a-feature/Mythic) and the Mythic project's documentation is on GitBooks (https://docs.mythic-c2.net). This code will be included in the default Mythic Payload Type containers, but is available for anybody making custom containers as well.
+
+## Installation
+
+You can install the mythic scripting interface from PyPI:
+
+```
+pip install mythic-payloadtype-container
+```
+
+## How to use
+
+This container reports to mythic as version 12 (PyPi version 0.1.18). Use it with Mythic version 2.3.0.
+
+For the main execution of the heartbeat and service functionality, simply import and start the service:
+```
+from mythic_payloadtype_container import mythic_service
+mythic_service.start_service_and_heartbeat()
+```
+You can also set `MYTHIC_ENVIRONMENT=Testing` environment variable (directly for your container/host or via Mythic/.env) to get detailed debugging information.
+
+You can get the Mythic version of this package with the `get_version_info` function:
+```
+from mythic_payloadtype_container import get_version_info
+get_version_info()
+```
+
+## Where is the code?
+
+The code for this PyPi package can be found at https://github.com/MythicMeta/Mythic_PayloadType_Container
+
+
+
+
+%prep
+%autosetup -n mythic-payloadtype-container-0.1.18
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mythic-payloadtype-container -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.18-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..358b5c5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+c20b72c0d7123017d0a65e717e628817 mythic_payloadtype_container-0.1.18.tar.gz