Git Product home page Git Product logo

rex's Introduction

Rex

An re-packaging of the Rex library included in the Metasploit Framework for use by non-Metasploit applications. Originally created by Jacob Hammack and made official by the Rapid7 development team. The upstream of this package is the lib/rex subdirectory of https://github.com/rapid7/metasploit-framework

Note that prior to version 2.0.0, the 'rex' gem was an unrelated library developed by Aaron Paterson (@tenderlove).

For users of the prior library (a lexical scanner generator), set your Gemfile to something like the following:

gem 'rex', '< 2.0.0'

This package replaces the librex gem.

$ gem install rex

Credits

rex's People

Contributors

andrewkabai avatar anwarmohamed avatar aushack avatar averagesecurityguy avatar benpturner avatar borjamerino avatar dougsko avatar jakxx avatar jiuweigui avatar jjarmoc avatar julianvilas avatar juushya avatar kingsabri avatar mandreko avatar martinvigo avatar meatballs1 avatar morisson avatar msadek-r7 avatar nixawk avatar nstarke avatar philophobia78 avatar rastating avatar rcvalle avatar sgabe avatar shipcod3 avatar stephenfewer avatar tabassassin avatar talos-arch3y avatar tasos-r7 avatar zeknox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rex's Issues

Other protocols are not included

Hi
I'm trying to run a TFTP client and I'm getting Rex::Proto::TFTP error. Looking up to the code and I found the TFTP along with other protocols are not included

The only included protocols are:

  • http
  • smb
  • ntlm
  • dcerpc
  • drda
  • iax2
  • kerberos
  • rmi

Is there another way to include that is not obvious to me?

warning: constant OpenSSL::SSL::SSLContext::METHODS is deprecated

Hello guys,
I'm getting the following while using rpc.call

/var/lib/gems/2.5.0/gems/rex-2.0.12/lib/rex/socket/ssl_tcp.rb:82: warning: constant OpenSSL::SSL::SSLContext::METHODS is deprecated
  • Ruby version: 2.5.1

I think it should be replaced with

OpenSSL::SSL::SSLContext.methods.include? version

If it's too trivial, for a PR, plz reject my PR

Duplicate Keys

lib/rex/proto/smb/exceptions.rb has two duplicate keys:
Line 12:

  @@errors = {
    0x00000000 => "STATUS_SUCCESS",
    0x00000000 => "STATUS_WAIT_0",

Line 18:

  @@errors = {
...
    0x00000080 => "STATUS_ABANDONED",
    0x00000080 => "STATUS_ABANDONED_WAIT_0",

Similar problem in lib/rex/proto/http/server.rb:
Line 84:

  ExtensionMimeTypes =
    {
...
      "jpeg"  => "image/jpeg",
      "jpeg"  => "image/jpeg",

NoMethodError: undefined method `blank?' for "":String

Several places in the code expect there to be a String#blank? method. None of the dependencies pull in this monkey patch to the String class.

Easiest fix may be to just add this to rex.rb:

class String
  def blank?
    self !~ /\S/
  end
end

Rex::Powershell::Command.compress_script generates not working payloads

Rex::Powershell::Command.compress_script generates payload that are not working on win 10 1803. after some debugging i discovered that:

  • the current generated payload is

( NeW-OBJeCT iO.streAmreaDER( ( NeW-OBJeCT Io.ComPreSsioN.dEfLATEStReAm( [SYsTEM.Io.MEMOrYstReam][coNvERT]::FROmBase64sTRinG('S03OyFdIzkzMV6hRyC8t0U3LzElVAJMFiSUZCslWMaXFqUXFMQWlSTmZyTEpmfnJiXmpeiUVJQA=') ,[sYStEM.Io.cOMpreSSiON.coMprEssIONMoDe]::decoMPrEss)) ,[systEM.TeXT.EncoDIng]::ASCii) ).reAdtoEnD( )| Write-Host

  • but the working version is

( NeW-OBJeCT system.iO.streAmreaDER( ( NeW-OBJeCT system.Io.ComPreSsioN.dEfLATEStReAm( [SYsTEM.Io.MEMOrYstReam][system.coNvERT]::FROmBase64sTRinG('S03OyFdIzkzMV6hRyC8t0U3LzElVAJMFiSUZCslWMaXFqUXFMQWlSTmZyTEpmfnJiXmpeiUVJQA=') ,[sYStEM.Io.cOMpreSSiON.coMprEssIONMoDe]::decoMPrEss)) ,[systEM.TeXT.EncoDIng]::ASCii) ).reAdtoEnD( )| Write-Host

2.0.8 breaks backwards compatibility

If looks like the merge from upstream brought in the 2.1.5 min version for Ruby. This should have been part of a higher version bump. As-is, this will break nexpose-client on Ruby 1.9.3 and 2.0.0. We have not yet abandoned support for those versions of Ruby, but it's coming.

For now we will pin to version 2.0.7 to get around this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.