Commit Graph

19 Commits (1183c5cfebb6c5fea147961d065bc93d0507a646)

Author SHA1 Message Date
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
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
Carlos Perez 13f357fedb Fixed option parsing
git-svn-id: file:///home/svn/framework3/trunk@11608 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-20 14:29:22 +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
Carlos Perez 78a62d33c5 scripts will now handle # for comments and empty lines in lists and resource files
git-svn-id: file:///home/svn/framework3/trunk@11339 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-15 01:24:27 +00:00
Carlos Perez ab2220f13d removed status printing and unused variables
git-svn-id: file:///home/svn/framework3/trunk@10793 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-23 14:40:49 +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
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
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 134c8d75d7 better option handling, beginnings of universal -h support
git-svn-id: file:///home/svn/framework3/trunk@7253 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-25 18:36:47 +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
James Lee 15f8538e1c spaces --> tabs
git-svn-id: file:///home/svn/framework3/trunk@7249 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-25 17:44:53 +00:00
kris a9791f2b28 just more typos, etc
git-svn-id: file:///home/svn/framework3/trunk@7140 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-11 17:30:24 +00:00
Carlos Perez 6decdc57b3 Updated for Ruby 1.9.1
git-svn-id: file:///home/svn/framework3/trunk@6684 4d416f70-5f16-0410-b530-b9f4589650da
2009-06-20 17:47:37 +00:00
Carlos Perez 9e28205d16 Updated for Ruby 1.9.1
git-svn-id: file:///home/svn/framework3/trunk@6680 4d416f70-5f16-0410-b530-b9f4589650da
2009-06-20 16:15:46 +00:00
Carlos Perez 66a7cc1a88 Script for Running the WMIC command tool on the target host.
git-svn-id: file:///home/svn/framework3/trunk@6647 4d416f70-5f16-0410-b530-b9f4589650da
2009-06-14 01:54:35 +00:00