librex 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +1 -1
- data/lib/rex/exploitation/javascriptosdetect.rb +3 -22
- data/lib/rex/exploitation/jsobfu.rb +489 -0
- data/lib/rex/io/stream_abstraction.rb +4 -3
- data/lib/rex/parser/acunetix_nokogiri.rb +394 -0
- data/lib/rex/parser/appscan_nokogiri.rb +366 -0
- data/lib/rex/parser/burp_session_nokogiri.rb +290 -0
- data/lib/rex/parser/nokogiri_doc_mixin.rb +5 -3
- data/lib/rex/pescan/scanner.rb +2 -1
- data/lib/rex/post/meterpreter/extensions/stdapi/constants.rb +2 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_netapi32.rb +5 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb +30 -1
- data/lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/remote_registry_key.rb +188 -0
- data/lib/rex/post/meterpreter/extensions/stdapi/tlv.rb +1 -0
- data/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb +84 -14
- data/lib/rex/proto/http/header.rb +3 -3
- data/lib/rex/ropbuilder.rb +7 -0
- data/lib/rex/ropbuilder/rop.rb +257 -0
- data/lib/rex/ui/text/table.rb +9 -0
- metadata +10 -3
data/lib/rex/ui/text/table.rb
CHANGED
@@ -171,6 +171,14 @@ class Table
|
|
171
171
|
rows << fields
|
172
172
|
end
|
173
173
|
|
174
|
+
#
|
175
|
+
# Sorts the rows based on the supplied index of sub-arrays
|
176
|
+
#
|
177
|
+
def sort_rows(index)
|
178
|
+
rows.sort!{|a,b| a[index].nil? ? -1 : b[index].nil? ? 1 : a[index] <=> b[index]}
|
179
|
+
end
|
180
|
+
|
181
|
+
|
174
182
|
#
|
175
183
|
# Adds a horizontal line.
|
176
184
|
#
|
@@ -272,6 +280,7 @@ protected
|
|
272
280
|
return val
|
273
281
|
end
|
274
282
|
|
283
|
+
|
275
284
|
end
|
276
285
|
|
277
286
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: librex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.36
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Metasploit Development Team
|
@@ -11,11 +11,11 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-06-
|
14
|
+
date: 2011-06-15 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|
18
|
-
description: Rex provides a variety of classes useful for security testing and exploit development. Based on SVN Revision
|
18
|
+
description: Rex provides a variety of classes useful for security testing and exploit development. Based on SVN Revision 12951
|
19
19
|
email:
|
20
20
|
- hdm@metasploit.com
|
21
21
|
- jacob.hammack@hammackj.com
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/rex/exploitation/heaplib.js.b64
|
92
92
|
- lib/rex/exploitation/heaplib.rb
|
93
93
|
- lib/rex/exploitation/javascriptosdetect.rb
|
94
|
+
- lib/rex/exploitation/jsobfu.rb
|
94
95
|
- lib/rex/exploitation/obfuscatejs.rb
|
95
96
|
- lib/rex/exploitation/omelet.rb
|
96
97
|
- lib/rex/exploitation/omelet.rb.ut.rb
|
@@ -150,9 +151,12 @@ files:
|
|
150
151
|
- lib/rex/ole/substorage.rb
|
151
152
|
- lib/rex/ole/util.rb
|
152
153
|
- lib/rex/ole.rb
|
154
|
+
- lib/rex/parser/acunetix_nokogiri.rb
|
153
155
|
- lib/rex/parser/apple_backup_manifestdb.rb
|
156
|
+
- lib/rex/parser/appscan_nokogiri.rb
|
154
157
|
- lib/rex/parser/arguments.rb
|
155
158
|
- lib/rex/parser/arguments.rb.ut.rb
|
159
|
+
- lib/rex/parser/burp_session_nokogiri.rb
|
156
160
|
- lib/rex/parser/foundstone_nokogiri.rb
|
157
161
|
- lib/rex/parser/ini.rb
|
158
162
|
- lib/rex/parser/ini.rb.ut.rb
|
@@ -271,6 +275,7 @@ files:
|
|
271
275
|
- lib/rex/post/meterpreter/extensions/stdapi/sys/registry.rb
|
272
276
|
- lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb
|
273
277
|
- lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_value.rb
|
278
|
+
- lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/remote_registry_key.rb
|
274
279
|
- lib/rex/post/meterpreter/extensions/stdapi/sys/thread.rb
|
275
280
|
- lib/rex/post/meterpreter/extensions/stdapi/tlv.rb
|
276
281
|
- lib/rex/post/meterpreter/extensions/stdapi/ui.rb
|
@@ -386,6 +391,8 @@ files:
|
|
386
391
|
- lib/rex/proto/tftp.rb
|
387
392
|
- lib/rex/proto.rb
|
388
393
|
- lib/rex/proto.rb.ts.rb
|
394
|
+
- lib/rex/ropbuilder/rop.rb
|
395
|
+
- lib/rex/ropbuilder.rb
|
389
396
|
- lib/rex/script/base.rb
|
390
397
|
- lib/rex/script/meterpreter.rb
|
391
398
|
- lib/rex/script/shell.rb
|