Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mas6y6/CipherOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mas6y6 committed Dec 3, 2024
2 parents 88cb509 + 8755748 commit ca6926d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
21 changes: 21 additions & 0 deletions plugins/hpt/__init__.py
Original file line number Diff line number Diff line change
@@ -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")
Binary file added plugins/hpt/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
8 changes: 8 additions & 0 deletions plugins/hpt/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ python3-nmap
ping3
netifaces
markdown
rich
rich
hostprobe

0 comments on commit ca6926d

Please sign in to comment.