Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
One-Lin3r — 提供用于渗透测试操作、权限提升等的单行命令。 | Kitploit
工具/GitHubGitHub/d4vinci/one-lin3r
权限提升Payload生成漏洞利用逆向工程信息收集渗透测试实用工具与框架
GitHubd4vinci/one-lin3r

One-Lin3r

提供用于渗透测试操作、权限提升等的单行命令。

查看仓库
1.8k3018个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

One-Lin3r PyPI Python Core Downloads

One-Lin3r 是一个简单、模块化且轻量级的框架,为您提供渗透测试(Windows、Linux、macOS 甚至 BSD 系统)或一般黑客攻击时所需的全部单行命令,并具有许多新功能,使这一切完全自动化(例如:您甚至无需复制单行命令)。

版本 2 的截图

它包含各种不同类型的单行命令,具有不同的功能,其中一些包括:

单行命令功能该功能的作用
反向 Shell提供反向 shell 的各种方法和命令。
权限提升许多用于枚举和权限提升的命令。
绑定 Shell提供绑定 shell 的各种方法和命令。
下载执行多种下载并执行各种有效负载类型的方法,支持多种方式。

特点

  • 大量不同用途的单行命令,目前超过 176 个。

  • 自动补全功能并非您常见的那种,以下是一些亮点:

    • 专为纠正输入命令中的拼写错误而设计,只需按一次 Tab 键,就能将最相似的命令替换上去,例如 seach 会变成 search,以此类推,即使您输入了任何与框架中命令相似的随机单词也能生效。
    • 对于像我一样懒的朋友,它可以通过输入命令的任何部分来预测您想使用的单行命令。例如,如果您输入了 use capabilities 并按 Tab,它会被替换为 use linux/bash/list_all_capabilities,等等。我能看到您的微笑,不客气!
    • 如果您输入了任何错误的命令并按回车,框架会告诉您最接近您输入的命令,可能就是您真正想要的那个。
    • 其他一些不那么令人印象深刻的功能,比如在 set 命令后对变量进行自动补全,在 use 和 info 命令后对单行命令进行自动补全,最后,它还会自动将所有大写字母转换为小写,以防您输入时不小心切换了大小写。
    • 最后,您会找到之前使用的常规自动补全功能,例如命令自动补全和持久历史记录等。
  • 自动化

    • 您可以使用命令 copy <liner> 自动将单行命令复制到剪贴板,而不需要先使用 use <liner> 然后再复制,这节省了大量时间,当然,如果与以下功能结合使用效果更佳。
    • 您可能已经注意到,您可以在启动框架之前从命令行参数中使用资源文件,或者直接发送命令。
    • 在框架内部,您可以使用 makerc 命令(类似于 Metasploit),但这次它只保存正确的关键命令。
    • 有 history 和 命令,因此您无需退出框架。

注意:单行命令数据库目前不算太大,但会随着更新和贡献而增大。

用法

命令行参数

root@kitploit:~
usage: one-lin3r [-h] [-r R] [-x X] [-q]

optional arguments:
  -h, --help  show this help message and exit
  -r          Execute a resource file (history file).
  -x          Execute a specific command (use ; for multiples).
  -q          Quiet mode (no banner).

框架命令

root@kitploit:~
Command                     Description
--------                    -------------
help/?                      Show this help menu.
list/show                   List all one-liners in the database.
search  (-h) [Keywords..]   Search database for a specific liner by its name, author name or function.
use         <liner>         Use an available one-liner.
copy        <liner>         Use an available one-liner and copy it to clipboard automatically.
info        <liner>         Get information about an available liner.
set <variable> <value>      Sets a context-specific variable to a value to use while using one-liners.
variables                   Prints all previously specified variables.
banner                      Display banner.
reload/refresh              Reload the liners database.
check                       Prints the core version and checks if you are up-to-date.
history                     Display command-line most important history from the beginning.
makerc                      Save command-line history to a file.
resource     <file>         Run the commands stored in a file
os          <command>       Execute a system command without closing the framework
exit/quit                   Exit the framework

安装前先决条件

  • Python 3.x。
  • 任何操作系统,应该都能工作,但已在 Kali 2018+、Ubuntu 18+、Manjaro、Black Arch、Windows 10、Android Termux 和 Mac-OS 10.11 上测试过。

安装和运行

  • 使用 pip(在任意操作系统上安装的最佳方式):
root@kitploit:~
pip install one-lin3r
one-lin3r -h
  • 在 Black Arch 或任何带有 Black Arch 仓库的 Arch 基础系统上使用 pacman:
root@kitploit:~
sudo pacman -S one-lin3r
  • 从 GitHub 安装:
    • 在 Windows 上以管理员身份运行 cmd:(下载 ZIP 并解压后)
    root@kitploit:~
    python -m pip install ./One-Lin3r-master --user
    one-lin3r -h
    
    • 在基于 Debian 的 Linux 发行版上(例如 Kali、Ubuntu……):
    root@kitploit:~
    git clone https://github.com/D4Vinci/One-Lin3r.git
    sudo apt install libncurses5-dev
    sudo pip3 install ./One-Lin3r --user
    one-lin3r -h
    
    • 对于其他 Linux 发行版:
    root@kitploit:~
    git clone https://github.com/D4Vinci/One-Lin3r.git
    sudo pip3 install ./One-Lin3r --user
    one-lin3r -h
    

更新框架或数据库

  • 如果您通过 pip 安装,执行:
root@kitploit:~
pip install one-lin3r --upgrade
  • 如果您从 GitHub 安装,执行:
    • 在 Linux 上,在目录外执行
    root@kitploit:~
    cd One-Lin3r && git pull && cd ..
    pip3 install ./One-Lin3r --upgrade
    
    • 在 Windows 上,如果您没有安装 git,请重新下载框架压缩包!

注意:单行命令以 Python 模块形式编写,因此被视为框架的一部分。因此,每次向框架添加新的单行命令时,其版本都会更新。

联系方式

  • Twitter
  • Telegram

捐赠

如果您觉得我的工作对您有帮助,欢迎请我喝杯咖啡或更多 :)

Coffee

免责声明

One-Lin3r 旨在帮助渗透测试,对任何滥用或非法用途概不负责。

复制此工具的代码或在其他工具中使用是被允许的,前提是注明来源 😄。

欢迎提交 Pull Request :D

致谢与参考

  • PayloadsAllTheThings
  • PowerSploit 仓库
  • arno0x0x - Windows oneliners to download remote payload and execute arbitrary code
下载工具
resource
  • 您可以通过分号分隔同时执行多条命令。
    • 在此搜索任何单行命令都非常简单和准确,您可以根据单行命令的名称、功能、描述、添加该命令的作者甚至命令本身进行搜索。
  • 您可以通过遵循这些步骤将自己的单行命令添加为 Python 文件。之后,您可以提交一个 Pull Request,它将被添加到框架中,并注明您的名字 😄。

  • 如果您添加了任何单行命令,无需重启框架即可重新加载数据库。

  • 您只需在 liners 文件夹中创建一个文件夹并在其中创建一个 ".liner" 文件,即可向单行命令数据库添加任何平台。

  • 更多...