Package core :: Package controllers :: Package vdaemon :: Module lnxVd :: Class lnxVd
[hide private]
[frames] | no frames]

Class lnxVd




This class represents a linux virtual daemon, a point of entry for metasploit plugins to exploit web applications.


Author: Andres Riancho ( andres.riancho@gmail.com )

Instance Methods [hide private]
  _generateExe(self, shellcode)
This method should be implemented according to the remote operating system.
  _sendExeToServer(self, exeFile)
This method should be implemented according to the remote operating system.
  _cleanUp(self)
Removes the created file and the crontab entry.
  _execShellcode(self)
This method should be implemented according to the remote operating system.
  getOS(self)

Inherited from vdaemon.vdaemon: __init__, getIPAddress, run, setListenPort, setRemoteIP, stop

Inherited from vdaemon.vdaemon (private): _dump, _exec, _handleMetasploit, _sendToMSF

Inherited from threads.w3afThread.w3afThread: start2

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

_generateExe(self, shellcode)

 

This method should be implemented according to the remote operating system. The idea here is to generate an ELF/PE file and return a string that represents it.

This method should be implemented in winVd and lnxVd.
Overrides: vdaemon.vdaemon._generateExe

_sendExeToServer(self, exeFile)

 

This method should be implemented according to the remote operating system. The idea here is to send the exeFile to the remote server and save it in a file.

This method should be implemented in winVd and lnxVd.
Overrides: vdaemon.vdaemon._sendExeToServer

_cleanUp(self)

 
Removes the created file and the crontab entry.

_execShellcode(self)

 

This method should be implemented according to the remote operating system. The idea here is to execute the payload that was sent using _sendExeToServer and generated by _generateExe . In lnxVd I should add self._filename to the crontab .

This method should be implemented in winVd and lnxVd.
Overrides: vdaemon.vdaemon._execShellcode

getOS(self)

 
None