Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
lí no etheclim, nann ze entám rish.
一个基于 Satori
协议的简易 IM framework
使用配置文件:
# config.yml
basic:
network:
- type: ws
port: 5140
path: satori
log_level: INFO
plugin:
example_plugin: {}
::echo: {}
::auto_reload:
watch_dirs: ["plugins"]
from arclet.entari import Entari
app = Entari.load("config.yml")
app.run()
复读:
from arclet.entari import Session, Entari, WS
app = Entari(WS(host="127.0.0.1", port=5140, path="satori"))
@app.on_message()
async def repeat(session: Session):
await session.send(session.content)
app.run()
指令 add {a} {b}
:
from arclet.entari import Session, Entari, WS, command
@command.on("add {a} {b}")
async def add(a: int, b: int, session: Session):
await session.send(f"{a + b = }")
app = Entari(WS(port=5500, token="XXX"))
app.run()
编写插件:
from arclet.entari import Session, MessageCreatedEvent, metadata
metadata(
name="Hello, World!",
author=["Arclet"],
version="0.1.0",
description="A simple plugin that replies 'Hello, World!' to every message."
)
# or __plugin_metadata__ = PluginMetadata(...)
@MessageCreatedEvent.dispatch()
async def _(session: Session):
await session.send("Hello, World!")
加载插件:
from arclet.entari import Entari, WS, load_plugin
app = Entari(WS(port=5140, path="satori"))
load_plugin("example_plugin")
load_plugin("::echo")
load_plugin("::auto_reload", {"watch_dirs": ["plugins"]})
app.run()
FAQs
Simple IM Framework based on satori-python
We found that arclet-entari demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.