Brent Cook
aa03db1f5c
update meterpreter scripts to check the right prerequisites
2017-04-25 23:31:39 -05:00
William Vu
1791f209fa
Revert "delete meterpreter scripts with replacement post modules"
...
This reverts commit 13b06db48e
.
2017-01-29 14:10:21 -06:00
Brent Cook
13b06db48e
delete meterpreter scripts with replacement post modules
2017-01-12 14:12:16 -06:00
Brent Cook
57ab974737
File.exists? must die
2016-04-21 00:47:07 -04:00
sinn3r
5e076e0375
Text about not accepting changes to meterpreter scripts
2014-09-16 16:41:14 -05:00
OJ
9fb081cb2d
Add getenvs, update getenv, change extract_path use
...
Stacks of modules were using `extract_path` where it wasn't really semantically correct
because this was the only way to expand environment variables. This commit fixes that
up a bit.
Also, I changed the existing `getenv` function in `stdapi` to `getenvs`, and had it
support the splat operator. I added a `getenv` function which is used just for a
single variable and uses `getenvs` behind the scenes.
The meterpreter console `getenv` command now uses `getenvs`
2013-12-19 11:54:34 +10:00
OJ
5fc9706268
Use Rex.sleep instead of sleep
2013-11-27 07:51:11 +10:00
OJ
388064b78b
Add -x and -s parameters to uploadexec
...
Added -x parameter to the script which indicates that the underlying
meterpreter session should be terminated when the execution has
finished.
Added -s parameter which takes a floating point number as an arg
which indicates the number of seconds to sleep between uploading
and executing. This helps in the case where http(s) payloads are
used for meterpreter and a time delay is needed to make sure that
the file has been written to disk and the lock released prior to
attempting to executing it.
2013-11-22 18:59:01 +10:00
Tab Assassin
2e8d19edcf
Retab all the things (except external/)
2013-09-30 13:47:53 -05:00
James Lee
ca53c6f15b
Remove Id tags in scripts/
2013-09-17 10:42:58 -05:00
Joshua Drake
62c8c6ea9f
big msftidy pass, ping me if there are issues
...
git-svn-id: file:///home/svn/framework3/trunk@14034 4d416f70-5f16-0410-b530-b9f4589650da
2011-10-23 11:56:13 +00:00
Jonathan Cran
e8bf4118b1
awww, platfom =/= platform
...
git-svn-id: file:///home/svn/framework3/trunk@11583 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-16 05:23:57 +00:00
Carlos Perez
1ebdc631b1
fixed problem with platform check on scripts
...
git-svn-id: file:///home/svn/framework3/trunk@11527 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-10 00:35:45 +00:00
Joshua Drake
9c54152d81
fail on errors
...
git-svn-id: file:///home/svn/framework3/trunk@10602 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-08 17:27:02 +00:00
Carlos Perez
7d665e8a8d
All scripts that are not platform dependednt will check for version, windows specific will only run on win32, win64 and some on PHP
...
git-svn-id: file:///home/svn/framework3/trunk@10277 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-09 16:09:27 +00:00
Carlos Perez
08aac797f5
resolved function name conflict with mixin
...
git-svn-id: file:///home/svn/framework3/trunk@9762 4d416f70-5f16-0410-b530-b9f4589650da
2010-07-10 13:44:26 +00:00
James Lee
1fe426bcf5
look for the dot, too
...
git-svn-id: file:///home/svn/framework3/trunk@9219 4d416f70-5f16-0410-b530-b9f4589650da
2010-05-04 23:06:25 +00:00
James Lee
2e926a1c22
make the extension check more generic
...
git-svn-id: file:///home/svn/framework3/trunk@9218 4d416f70-5f16-0410-b530-b9f4589650da
2010-05-04 23:01:05 +00:00
Joshua Drake
81f9b0285f
fix silly regex error when scanning extension
...
git-svn-id: file:///home/svn/framework3/trunk@9217 4d416f70-5f16-0410-b530-b9f4589650da
2010-05-04 22:41:57 +00:00
James Lee
8aa3a985da
spacing and -h
...
git-svn-id: file:///home/svn/framework3/trunk@7359 4d416f70-5f16-0410-b530-b9f4589650da
2009-11-05 00:33:37 +00:00
James Lee
0a6bb91cb9
keywords
...
git-svn-id: file:///home/svn/framework3/trunk@7276 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-26 15:14:28 +00:00
Mario Ceballos
3d3e031690
fixes ticket 419
...
git-svn-id: file:///home/svn/framework3/trunk@7274 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-26 11:21:23 +00:00
HD Moore
b0a38b1cfa
Fix bad uses of puts() and add raise Rex::Script::Completed where appropriate. These still need a major overhaul to fix tab indents and other problems
...
git-svn-id: file:///home/svn/framework3/trunk@7258 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-25 20:57:23 +00:00
James Lee
e836e6373a
add Id to scripts; remove shebang since they should never run from commandline
...
git-svn-id: file:///home/svn/framework3/trunk@7252 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-25 18:04:39 +00:00
Carlos Perez
627f0b7261
Fixed problem when parsing options
...
git-svn-id: file:///home/svn/framework3/trunk@7152 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-12 23:42:50 +00:00
Carlos Perez
b2da01a91a
Cleanned up a bit the code and added delete option after upload
...
git-svn-id: file:///home/svn/framework3/trunk@6892 4d416f70-5f16-0410-b530-b9f4589650da
2009-07-24 23:41:07 +00:00
kris
a13a923cba
typos
...
git-svn-id: file:///home/svn/framework3/trunk@6891 4d416f70-5f16-0410-b530-b9f4589650da
2009-07-24 21:22:20 +00:00
Carlos Perez
19f1d59d5d
Meterpreter Script for uploading and executing an executable with options
...
git-svn-id: file:///home/svn/framework3/trunk@6889 4d416f70-5f16-0410-b530-b9f4589650da
2009-07-24 18:26:38 +00:00