【问题标题】:Cygwin reverse shell xdebug Windows 7 Komodo session not working?Cygwin 反向 shell xdebug Windows 7 Komodo 会话不起作用?
【发布时间】:2012-04-29 15:20:23
【问题描述】:

我有一个带有 xdebug 2.0.3 的网络服务器和带有 Windows 7 64 位的 Komodo 6,但我无法连接到 xdebug?我用 cygwin 尝试了一个反向 shell,我可以连接到我的服务器,但是当我在 Komodo 中尝试调试器选项时,它给了我一个错误。在 Komodo 中,我打开了一个远程 ftp 会话以从主机加载我的文件。通常在 Linux 上,它与反向 shell 一起工作。

编辑:这有点在我头上,所以我正在尝试调试我的本地虚拟机,但 Komodo 给我这个错误无法绑定到本地端口 9000 并且我没有防火墙。当我使用我的 Opera 扩展在浏览器窗口中启用调试时,我会在我的 xdebug 日志中找到成功消息客户端,当我加载我的 html 页面但加载后连接关闭并且它也没有在我的断点处中断。这是消息日志的输出:

  Log opened at 2012-04-30 08:48:40
  I: Checking remote connect back address.
  I: Remote address found, connecting to 127.0.0.1:9000.
  I: Connected to client. :-)
  -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/
  xdebug" fileuri="file:///htdocs/typo3_src-4.7.0/index.php" language="PHP"       
  protocol_version="1.0" appid="5101" idekey="komodo-xdebug"><engine     
  version="2.2.0rc2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></
  author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 
  2002-2012 by Derick Rethans]]></copyright></init>
  -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/ 
  xdebug" status="stopping" reason="ok"></response>

 Log closed at 2012-04-30 08:48:41

我的网络服务器是一个带有 FastCGI 的 lighttpd 但这不应该是问题,因为我已经让它与远程主机和反向 shell 一起工作,但在 Windows 7 和 Vmware 或 Vmware 中没有?我目前正在阅读这篇文章http://forums.netbeans.org/topic1513-30.html,希望对您有所帮助。

我也看不到服务器正在侦听端口 9000。这是 Vmware 问题吗?

编辑:我让它在我的虚拟机上运行,​​但我仍然有兴趣解决这个问题:

  1. xdebug 从主机连接到虚拟机
  2. xdebug 从主机连接到远程机器(它适用于我,但只能使用反向 shell)
  3. xdebug 从虚拟机连接到远程机器(尚未测试)

有趣的是在 Windows 7 中进行开发:

  1. xdebug 从 Windows 7 连接到远程计算机
  2. 从 Windows 7 到虚拟机的 xdebug 连接

【问题讨论】:

标签: cygwin vmware xdebug komodo


【解决方案1】:

使用debugger connection preferences将虚拟机的IP地址设置为debugger proxy。将 Komodo 侦听的端口从默认值 9000 更改为 a system provided free port、8080 或您的虚拟主机或 localhost 正在运行的任何端口。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-14
    • 2023-03-16
    • 2015-04-10
    • 2020-05-28
    • 1970-01-01
    相关资源
    最近更新 更多