1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00
Commit Graph

34 Commits

Author SHA1 Message Date
Brent Cook
b30d2df4ad update and integrate libpcap for POSIX meterpreter
I am working on automating POSIX meterpreter builds, and one step is
removing the requirement to download files from external sites during
the build process. So, this incorporates the latest stable libpcap
source and updates the patches as needed.

The Makefile also moves (@wvu-r7 was amused that Makefile.pcap wasn't
actually a pcap file :) and simplifies a little build foo.

I updated and got the 64-bit kernel + 32-bit userspace TPACKET v1 patch
merged upstream, but its not in a release yet, so the patch is still
needed. See https://github.com/the-tcpdump-group/libpcap/pull/421
2015-03-24 10:28:58 -05:00
Brent Cook
99cf4da2d4 be more clever about cleanup by not making a mess 2015-01-13 17:24:05 -06:00
Brent Cook
33def7654a do a little dance around older compilers 2015-01-13 17:21:43 -06:00
Brent Cook
0d59fc7447 support building on newer Linux systems and Makefile cleanups
- try to share some bits between different makefiles, make modifying
   global compiler flags not such a huge pain.
 - directly specify we should be using the gold rather than bpf linker
 - make compiler output largely quiet except where we care - allow
   warnings to actually be visible
 - don't delete downloaded tarballs with --really-clean
 - add missing dependencies between libraries
   (--no-add-needed/--no-copy-dt-needed-entries causes lots of trouble)
 - update readme to show what to install to build

I made minimal changes to the loader makefile - it breaks easily.
 -Os prevents if from being able to load libc, for instance
2015-01-13 16:33:56 -06:00
Brent Cook
db4ad41512 allow build_tmp to be a symlink
Remove assumption of relative paths to allow build_tmp to be a symlink.
This fixes builds when the working directory is a vmware share.
2014-12-16 12:01:01 -06:00
jvazquez-r7
12080e806f [SeeRM #6355] Fix sniffer extension on 64bits machines 2014-07-11 15:42:59 -05:00
Tod Beardsley
baea22f96c Bump to 0.9.8za (CVE-2014-0224 and friends)
Meterpreter's build scripts dynamically pull in OpenSSL from the
canonical remote site, https://openssl.org.

This ensures that we pull in 0.9.8za, which is patched against the
various OpenSSL vulns described at

https://www.openssl.org/news/secadv_20140605.txt

The SHA1sum should be:

adca1eb1a103a5536b24e1ed7e45051e2939731  openssl-0.9.8za.tar.gz

The MD5sum should be:

2f989915f8fea49aa1bc37aa58500cce  openssl-0.9.8za.tar.gz
2014-06-05 11:57:31 -05:00
OJ
e3628d0662 Change make script to work from correct folder
The existing make file would use `pwd` to figure out the current
folder instead of using the base directory of the script. This
causes issues when running commands from different locations (such
as in the case of from the meterpreter_binds folder).

This commit fixes this problem.
2014-03-12 17:25:22 +10:00
Meatballs
5db286bc4b Dont trust http... 2014-01-07 12:48:39 +00:00
Meatballs
c5bcc09f81 No line wrap 2014-01-07 12:46:52 +00:00
Meatballs
2e54b4733e Use full dns name 2014-01-07 12:45:09 +00:00
James Lee
e004437a02 More Makefile clean up
You can now type 'make && make install' if your framework checkout is in
the same directory as meterpreter.
2013-03-19 17:10:13 -05:00
James Lee
247e3d8006 Use a proper Makefile for libc 2013-03-14 13:18:44 -05:00
Joshua Drake
b820d3ec74 Posix meterpreter makefile changes
* Cleans more things
* No longer removes outputs on clean
* Changes tmp directory to be more descriptive
2013-02-22 17:55:56 -06:00
James Lee
e147ea40b3 Fix Makefile and add missing so2h.pl 2012-11-19 17:56:44 -06:00
James Lee
7283131279 Initial source import from metasploit-framework 2012-11-19 16:46:07 -06:00
jlee-r7
964bae0c49 Initial commit 2012-11-19 14:40:03 -08:00
Joshua J. Drake
75fdad51f9 Revert "Change temporary directory name, clean more things"
This reverts commit 302f20e089f3c1a462e12d6ed3b6f72292024e7f.
2013-01-07 22:04:38 -06:00
Joshua J. Drake
2ab5a9c61c Revert "Do not remove outputs on clean"
This reverts commit 3f2430a8a07ade5d727b9c119fdf64ae0831fc47.
2013-01-07 22:04:27 -06:00
Joshua J. Drake
9cc24262da Do not remove outputs on clean 2012-12-29 00:55:41 -06:00
Joshua J. Drake
5e3785e60c Change temporary directory name, clean more things 2012-12-29 00:49:10 -06:00
James Lee
eb4def010c Ensure the dir exists before copying files there
Thanks MM for pointing out that this was missed.  The other dirs
referenced in #183 were addressed in 134b6c874fcb363594103f082bc2bacf8a0bd2c7

[Closes #183]
2012-02-22 20:54:20 -07:00
James Lee
77e84abbb0 Compile pcap without libnl since bionic doesn't have headers
Fixes build on systems that have libnl installed.
2012-02-18 11:41:09 -07:00
James Lee
8d051a98d6 Fix brokenness with the debug target
If a test returns false, make exits.  Duh.

[Fixes #6343]
2012-02-14 16:56:48 -07:00
James Lee
0af36e0712 Adds a depclean target
Don't blow away libc with the "clean" target because I'm tired of
rebuilding everything.
2012-02-13 17:59:01 -07:00
James Lee
d493848e40 Add a 'debug' target for posix meterpreter build
This new target adds debugging symbols and doesn't strip binaries. New
bins are considerably bigger, but may be more helpful when diagnosing
problems or adding new features.

[Fixes #6343]
2012-02-10 15:57:01 -07:00
James Lee
c3be8f5b23 Just rm libpcap add re-extract instead of cleaning
It's faster.
2012-02-02 00:14:38 -07:00
James Lee
e7455cd244 Add clean targets for openssl and libpcap
Also, a 'really-clean' target that does everything
2012-01-27 17:20:36 -07:00
James Lee
3ded02ae3e Add -m32 to all the Makefiles
This is in an attempt to get it compilation working on 64-bit hosts.
2012-01-27 17:20:36 -07:00
James Lee
808dd72cc5 meterpreter compiles on modern linux! see #2418
git-svn-id: file:///home/svn/framework3/trunk@13333 4d416f70-5f16-0410-b530-b9f4589650da
2011-07-25 07:59:51 +00:00
James Lee
05bb0342ca add a 'clean' target
git-svn-id: file:///home/svn/framework3/trunk@13328 4d416f70-5f16-0410-b530-b9f4589650da
2011-07-24 19:25:19 +00:00
pks
c1153272b2 Initial import of networkpug, a pivoting interface using libpcap to monitor/inject packets on a interface on the remote machine.
git-svn-id: file:///home/svn/framework3/trunk@10423 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-21 09:35:46 +00:00
Joshua Drake
b7c3b14dd9 merge in another posix meterpreter update from philip, see #2418
git-svn-id: file:///home/svn/framework3/trunk@10307 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-13 14:44:00 +00:00
Joshua Drake
4178cfdeca commit some fixes from philip, see #2418
git-svn-id: file:///home/svn/framework3/trunk@10275 4d416f70-5f16-0410-b530-b9f4589650da
2010-09-09 15:51:30 +00:00