雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2424|回复: 3

[IOU] web-iou 浏览器console功能不可用

[复制链接]
发表于 2013-9-26 12:07:49 | 显示全部楼层 |阅读模式
如图所示:
                 
单击 open core1 console via browser

                  

360极速浏览器打开的只是文件内容


附上文件详情:
  1. #!/bin/bash

  2. function connect {
  3.         /opt/iou/bin/shellinaboxd --cgi --localhost-only -s "/:$(id -u):$(id -g):HOME:telnet 127.0.0.1 ${parms}"
  4.         if [ $? -ne 0 ]; then
  5.                 cannot_connect
  6.         fi
  7. }

  8. function default {
  9.         # First time that the CGI script was called. Show initial HTML page.
  10.         printf 'Content-Type: text/html\r\n\r\n'
  11.         cat << EOF
  12. <html>
  13.         <head>
  14.                 <title>Telnet Shell</title>
  15.         </head>
  16.         <body>
  17.                 <h1>Telnet Shell</h1>
  18.         </body>
  19. </html>       
  20. EOF
  21. }

  22. function cannot_connect {
  23.         printf 'Content-Type: text/html\r\n\r\n'
  24.         cat <<EOF
  25. <html>
  26.         <head>
  27.                 <title>Telnet Shell</title>
  28.         </head>
  29.         <body>
  30.                 <h1>Telnet Shell</h1>
  31.                 <p>Unable to establish connection with $parms</p>
  32.         </body>
  33. </html>
  34. EOF
  35. }

  36. case "${REQUEST_METHOD}" in
  37.         GET)
  38.                 # Retrieve CGI parameter, then start shellinabox with this address
  39.                 parms=`echo $QUERY_STRING`
  40.                 if [ "$parms" != "" ]; then
  41.                         connect $parms
  42.                 else
  43.                         default
  44.                 fi
  45.         ;;
  46.         *)
  47.                 default
  48.         ;;
  49. esac  
复制代码
换了firefox也不管用

国外论坛说问题好像和ajax 有关
我也不懂什么是ajax ??

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 发表于 2013-9-26 16:32:59 | 显示全部楼层
王晓强 发表于 2013-9-26 15:16
直接用secureCRT登录,telnet 虚拟机IP 2001,这是第一台,后续的设备端口递增1.

强哥!首先谢谢你!

但securecrt 要留给gns3用

web-iou用浏览器web console控制

我做联合仿真就很方便了

我看过一个老外的关于web-iou的视频,他的web console功能并没有问题


发表于 2013-9-26 15:16:34 | 显示全部楼层
直接用secureCRT登录,telnet 虚拟机IP 2001,这是第一台,后续的设备端口递增1.
发表于 2013-9-27 10:12:25 | 显示全部楼层
点那个黑的..别点那个白的
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-5-6 21:13 , Processed in 0.082857 second(s), 21 queries , Gzip On.

快速回复 返回顶部 返回列表