PaulDotCom mailing list archives
Meterpreter screenshot script
From: carlos_perez at darkoperator.com (Carlos Perez)
Date: Wed, 18 Mar 2009 06:53:18 -0400
We can channelizing the execution but the vbscript would have to give feedback by printing to standard out that is still compressing, something like a counter so that will not timeout. My skills in vbscripting are fairly crude since I have not written in it for almost 6 years so I'm fairly limited in what I can offer there and would have to research it. On Tue, 2009-03-17 at 20:59 -0500, John wrote:
There are two sleep commands in the screenshot script. The first is in the VBS code, which, as Carlos stated, is to give the script time to create the zip file. Apparently if the script exits before the file is created, it doesn't finish. The second sleep is in Ruby that makes the script pause long enough for the spawned VBS to finish. If that isn't there, then the script will attempt to send the non-existent zip, resulting in an error. This was my first Meterpreter script, and I'm still figuring out Rex. Would channelizing the execution of the VBS allow me to block until the it has had a chance to finish? This could also assist in providing error messages if something goes wrong. On Tue, 2009-03-17 at 21:39 -0400, Carlos Perez wrote:That is a idea I have been considering, that is why I have been making all of my scripts as modular as possible. I can make a small library of all my functions, clean them up a bit a document them if you guys want, what do you guys think? one question John I'm thinking of modifying the vb script to accept arguments so it can be easier to re-use the code, why do you do a "wScript.Sleep 1000"? is it to give enough time for the zip to happen? cheers, Carlos On Tue, 2009-03-17 at 20:09 -0500, John wrote:Glad you like it. Feel free to use the zip function anywhere you want. It can probably be improved some, its pretty basic as is. Does anyone use an external library of functions for their scripts to implement features not yet part of Rex? I'm thinking that throwing together some basic functions for deleting remote files, creating zips, etc might be handy for quick script development. On Tue, 2009-03-17 at 20:41 -0400, Carlos P?rez wrote:very cool script bro if I say so my self, I like the zip part, that is wicked cool!! I hope you don't mind if I use it for other scripts I have. Sent from my iPhone On Mar 17, 2009, at 7:52 PM, John Miller <johnemiller at gmail.com> wrote:I posted this on the PDC forum, but thought I'd send it to the list as well: I need to duplicate functionality of the screenshot module in Impact with MSF, so I created a Meterpreter screenshot script. Borrowing heavily from Darkoperator's memdump script, screenshot uploads the GPL'd command line screen capture application, boxcutter. Boxcutter returns an uncompressed bitmap, which is a bit slow to transfer when seconds count, so I added a function to create a VBscript that zips the image, cleaning up nicely after itself. Check it out at http://ethackal.com/news/metasploit-meterpreter-script-screenshot/. _______________________________________________ Pauldotcom mailing list Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com_______________________________________________ Pauldotcom mailing list Pauldotcom at mail.pauldotcom.com http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom Main Web Site: http://pauldotcom.com
Current thread:
- Meterpreter screenshot script John Miller (Mar 17)
- Meterpreter screenshot script Carlos PĂ©rez (Mar 17)
- Meterpreter screenshot script John (Mar 17)
- Meterpreter screenshot script Carlos Perez (Mar 17)
- Meterpreter screenshot script John (Mar 17)
- Security in The Cloud John Fitzpatrick (Mar 17)
- Security in The Cloud Joel Esler (Mar 17)
- Security in The Cloud Jack Daniel (Mar 18)
- Security in The Cloud Zach Lanier (Mar 18)
- Meterpreter screenshot script John (Mar 17)
- Meterpreter screenshot script Carlos Perez (Mar 18)
- Meterpreter screenshot script Carlos PĂ©rez (Mar 17)