[framework] msfd (tab-completion)

Dennis Günnewig lex001 at gmx.de
Sat Feb 10 14:06:58 CST 2007


Okay, in a bigger environment with more than a handful sensors, another way may be interesting:

o Offering a separate plugin which
	x offers different commands / changes different commands to control a msf-Daemon remotely
	x connects to sensors via a ssh-tunnel
	x sends normal msf-commands over the ssh-tunnel to control the sensor

o Adding another db_table with information about the MSF-Daemon of the sensors (id, name of the sensor, ip, port)

Advantages:
o Managing your whole MSF-Infrastructure whithin one msf-instance --> no change beetwen different msf-instances, no use of CTRL+Z or similar ways

Disadvantages:
o more complex


I think of the following scenario:

linux# ./msfconsole
msf > load mgt_sensors
msf > help

mgt_sensors
=============
sensors_add		- add a new sensor to the list
sensors_del		- delete of an entry in the list
sensors_show		- show list of available sensors
sensors_connect		- connect to a sensor
back			- saves the environment, connection stays open
exit			- closes connection to the sensor
[...]

msf > sensors_show

id	sensor_name	sensor_ip	sensor_port
---	-----------	-------------	-----------
1	dmz		192.168.111.1	55554
2	lan		172.16.111.1	55554
[...]

msf > sensors_connect 1
Building up SSH-Tunnel, please wait
....
msf s:dmz > [...]
msf s:dmz > back #saves the environment, connection stays open
msf >
msf > sensors_connect 1
msf s:dmz > [...]
msf s:dmz > exit #closes connection to the sensor
SSH-Tunnel closing, please wait
....
msf >

-deg

H D Moore schrieb:
> Tab completion isn't supported over the the msfd telnet console. If there 
> is enough interest, this is something we can look into.
> 
> -HD
> 
> On Friday 09 February 2007 17:11, Dennis Günnewig wrote:
>> i just try to use the msf-daemon (msfd). It works quite fine except of
>> missing tab-completion-support and missing support of the
>> special-function-keys - eg. up, down, left, right, back. It seems to
>> me, that the daemon is not able to interpret the keycodes (correctly).
>> What I've to do to get things working or is it up to somebody familiar
>> with ruby to change some sources of the framework?
>>
>> If there any posts concerning this issue I've overseen, do not hesitate
>> to send me a link to this post(s). :-)
> 



More information about the framework mailing list