mailing list archives
Meterpreter SSHClient - Deploy + Run - Script
From: Oliver Kleinecke <okleinecke () web de>
Date: Tue, 20 Apr 2010 16:52:48 +0200
I finally finished my tiny meterpreter-script to deploy + run a
sshclient (plink) on the target-machine directly from the meterpreter
console. Following hdm`s advice, I publish it here via the mailing list,
to see if it can be useful for anybody else, too.
It offers nearly all features of plink, and uses the
meterpreter-functionality to offer features like starting a hidden/faked
process directly out of ram or adding the hostkey of the server to the
list of known hosts before running the client itself (for use with
"no-shell/tunnel - mode"). The required plink.exe will be downloaded to
the users homedir on first run, any files that may eventually be
uploaded to the meterpreter-client will be automatically deleted when
the script (client) terminates, as well as any reg-key that has been
added by the script.
I attached the script to this mail, just copy it to your
<msf3>/scripts/meterpreter directory, if you wish to test it.
To display usage options, just use the "-h"-parameter, or take a look at
Initial testing (2 days ;) ) has been done, please tell me if you
encounter any bugs/want to give some code-advice or wish to have any
special features added.
Any feedback is very appreciated.
Oliver "illegalguy" Kleinecke
- Meterpreter SSHClient - Deploy + Run - Script Oliver Kleinecke (Apr 20)