Skip to content

Commit 055f958

Browse files
committed
Merge branch 'master' into bug/wrong-file_changed-argument
Conflicts: lib/msf/core/modules/loader/base.rb
2 parents 69a8739 + b3e02f1 commit 055f958

File tree

405 files changed

+4017
-1440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+4017
-1440
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace :yard do
3737
task :stats => :environment do
3838
stats = YARD::CLI::Stats.new
3939
yard_arguments = yard_options + ['--compact', '--list-undoc'] + yard_files
40-
stats.run *yard_arguments
40+
stats.run(*yard_arguments)
4141
end
4242
end
4343

data/armitage/armitage.jar

407 Bytes
Binary file not shown.

data/armitage/cortana.jar

407 Bytes
Binary file not shown.

data/armitage/whatsnew.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
Armitage Changelog
22
==================
33

4+
16 Oct 12 (tested against msf 15972)
5+
---------
6+
- Added port 5985 to MSF Scans list.
7+
- Meterpreter -> Access -> Persistence sets ACTION option for you
8+
- Changed how LHOST and LPORT are set globally to prevent Ruby
9+
character encoding conversion error in the framework.
10+
- Pass Session, Log Keystrokes, and Persist now query module info
11+
in a separate thread (avoids a deadlock opportunity)
12+
- Armitage now shows folder/URL in a popup dialog for environments
13+
where JDesktop API to open them directly is not supported
14+
- Check all credentials option now filters the list to avoid trying
15+
a pair of credentials twice.
16+
- Armitage's exploit payload selection now selects cmd/unix/interact
17+
when appropriate.
18+
- Explore -> Processes now works with Java Meterpreter again.
19+
- MSF Scans feature now runs http_version against port 443
20+
421
5 Sept 12 (tested against msf r15804)
522
---------
623
- Setup dialog now trims host, port, user, and pass fields.

external/ruby-kissfft/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source "http://rubygems.org"
2+
gemspec

external/ruby-kissfft/COPYING renamed to external/ruby-kissfft/LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Kiss FFT library
22
==================
33

4-
Copyright (c) 2003-2006 Mark Borgerding
4+
5+
Copyright (c) 2003-2010 Mark Borgerding
56

67
All rights reserved.
78

@@ -13,11 +14,10 @@ Redistribution and use in source and binary forms, with or without modification,
1314

1415
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1516

16-
1717
Ruby wrapper layer
1818
==================
1919

20-
Copyright (C) 2009 H D Moore
20+
Copyright (C) 2009-2012 H D Moore < hdm[at]rapid7.com >
2121

2222
All rights reserved.
2323

external/ruby-kissfft/Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "bundler/gem_tasks"

external/ruby-kissfft/_kiss_fft_guts.h renamed to external/ruby-kissfft/ext/kissfft/_kiss_fft_guts.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003-2004, Mark Borgerding
2+
Copyright (c) 2003-2010, Mark Borgerding
33
44
All rights reserved.
55
@@ -148,3 +148,17 @@ struct kiss_fft_state{
148148
/* a debugging function */
149149
#define pcpx(c)\
150150
fprintf(stderr,"%g + %gi\n",(double)((c)->r),(double)((c)->i) )
151+
152+
153+
#ifdef KISS_FFT_USE_ALLOCA
154+
// define this to allow use of alloca instead of malloc for temporary buffers
155+
// Temporary buffers are used in two case:
156+
// 1. FFT sizes that have "bad" factors. i.e. not 2,3 and 5
157+
// 2. "in-place" FFTs. Notice the quotes, since kissfft does not really do an in-place transform.
158+
#include <alloca.h>
159+
#define KISS_FFT_TMP_ALLOC(nbytes) alloca(nbytes)
160+
#define KISS_FFT_TMP_FREE(ptr)
161+
#else
162+
#define KISS_FFT_TMP_ALLOC(nbytes) KISS_FFT_MALLOC(nbytes)
163+
#define KISS_FFT_TMP_FREE(ptr) KISS_FFT_FREE(ptr)
164+
#endif

external/ruby-kissfft/kiss_fft.c renamed to external/ruby-kissfft/ext/kissfft/kiss_fft.c

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003-2004, Mark Borgerding
2+
Copyright (c) 2003-2010, Mark Borgerding
33
44
All rights reserved.
55
@@ -18,21 +18,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1818
fixed or floating point complex numbers. It also delares the kf_ internal functions.
1919
*/
2020

21-
static kiss_fft_cpx *scratchbuf=NULL;
22-
static size_t nscratchbuf=0;
23-
static kiss_fft_cpx *tmpbuf=NULL;
24-
static size_t ntmpbuf=0;
25-
26-
#define CHECKBUF(buf,nbuf,n) \
27-
do { \
28-
if ( nbuf < (size_t)(n) ) {\
29-
free(buf); \
30-
buf = (kiss_fft_cpx*)KISS_FFT_MALLOC(sizeof(kiss_fft_cpx)*(n)); \
31-
nbuf = (size_t)(n); \
32-
} \
33-
}while(0)
34-
35-
3621
static void kf_bfly2(
3722
kiss_fft_cpx * Fout,
3823
const size_t fstride,
@@ -69,6 +54,7 @@ static void kf_bfly4(
6954
const size_t m2=2*m;
7055
const size_t m3=3*m;
7156

57+
7258
tw3 = tw2 = tw1 = st->twiddles;
7359

7460
do {
@@ -222,29 +208,30 @@ static void kf_bfly_generic(
222208
kiss_fft_cpx t;
223209
int Norig = st->nfft;
224210

225-
CHECKBUF(scratchbuf,nscratchbuf,p);
211+
kiss_fft_cpx * scratch = (kiss_fft_cpx*)KISS_FFT_TMP_ALLOC(sizeof(kiss_fft_cpx)*p);
226212

227213
for ( u=0; u<m; ++u ) {
228214
k=u;
229215
for ( q1=0 ; q1<p ; ++q1 ) {
230-
scratchbuf[q1] = Fout[ k ];
231-
C_FIXDIV(scratchbuf[q1],p);
216+
scratch[q1] = Fout[ k ];
217+
C_FIXDIV(scratch[q1],p);
232218
k += m;
233219
}
234220

235221
k=u;
236222
for ( q1=0 ; q1<p ; ++q1 ) {
237223
int twidx=0;
238-
Fout[ k ] = scratchbuf[0];
224+
Fout[ k ] = scratch[0];
239225
for (q=1;q<p;++q ) {
240226
twidx += fstride * k;
241227
if (twidx>=Norig) twidx-=Norig;
242-
C_MUL(t,scratchbuf[q] , twiddles[twidx] );
228+
C_MUL(t,scratch[q] , twiddles[twidx] );
243229
C_ADDTO( Fout[ k ] ,t);
244230
}
245231
k += m;
246232
}
247233
}
234+
KISS_FFT_TMP_FREE(scratch);
248235
}
249236

250237
static
@@ -265,7 +252,8 @@ void kf_work(
265252
#ifdef _OPENMP
266253
// use openmp extensions at the
267254
// top-level (not recursive)
268-
if (fstride==1) {
255+
if (fstride==1 && p<=5)
256+
{
269257
int k;
270258

271259
// execute the p different work units in different threads
@@ -380,14 +368,15 @@ kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem
380368
}
381369

382370

383-
384-
385371
void kiss_fft_stride(kiss_fft_cfg st,const kiss_fft_cpx *fin,kiss_fft_cpx *fout,int in_stride)
386372
{
387373
if (fin == fout) {
388-
CHECKBUF(tmpbuf,ntmpbuf,st->nfft);
374+
//NOTE: this is not really an in-place FFT algorithm.
375+
//It just performs an out-of-place FFT into a temp buffer
376+
kiss_fft_cpx * tmpbuf = (kiss_fft_cpx*)KISS_FFT_TMP_ALLOC( sizeof(kiss_fft_cpx)*st->nfft);
389377
kf_work(tmpbuf,fin,1,in_stride, st->factors,st);
390378
memcpy(fout,tmpbuf,sizeof(kiss_fft_cpx)*st->nfft);
379+
KISS_FFT_TMP_FREE(tmpbuf);
391380
}else{
392381
kf_work( fout, fin, 1,in_stride, st->factors,st );
393382
}
@@ -399,17 +388,9 @@ void kiss_fft(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout)
399388
}
400389

401390

402-
/* not really necessary to call, but if someone is doing in-place ffts, they may want to free the
403-
buffers from CHECKBUF
404-
*/
405391
void kiss_fft_cleanup(void)
406392
{
407-
free(scratchbuf);
408-
scratchbuf = NULL;
409-
nscratchbuf=0;
410-
free(tmpbuf);
411-
tmpbuf=NULL;
412-
ntmpbuf=0;
393+
// nothing needed any more
413394
}
414395

415396
int kiss_fft_next_fast_size(int n)

0 commit comments

Comments
 (0)