🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

evil-py-argo-shell

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evil-py-argo-shell

A Python package that demonstrates executing system commands (for educational purposes only)

pipPyPI
Version
0.1.2
Maintainers
1

Evil Py Argo Shell

这是一个Python包示例项目,演示了在构建过程中执行系统命令的方法。

项目特性

  • 在构建过程中执行系统命令(如id
  • 纯Python实现
  • 可以用于学习和研究目的

项目结构

  • setup.py: Python包配置文件
  • evil_py_argo_shell/: Python包目录
  • evil_py_argo_shell/__init__.py: 主要功能实现

安全说明

重要提醒: 此包仅供学习和研究目的。在生产环境中不要使用类似的代码模式,因为它可能存在安全风险。

安装

pip install .

安装过程中,Cargo构建脚本会自动执行,您可以在构建日志中看到id命令的输出。

发布到PyPI

要将此包发布到PyPI,请按照以下步骤操作:

  • 注册PyPI账户并获取API令牌:

    • 访问 https://pypi.org/account/register/ 注册账户
    • 在账户设置中创建API令牌
  • 更新.pypirc文件中的API令牌

  • 安装构建工具:

    pip install build twine
    
  • 构建包:

    python -m build
    
  • 上传到PyPI:

    twine upload dist/*
    

FAQs

Did you know?

Socket

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.

Install

Related posts