1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00
Commit Graph

563 Commits

Author SHA1 Message Date
OJ
c6bdc26a55 Update Meterpreter to use the RDI submodule 2013-11-27 14:01:45 +10:00
OJ
5280bb7b06 Remove RDI from the source
Also move the delay loading code to another location as this isn't part of
the RDI source, but was included there beforehand.
2013-11-27 12:52:17 +10:00
James Lee
970713114d Land #55, check_key_exists 2013-11-25 16:07:51 -06:00
OJ
db764771a2 Add check_key_exists registry function
MSF side has been attempting to open keys to see if they exist, which isn't
fantastic as it results in an error. This change adds a function which indicates
to the caller if the given reg key exists.
2013-11-25 16:17:32 +10:00
Tod Beardsley
3cf63909a7 Land #54 to fix RM8696
[FixRM #8696]
2013-11-22 09:56:17 -06:00
OJ
5812d59059 Fix meterpreter not shutting down properly
The work that was done a while back to fix up command dispatching allowed
inline commands to run so that the server could be told to shutdown. Those
commands that want the server to terminate (such as migrate and shutdown)
should have returned `FALSE` instead of `TRUE` to tell the server thread to
stop.

I have no idea why those values were incorrect, but it's my work so it's
definitely my fault. I will have to sick back and lick my wounds for a while.
I hate it when I'm stupid.

Thanks to Kevin Mitnick for the bug, and @todb-r7 for the investigating the
history.

Redmine: [FixRM #8696]
2013-11-22 12:38:50 +10:00
James Lee
3fd2153027 Land #45, extapi 2013-11-21 11:35:26 -06:00
James Lee
46126ac21f Land #53, warnings as errors 2013-11-21 11:12:55 -06:00
OJ
5a1d5bbbe9 Set "warnings as errors"
Now that the build is clean, warnings are now errors to keep it clean.
2013-11-20 11:35:43 +10:00
Tod Beardsley
b309e30a9f Land #50, be cool about pssdk being missing 2013-11-14 12:35:58 -06:00
Tod Beardsley
93ab2412f1 Be more explicit about why this is okay.
Also get rid of the quotes, windows ECHO don't care.
2013-11-14 12:23:07 -06:00
jvazquez-r7
a1130e76e1 Land #49 @OJ's fix for something which recover clean builds 2013-11-14 09:02:44 -06:00
jvazquez-r7
fb7a00ec35 Land #51, @OJ deletion of kitrap0d from getsystem 2013-11-14 08:41:31 -06:00
OJ
8ef0a425f1 Make builds 100% clean 2013-11-14 19:45:09 +10:00
OJ
35fad79cf0 Merge branch 'warning_removal' into ext_server_extapi 2013-11-14 19:34:44 +10:00
OJ
70d958b729 Remove last of the warnings/errors after merging 2013-11-14 19:33:20 +10:00
OJ
1c09ac08d5 Merge branch 'master' into warning_removal 2013-11-14 19:20:27 +10:00
James Lee
572af2c761 Land, #47 doc updates 2013-11-14 02:57:16 -06:00
James Lee
454e56adb3 Land #44, fix webcam crashes 2013-11-14 02:50:28 -06:00
James Lee
b391792bd1 Land #38, scheduler and channel refactor 2013-11-14 01:04:45 -06:00
OJ
c95f3c45fc Merge branch 'kernelsmith-fix' into ext_server_extapi 2013-11-14 12:32:06 +10:00
kernelsmith
3662795176 fix typo in comment 2013-11-14 10:23:42 +09:00
OJ
f5090d6697 Fix POSIX crash on unsupported command and channel term
Crashes were occuring when the underlying channel had no more output
because the value of the `bytesRead` variable was not set to zero.
Consumers of the function assumed that bytesRead was value if non-zero.

POSIX would also hang when unsupported commands are executed, this
commit changes this so that a response is returned when the command
isn't supported.
2013-11-13 14:05:08 +10:00
OJ
a9abe738a1 Remove evidence of kitrap0d
This exploit has been causing crashes and BSODs on various systems and
hence is deemed too unstable to be included in the default deployment of
Meterpreter. `getsystem` should only contain code which attempts to get
SYSTEM privileges via safe means; it should not have exploits in it.

This commit removes kitrap0d from `getsystem`. The code will be moved to a
windows local exploit in MSF instead.
2013-11-08 11:34:46 +10:00
OJ
016d24aec0 Fix double-free issue resulting crash
Note: webcam stuff doesn't work on Windows 2012. Work needs to be done to
make it work on this platform because the DX classes used to do the webcam
capture are not present on the system.
2013-11-08 08:49:21 +10:00
OJ
6571b25905 Update make to be more sensible with PSSDK
Messages are output at the end of the build if PSSDK dependency not met.
2013-11-08 08:07:29 +10:00
OJ
407fce7ef8 Fix call to thread_create 2013-11-08 07:22:59 +10:00
OJ
49461c0382 Merge branch 'master' into webcam_crash_fix 2013-11-08 07:21:11 +10:00
James Lee
07aec8068b Land #40, fix for ipv6 ipconfig 2013-11-07 14:44:27 -06:00
OJ
d93a78e305 Merge branch 'upstream/master' into channel_refactor_2
Conflicts:
	source/common/arch/posix/scheduler.c
	source/common/arch/win/scheduler.c
2013-11-07 08:09:51 +10:00
James Lee
3cbf7486d4 Land #34, command refactor 2013-11-06 15:33:52 -06:00
James Lee
11d39347b4 Fix typo 2013-11-06 15:30:11 -06:00
OJ
927ca7812e Thanks to @brandont-r7 for catching the last of the issues 2013-11-07 06:52:16 +10:00
OJ
cc862ea96e Final fixes to previous mistake 2013-11-06 20:07:12 +10:00
OJ
6bd447a5fe Update bare extension to VS2013 and no warnings 2013-11-06 19:58:09 +10:00
OJ
0656a34115 Last tiday of extapi project file 2013-11-06 19:53:37 +10:00
OJ
419078c966 Remove final warning from the build 2013-11-06 19:44:10 +10:00
OJ
7702724fd2 Remove all warnings resulting in totally clean builds
Does as it says on the tin. Various tweaks made to source and to project
files to make the builds come out with ZERO warnings.

Let's keep it clean from here!
2013-11-06 19:02:50 +10:00
Tod Beardsley
8eebd631f0 Minor README update warning against VS2012. 2013-11-06 19:02:45 +10:00
Tod Beardsley
dcdbb4228e Land #48, containing #39, #42, and #43
This lands #39, #42, and #43. #34 still needs work.
2013-11-05 20:07:26 -06:00
Tod Beardsley
4d0bea22e9 Empty commit to close #46.
Closes #46. Now that these PRs are landed, no need to keep #46 open.
Discussion should continue on #34 and possibly #38.
2013-11-05 20:05:47 -06:00
Tod Beardsley
ca20beb447 Post V2013, Land #43, getproxy
See also #46
2013-11-05 20:00:29 -06:00
Tod Beardsley
8f3dfc575d Post V2013, Land #42, update incognito
See also #46
2013-11-05 19:59:56 -06:00
Tod Beardsley
48c61f2840 Post V2013, Land #39, sysinfo for 8.1/2012R2
See also #46
2013-11-05 19:58:22 -06:00
OJ
2495933d2b Docs for list, xor and remote 2013-11-06 11:38:22 +10:00
OJ
afc88f9437 Remove use of BREAK_ON_ERROR from posix code
POSIX no likey BREAK_ON_ERROR, it fails at runtime. Replaced with portable code.
2013-11-05 10:42:49 +10:00
OJ
fb4b6f6398 Remove unused forward declarations 2013-11-05 07:52:04 +10:00
OJ
227335c312 Clean, tidy and add documentation
This commit tidies up the webcam code, adds documentation and adds a
couple of small clean-ups and optimisations around resource usage.

`audio.h` is not included in `webcam.h` any more as it's not needed at all
by that code, however it has been added to `precomp.h` so that `stdapi.c`
can use and see it along with the other files.
2013-11-03 20:00:35 +10:00
OJ
e7f5764d14 Merge branch 'master' into webcam_crash_fix 2013-11-03 17:11:12 +10:00
OJ
b5a6bc9e80 Proper DIB offset calculation
This fixes the issue where the calculation for the offset of the image
data was incorrect. Instead of just looking at the first byte past the end
of the BITMAPINFOHEADER we now correctly calculate the offset past the
color palette and begin reading the image there. This stops the problems
where sometimes the image looked like it had been shifted, or other cases
where the image colors went retro.
2013-11-03 11:09:51 +10:00