Commit Graph

20 Commits (3cd2caca1a7ef3b26113b5126116146ff9c27b5d)

Author SHA1 Message Date
HD Moore 7d2b2b1763 Fix up bad line removals 2011-11-23 23:10:43 -06:00
HD Moore 25c10d2e65 Bump fastlib to 0.0.6, no longer need to push metasploit.fastlib into the include path 2011-11-23 23:02:43 -06:00
HD Moore bfc32f4a0f Adds fastlib and lib/metasploit.fastlib to the include path 2011-11-21 14:18:57 -06:00
Tom Samstag 7b7413d85e Bash format for msfencode/msfvenom
This patch adds a Bash output format for msfencode and msfvenom. This is especially useful for local exploitation with shellcode in an environment variable.
Example output:

$ echo 'this is a test' | ./msfvenom -f bash
[-] Using X86 architecture and Windows platform for stdin payload to change use -a and --platform
export buf=\
$'\x74\x68\x69\x73\x20\x69\x73\x20\x61\x20\x74\x65\x73\x74'\
$'\x0a'

It adds unit tests for the new format and also fixes a unit test that was broken (assert_equal 'AAAAAAAAA', Rex::Text.pattern_create(9,['A'])) due to a bug in the shortcut in pattern_create.
2011-11-11 00:13:17 -08:00
James Lee a279f4e942 print an error and bail if the template file doesn't exist. fixes #5509
git-svn-id: file:///home/svn/framework3/trunk@13784 4d416f70-5f16-0410-b530-b9f4589650da
2011-09-23 18:36:58 +00:00
Matt Weeks 31d1628dde Some payload fixes
git-svn-id: file:///home/svn/framework3/trunk@13596 4d416f70-5f16-0410-b530-b9f4589650da
2011-08-20 02:18:20 +00:00
James Lee 6f5961db52 don't dump a stack trace when it's a normal encoding failure.
git-svn-id: file:///home/svn/framework3/trunk@13532 4d416f70-5f16-0410-b530-b9f4589650da
2011-08-11 21:29:53 +00:00
Matt Weeks 3fdc6c87e1 Use binary writes for binary data. Fixes #5174
git-svn-id: file:///home/svn/framework3/trunk@13462 4d416f70-5f16-0410-b530-b9f4589650da
2011-08-01 00:56:23 +00:00
Joshua Drake efd7a94bd0 comment out class puts (assuming it was for debugging only)
git-svn-id: file:///home/svn/framework3/trunk@13203 4d416f70-5f16-0410-b530-b9f4589650da
2011-07-18 03:26:12 +00:00
Matt Weeks 3f2c36d82a Multipayload support with win32 payloads for msfvenom.
git-svn-id: file:///home/svn/framework3/trunk@13057 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-29 01:13:57 +00:00
David Rude 67403a5a22 Add a fix for generating x86_64 dlls
git-svn-id: file:///home/svn/framework3/trunk@13039 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-27 14:14:45 +00:00
David Rude e344adb3fd Fixes how badchars are handled
git-svn-id: file:///home/svn/framework3/trunk@12784 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-31 16:37:42 +00:00
James Lee 33135af296 save the encoded version before breaking out of the loop
git-svn-id: file:///home/svn/framework3/trunk@12739 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-27 16:25:38 +00:00
David Rude 56962e786f Added support for x64 and arm elf linux payloads
git-svn-id: file:///home/svn/framework3/trunk@12733 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-26 17:49:59 +00:00
Carlos Perez 016712baa5 Fixed problem I introduced when no template was specified
git-svn-id: file:///home/svn/framework3/trunk@12730 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-26 10:48:20 +00:00
Carlos Perez 3a4926a8fe changed how the template option was parsed
git-svn-id: file:///home/svn/framework3/trunk@12728 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-26 02:04:05 +00:00
David Rude 3e3c32730c add a warning about stdin payloads not setting arch and platform options
git-svn-id: file:///home/svn/framework3/trunk@12722 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-25 18:54:41 +00:00
David Rude 774dbd29a6 fix a stack trace for stdin payloads not setting the arch or platform
git-svn-id: file:///home/svn/framework3/trunk@12721 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-25 18:52:39 +00:00
David Rude a783d0ead4 added nopsled support, svn keywords
git-svn-id: file:///home/svn/framework3/trunk@12717 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-25 14:41:29 +00:00
David Rude 230295cc1b Added msfvenom, a tool which merges the functionality of msfpayload and msfencode in a single tool
git-svn-id: file:///home/svn/framework3/trunk@12703 4d416f70-5f16-0410-b530-b9f4589650da
2011-05-24 20:35:54 +00:00