diff --git a/plugins/hpt/__init__.py b/plugins/hpt/__init__.py new file mode 100644 index 0000000..a9a4e64 --- /dev/null +++ b/plugins/hpt/__init__.py @@ -0,0 +1,21 @@ +from cipher.plugins import CipherAPI, CipherPlugin +from hostprobe import * + +class hpt(CipherPlugin): + def __init__(self, api: CipherAPI, config): + super().__init__(api, config) + self.register_commands() + + def on_enable(self): + print("hostprobe-terminal enabled.") + + def on_disable(self): + print("hostprobe-terminal disabled.") + + def register_commands(self): + @CipherPlugin.command(name="hpt") + def hpt(args): + if args: + netprobe(args, output=True, info=True) + else: + print("hostprobe terminal: the cross-platform nmap of python") \ No newline at end of file diff --git a/plugins/hpt/__pycache__/__init__.cpython-312.pyc b/plugins/hpt/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..278447b Binary files /dev/null and b/plugins/hpt/__pycache__/__init__.cpython-312.pyc differ diff --git a/plugins/hpt/plugin.yml b/plugins/hpt/plugin.yml new file mode 100644 index 0000000..1668981 --- /dev/null +++ b/plugins/hpt/plugin.yml @@ -0,0 +1,8 @@ +configversion: 1 +version: 30 +# The name must match the folder of the plugin +name: hpt +displayname: "hostprobe-terminal" +class: hpt +dependencies: + - hostprobe \ No newline at end of file diff --git a/plugins/neofetch/__pycache__/__init__.cpython-312.pyc b/plugins/neofetch/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..da5dd3e Binary files /dev/null and b/plugins/neofetch/__pycache__/__init__.cpython-312.pyc differ diff --git a/requirements.txt b/requirements.txt index aa4a235..331a36a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,4 +14,5 @@ python3-nmap ping3 netifaces markdown -rich \ No newline at end of file +rich +hostprobe \ No newline at end of file