Skip to content

Commit

Permalink
delete Linux meterpreter support
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb authored and Brent Cook committed May 14, 2017
1 parent 24db1df commit 0a2d768
Show file tree
Hide file tree
Showing 2,506 changed files with 177 additions and 234,746 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
@@ -1,10 +1,5 @@
language: c
script: cd c/meterpreter && make
script: make

notifications:
irc: "irc.freenode.org#msfnotify"

before_install:
- sudo apt-get update
- sudo apt-get install jam
- sudo apt-get install gcc-multilib
12 changes: 2 additions & 10 deletions Makefile
@@ -1,20 +1,12 @@
DATADIR:=../metasploit-framework/data
METERPDIR:=$(DATADIR)/meterpreter

install: install-c-posix \
install-c-windows \
install: \
install-c-windows \
install-java \
install-php \
install-python

install-c-posix:
@echo "Installing Linux payloads"
@if [ `uname -s` = "Linux" -a -e c/meterpreter/data/meterpreter/msflinker_linux_x86.bin ]; then \
cd c/meterpreter; make install; \
else \
echo "Note: Linux not built, or not on a Linux OS, skipping"; \
fi

install-c-windows:
@echo "Installing Windows payloads"
@if [ -d c/meterpreter/output/x86 ]; then \
Expand Down
10 changes: 0 additions & 10 deletions c/meterpreter/.gitignore
Expand Up @@ -47,16 +47,6 @@ source/jpeg-8/Backup/*
*.suo
*.ncb

# ignore posix temp stuff
posix-meterp-build-tmp/*
data/meterpreter/*
source/server/rtld/elf2bin
source/server/rtld/lib*
source/server/rtld/msflinker
source/server/rtld/msflinker.bin
source/server/rtld/rtldtest
build.log

# Doxygen output
docs/*

Expand Down
45 changes: 0 additions & 45 deletions c/meterpreter/LICENSE
Expand Up @@ -49,42 +49,6 @@ Files: source/common/zlib/* source/server/zlib/*
Copyright: 1995-1996 Jean-loup Gailly and Mark Adler
License: Zlib

Files: source/bionic/libc/*
Copyright: 2005-2008, The Android Open Source Project
2004 by Internet Systems Consortium, Inc. ("ISC")
1995,1996,1999 by Internet Software Consortium
1995 by International Business Machines, Inc.
1997,1998,1999,2004 The NetBSD Foundation, Inc.
1993 Christopher G. Demetriou
1983,1985,1989,1993 The Regents of the University of California
2000 Ben Harris
1995,1996,1997,1998 WIDE Project
2003 Networks Associates Technology, Inc.
1993 by Digital Equipment Corporation
1997 Mark Brinicombe
1993 Martin Birgmeier
1993 by Sun Microsystems, Inc.
1997, 2005 Todd C. Miller <Todd.Miller@courtesan.com>
1995, 1996 Carnegie-Mellon University
2003 Networks Associates Technology, Inc.
License: BSD-3-clause and BSD-4-clause

Files: source/bionic/libdl/*
Copyright: 2007 The Android Open Source Project
License: BSD-3-clause

Files: source/bionic/libm/*
Copyright: 2003, Steven G. Kargl
2003 Mike Barcroft <mike@FreeBSD.org>
2002-2005 David Schultz <das@FreeBSD.ORG>
2004 Stefan Farfeleder
2003 Dag-Erling Coïdan Smørgrav
1996 The NetBSD Foundation, Inc.
1985,1988,1991,1992,1993 The Regents of the University of California
1993,94 Winning Strategies, Inc.
1993, 2004 by Sun Microsystems, Inc.
License: BSD-2-clause and BSD-3-clause and BSD-4-clause

Files: source/extensions/espia/screen.c
Copyright: 1994-2008, Mark Hammond
License: BSD-2-clause
Expand All @@ -104,15 +68,6 @@ Comment: HD Moore holds a single-seat developer license for the Packet Sniffer
SDK library embedded into the Meterpreter Sniffer extension. This
source code is not distributed with Metasploit Framework.

Files: deps/libressl/*
Copyright: 1998-2012 The OpenSSL Project
License: OpenSSL and SSLeay
portions are ISC or public domain

Files: source/server/posix/sfsyscall.h
Copyright: 2003 Philippe Biondi <biondi@cartel-securite.fr>
License: LGPL

Files: source/jpeg-8/*
Copyright: 1991-2010, Thomas G. Lane, Guido Vollbeding
License: BSD-3-clause
Expand Down
159 changes: 0 additions & 159 deletions c/meterpreter/Makefile

This file was deleted.

47 changes: 0 additions & 47 deletions c/meterpreter/Makefile.common

This file was deleted.

41 changes: 4 additions & 37 deletions c/meterpreter/README.md
Expand Up @@ -6,7 +6,7 @@ Building - Windows

As of [commit
a2888b1b4862819c9aae81bf46d8c92d8164c598](https://github.com/rapid7/meterpreter/commit/a2888b1b4862819c9aae81bf46d8c92d8164c598),
Meterpreter is built with [Visual Studio 2013 Express for
Windows Meterpreter is built with [Visual Studio 2013 Express for
Desktop][vs_express] or any paid version of [Visual Studio
2013][vs_paid]. Earlier toolsets on Windows are no longer supported --
this includes Visual Studio 2012. Make sure that the version that you
Expand Down Expand Up @@ -84,37 +84,6 @@ From your git console, please run:
$ git submodule init && git submodule update
```

Building - POSIX
================
You will need:
- A compiler toolchain (build-essential package on Ubuntu)
- gcc-multilib, if you're building on a 64-bit machine
- jam
- wget
- flex

On Ubuntu 14.04:
apt-get install gcc jam make flex bison gcc-multilib

On Fedora 21:
yum install gcc jam make flex patch bison glibc-devel.i686 libgcc.i686

Meterpreter requires libpcap-1.1.1 and OpenSSL 0.9.8za sources, which it
will download automatically during the build process. If for some
reason, you cannot access the internet during build, you will need to:

- wget -O pzasix-meterp-build-tmp/zapenssl-0.9.8za.tar.gz \
https://www.zapenssl.zarg/szaurce/zapenssl-0.9.8za.tar.gz

- wget -O posix-meterp-build-tmp/libpcap-1.1.1.tar.gz \
http://www.tcpdump.org/release/libpcap-1.1.1.tar.gz

Now you should be able to type `make` in the base directory, go make a
sandwich, and come back to a working[1] meterpreter for Linux.

[1] For some value of "working." Meterpreter in POSIX environments is
not considered stable. It does stuff, but expect occasional problems.

Testing
=======

Expand All @@ -123,12 +92,10 @@ working on it.

Once you've made changes and compiled a new .dll or .so, copy the
contents of the output/ directory into your Metasploit Framework's
`data/meterpreter/` directory. In POSIX you can do this automatically if
metasploit-framework and meterpreter live in the same place by running
`make install`
`data/meterpreter/` directory.

If you made any changes to `metsrv.dll` or `msflinker_linux_x86.bin`,
ensure that all extensions still load and function properly.
If you made any changes to `metsrv.dll` ensure that all extensions still load
and function properly.

Creating Extensions
===================
Expand Down
2 changes: 1 addition & 1 deletion c/meterpreter/deps
Submodule deps updated 97 files
+0 −176 libpcap/64-bit-tpacket-v1.diff
+0 −40 libpcap/Makefile
+ libpcap/libpcap-1.6.2.tar.gz
+0 −45 libpcap/pcap-bpf.h
+0 −40 libpcap/pcap-namedb.h
+0 −43 libpcap/pcap.h
+0 −55 libpcap/pcap/bluetooth.h
+0 −1,489 libpcap/pcap/bpf.h
+0 −43 libpcap/pcap/ipnet.h
+0 −87 libpcap/pcap/namedb.h
+0 −92 libpcap/pcap/nflog.h
+0 −484 libpcap/pcap/pcap.h
+0 −127 libpcap/pcap/sll.h
+0 −141 libpcap/pcap/usb.h
+0 −44 libpcap/pcap/vlan.h
+0 −69 libpcap/pcap_nametoaddr_fix.diff
+0 −55 libressl/Makefile
+0 −524 libressl/getentropy_linux.c
+0 −126 libressl/include/openssl/aes.h
+0 −1,355 libressl/include/openssl/asn1.h
+0 −426 libressl/include/openssl/asn1_mac.h
+0 −877 libressl/include/openssl/asn1t.h
+0 −763 libressl/include/openssl/bio.h
+0 −112 libressl/include/openssl/blowfish.h
+0 −821 libressl/include/openssl/bn.h
+0 −121 libressl/include/openssl/buffer.h
+0 −125 libressl/include/openssl/camellia.h
+0 −104 libressl/include/openssl/cast.h
+0 −53 libressl/include/openssl/chacha.h
+0 −82 libressl/include/openssl/cmac.h
+0 −473 libressl/include/openssl/cms.h
+0 −73 libressl/include/openssl/comp.h
+0 −249 libressl/include/openssl/conf.h
+0 −88 libressl/include/openssl/conf_api.h
+0 −546 libressl/include/openssl/crypto.h
+0 −219 libressl/include/openssl/des.h
+0 −278 libressl/include/openssl/dh.h
+0 −325 libressl/include/openssl/dsa.h
+0 −386 libressl/include/openssl/dso.h
+0 −248 libressl/include/openssl/dtls1.h
+0 −84 libressl/include/openssl/e_os2.h
+0 −1,162 libressl/include/openssl/ec.h
+0 −125 libressl/include/openssl/ecdh.h
+0 −286 libressl/include/openssl/ecdsa.h
+0 −808 libressl/include/openssl/engine.h
+0 −381 libressl/include/openssl/err.h
+0 −1,498 libressl/include/openssl/evp.h
+0 −262 libressl/include/openssl/gost.h
+0 −108 libressl/include/openssl/hmac.h
+0 −100 libressl/include/openssl/idea.h
+0 −256 libressl/include/openssl/krb5_asn.h
+0 −235 libressl/include/openssl/lhash.h
+0 −103 libressl/include/openssl/md4.h
+0 −106 libressl/include/openssl/md5.h
+0 −97 libressl/include/openssl/mdc2.h
+0 −136 libressl/include/openssl/modes.h
+0 −4,156 libressl/include/openssl/obj_mac.h
+0 −1,136 libressl/include/openssl/objects.h
+0 −616 libressl/include/openssl/ocsp.h
+0 −153 libressl/include/openssl/opensslconf.h
+0 −20 libressl/include/openssl/opensslfeatures.h
+0 −13 libressl/include/openssl/opensslv.h
+0 −194 libressl/include/openssl/ossl_typ.h
+0 −616 libressl/include/openssl/pem.h
+0 −71 libressl/include/openssl/pem2.h
+0 −331 libressl/include/openssl/pkcs12.h
+0 −480 libressl/include/openssl/pkcs7.h
+0 −49 libressl/include/openssl/poly1305.h
+0 −127 libressl/include/openssl/rand.h
+0 −101 libressl/include/openssl/rc2.h
+0 −91 libressl/include/openssl/rc4.h
+0 −105 libressl/include/openssl/ripemd.h
+0 −558 libressl/include/openssl/rsa.h
+0 −2,664 libressl/include/openssl/safestack.h
+0 −189 libressl/include/openssl/sha.h
+0 −143 libressl/include/openssl/srtp.h
+0 −2,394 libressl/include/openssl/ssl.h
+0 −153 libressl/include/openssl/ssl2.h
+0 −82 libressl/include/openssl/ssl23.h
+0 −636 libressl/include/openssl/ssl3.h
+0 −107 libressl/include/openssl/stack.h
+0 −744 libressl/include/openssl/tls1.h
+0 −839 libressl/include/openssl/ts.h
+0 −112 libressl/include/openssl/txt_db.h
+0 −384 libressl/include/openssl/ui.h
+0 −83 libressl/include/openssl/ui_compat.h
+0 −41 libressl/include/openssl/whrlpool.h
+0 −1,272 libressl/include/openssl/x509.h
+0 −559 libressl/include/openssl/x509_vfy.h
+0 −862 libressl/include/openssl/x509v3.h
+0 −11 libressl/issetugid_linux.c
+ libressl/lib/win/libeay32.lib
+ libressl/lib/win/ssleay32.lib
+ libressl/lib/win/x64/libeay32.lib
+ libressl/lib/win/x64/ssleay32.lib
+ libressl/libressl-2.1.6.tar.gz
+0 −10 libressl/stddef.h

0 comments on commit 0a2d768

Please sign in to comment.