Package coro :: Module backdoor
[hide private]
[frames] | no frames]

Module backdoor

source code

Backdoor Python access.

This module implements a server that allows one to telnet to a socket and get a Python prompt in a process.

Simply spawn a thread running the serve function to start a backdoor server.

Classes [hide private]
  backdoor
Functions [hide private]
 
client(conn, addr, welcome_message=None, global_dict=None) source code
 
serve(port=None, ip='', unix_path=None, welcome_message=None, global_dict=None)
Backdoor server function.
source code
Variables [hide private]
  VERSION_STRING = '$Id: //prod/main/ap/shrapnel/coro/backdoor.p...
  __package__ = 'coro'
Function Details [hide private]

serve(port=None, ip='', unix_path=None, welcome_message=None, global_dict=None)

source code 

Backdoor server function.

This function will listen on the backdoor socket and spawn new threads for each connection.

Parameters:
  • port - : The IPv4 port to listen on (defaults to automatically choose an unused port between 8023->8033). May also be a list of ports.
  • ip - : The IP to listen on. Defaults to all IP's.
  • unix_path - : The unix path to listen on. If this is specified, then it will use unix-domain sockets, otherwise it will use IPv4 sockets.
  • welcome_message - : A welcome message to display when a user logs in.
  • global_dict - : The global dictionary to use for client sessions.

Variables Details [hide private]

VERSION_STRING

Value:
'$Id: //prod/main/ap/shrapnel/coro/backdoor.py#6 $'