librex 0.0.70 → 0.0.71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -13
  2. data/README.markdown +5 -10
  3. data/Rakefile +1 -1
  4. data/lib/rex/arch.rb +1 -1
  5. data/lib/rex/encoder/bloxor/bloxor.rb +1 -0
  6. data/lib/rex/encoder/ndr.rb +1 -1
  7. data/lib/rex/exploitation/heaplib.rb +4 -2
  8. data/lib/rex/exploitation/powershell.rb +62 -0
  9. data/lib/rex/exploitation/powershell/function.rb +63 -0
  10. data/lib/rex/exploitation/powershell/obfu.rb +98 -0
  11. data/lib/rex/exploitation/powershell/output.rb +151 -0
  12. data/lib/rex/exploitation/powershell/param.rb +23 -0
  13. data/lib/rex/exploitation/powershell/parser.rb +183 -0
  14. data/lib/rex/exploitation/powershell/psh_methods.rb +70 -0
  15. data/lib/rex/exploitation/powershell/script.rb +99 -0
  16. data/lib/rex/exploitation/ropdb.rb +1 -0
  17. data/lib/rex/mac_oui.rb +1 -0
  18. data/lib/rex/ole/util.rb +2 -2
  19. data/lib/rex/parser/group_policy_preferences.rb +185 -0
  20. data/lib/rex/parser/outpost24_nokogiri.rb +1 -0
  21. data/lib/rex/poly/machine.rb +1 -0
  22. data/lib/rex/poly/machine/machine.rb +1 -0
  23. data/lib/rex/poly/machine/x86.rb +1 -0
  24. data/lib/rex/post/meterpreter/extensions/android/android.rb +128 -0
  25. data/lib/rex/post/meterpreter/extensions/android/tlv.rb +40 -0
  26. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_psapi.rb +32 -0
  27. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/dll.rb +6 -6
  28. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/multicall.rb +4 -4
  29. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/railgun.rb +2 -1
  30. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/type/pointer_util.rb +4 -4
  31. data/lib/rex/post/meterpreter/extensions/stdapi/railgun/util.rb +4 -4
  32. data/lib/rex/post/meterpreter/packet.rb +3 -3
  33. data/lib/rex/post/meterpreter/ui/console.rb +2 -0
  34. data/lib/rex/post/meterpreter/ui/console/command_dispatcher/android.rb +383 -0
  35. data/lib/rex/proto/dcerpc/ndr.rb +1 -1
  36. data/lib/rex/proto/ipmi/channel_auth_reply.rb +1 -0
  37. data/lib/rex/proto/ipmi/open_session_reply.rb +1 -0
  38. data/lib/rex/proto/ipmi/rakp2.rb +1 -0
  39. data/lib/rex/proto/natpmp/packet.rb +8 -8
  40. data/lib/rex/proto/ntp.rb +3 -0
  41. data/lib/rex/proto/ntp/constants.rb +12 -0
  42. data/lib/rex/proto/ntp/modes.rb +130 -0
  43. data/lib/rex/proto/pjl.rb +1 -0
  44. data/lib/rex/proto/pjl/client.rb +1 -0
  45. data/lib/rex/proto/sip.rb +4 -0
  46. data/lib/rex/proto/sip/response.rb +61 -0
  47. data/lib/rex/proto/smb/exceptions.rb +11 -3
  48. data/lib/rex/random_identifier_generator.rb +1 -0
  49. data/lib/rex/registry/lfkey.rb +1 -1
  50. data/lib/rex/registry/nodekey.rb +10 -10
  51. data/lib/rex/registry/valuekey.rb +5 -5
  52. data/lib/rex/registry/valuelist.rb +1 -1
  53. data/lib/rex/socket/ip.rb +1 -0
  54. data/lib/rex/sslscan/result.rb +1 -0
  55. data/lib/rex/sslscan/scanner.rb +1 -0
  56. data/lib/rex/text.rb +2 -13
  57. data/lib/rex/ui/text/output/buffer/stdout.rb +1 -0
  58. data/lib/rex/ui/text/table.rb +4 -4
  59. metadata +23 -4
@@ -1,3 +1,4 @@
1
+ # -*- coding: binary -*-
1
2
  # make sure the classes are defined before opening it to define submodule
2
3
  require 'rex/ui/text/output'
3
4
  require 'rex/ui/text/output/buffer'
@@ -275,9 +275,9 @@ protected
275
275
  nameline << pad(' ', last_col, last_idx)
276
276
 
277
277
  remainder = colprops[last_idx]['MaxWidth'] - last_col.length
278
- if (remainder < 0)
279
- remainder = 0
280
- end
278
+ if (remainder < 0)
279
+ remainder = 0
280
+ end
281
281
  barline << (' ' * (cellpad + remainder))
282
282
  end
283
283
  nameline << col
@@ -305,7 +305,7 @@ protected
305
305
  last_cell = nil
306
306
  last_idx = nil
307
307
  row.each_with_index { |cell, idx|
308
- if (last_cell)
308
+ if (idx != 0)
309
309
  line << pad(' ', last_cell.to_s, last_idx)
310
310
  end
311
311
  # line << pad(' ', cell.to_s, idx)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.70
4
+ version: 0.0.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - HD Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-15 00:00:00.000000000 Z
12
+ date: 2014-09-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rex provides a variety of classes useful for security testing and exploit
15
15
  development. Updated on 2014-07-15
@@ -86,6 +86,14 @@ files:
86
86
  - lib/rex/exploitation/obfuscatejs.rb
87
87
  - lib/rex/exploitation/omelet.rb
88
88
  - lib/rex/exploitation/opcodedb.rb
89
+ - lib/rex/exploitation/powershell.rb
90
+ - lib/rex/exploitation/powershell/function.rb
91
+ - lib/rex/exploitation/powershell/obfu.rb
92
+ - lib/rex/exploitation/powershell/output.rb
93
+ - lib/rex/exploitation/powershell/param.rb
94
+ - lib/rex/exploitation/powershell/parser.rb
95
+ - lib/rex/exploitation/powershell/psh_methods.rb
96
+ - lib/rex/exploitation/powershell/script.rb
89
97
  - lib/rex/exploitation/ropdb.rb
90
98
  - lib/rex/exploitation/seh.rb
91
99
  - lib/rex/file.rb
@@ -146,6 +154,7 @@ files:
146
154
  - lib/rex/parser/ci_nokogiri.rb
147
155
  - lib/rex/parser/foundstone_nokogiri.rb
148
156
  - lib/rex/parser/fusionvm_nokogiri.rb
157
+ - lib/rex/parser/group_policy_preferences.rb
149
158
  - lib/rex/parser/ini.rb
150
159
  - lib/rex/parser/ip360_aspl_xml.rb
151
160
  - lib/rex/parser/ip360_xml.rb
@@ -207,6 +216,8 @@ files:
207
216
  - lib/rex/post/meterpreter/client_core.rb
208
217
  - lib/rex/post/meterpreter/dependencies.rb
209
218
  - lib/rex/post/meterpreter/extension.rb
219
+ - lib/rex/post/meterpreter/extensions/android/android.rb
220
+ - lib/rex/post/meterpreter/extensions/android/tlv.rb
210
221
  - lib/rex/post/meterpreter/extensions/espia/espia.rb
211
222
  - lib/rex/post/meterpreter/extensions/espia/tlv.rb
212
223
  - lib/rex/post/meterpreter/extensions/extapi/adsi/adsi.rb
@@ -257,6 +268,7 @@ files:
257
268
  - lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_kernel32.rb
258
269
  - lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_netapi32.rb
259
270
  - lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_ntdll.rb
271
+ - lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_psapi.rb
260
272
  - lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_shell32.rb
261
273
  - lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_user32.rb
262
274
  - lib/rex/post/meterpreter/extensions/stdapi/railgun/def/def_version.rb
@@ -301,6 +313,7 @@ files:
301
313
  - lib/rex/post/meterpreter/packet_response_waiter.rb
302
314
  - lib/rex/post/meterpreter/ui/console.rb
303
315
  - lib/rex/post/meterpreter/ui/console/command_dispatcher.rb
316
+ - lib/rex/post/meterpreter/ui/console/command_dispatcher/android.rb
304
317
  - lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb
305
318
  - lib/rex/post/meterpreter/ui/console/command_dispatcher/espia.rb
306
319
  - lib/rex/post/meterpreter/ui/console/command_dispatcher/extapi.rb
@@ -386,6 +399,9 @@ files:
386
399
  - lib/rex/proto/ntlm/exceptions.rb
387
400
  - lib/rex/proto/ntlm/message.rb
388
401
  - lib/rex/proto/ntlm/utils.rb
402
+ - lib/rex/proto/ntp.rb
403
+ - lib/rex/proto/ntp/constants.rb
404
+ - lib/rex/proto/ntp/modes.rb
389
405
  - lib/rex/proto/pjl.rb
390
406
  - lib/rex/proto/pjl/client.rb
391
407
  - lib/rex/proto/proxy/socks4a.rb
@@ -393,6 +409,8 @@ files:
393
409
  - lib/rex/proto/rfb/cipher.rb
394
410
  - lib/rex/proto/rfb/client.rb
395
411
  - lib/rex/proto/rfb/constants.rb
412
+ - lib/rex/proto/sip.rb
413
+ - lib/rex/proto/sip/response.rb
396
414
  - lib/rex/proto/smb.rb
397
415
  - lib/rex/proto/smb/client.rb
398
416
  - lib/rex/proto/smb/constants.rb
@@ -502,12 +520,12 @@ require_paths:
502
520
  - lib
503
521
  required_ruby_version: !ruby/object:Gem::Requirement
504
522
  requirements:
505
- - - ! '>='
523
+ - - ">="
506
524
  - !ruby/object:Gem::Version
507
525
  version: 1.9.3
508
526
  required_rubygems_version: !ruby/object:Gem::Requirement
509
527
  requirements:
510
- - - ! '>='
528
+ - - ">="
511
529
  - !ruby/object:Gem::Version
512
530
  version: '0'
513
531
  requirements: []
@@ -517,3 +535,4 @@ signing_key:
517
535
  specification_version: 4
518
536
  summary: Ruby Exploitation Library
519
537
  test_files: []
538
+ has_rdoc: