Rapid7 Vulnerability & Exploit Database

PHP IRC Bot pbot eval() Remote Code Execution

Back to Search

PHP IRC Bot pbot eval() Remote Code Execution

Disclosed
11/02/2009
Created
05/30/2018

Description

This module allows remote command execution on the PHP IRC bot pbot by abusing the usage of eval() in the implementation of the .php command. In order to work, the data to connect to the IRC server and channel where find pbot must be provided. The module has been successfully tested on the version of pbot analyzed by Jay Turla, and published on Infosec Institute, running over Ubuntu 10.04 and Windows XP SP3.

Author(s)

  • evilcry
  • Jay Turla
  • bwall
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Unix,Windows

Architectures

cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/misc/pbot_exec
msf exploit(pbot_exec) > show targets
    ...targets...
msf exploit(pbot_exec) > set TARGET < target-id >
msf exploit(pbot_exec) > show options
    ...show and set options...
msf exploit(pbot_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;