w32evol_wrapper – w32evol obfuscation engine wrapped in Ruby

Table of Contents

  1. Introduction

  2. Dependencies

  3. Installation

  4. Usage

  5. Development

1. Introduction

Does not contain a virus

This is a Ruby wrapper for the obfuscation engine w32evol.

The w32evol obfuscation engine has a command line interface. This wrapper allows you to use the obfuscation engine within your Ruby scripts.

2. Dependencies

  • Ruby 1.9.2 or greater

  • wine (1.3 or greater, may work with 1.2)

  • w32evol (v0.1.0 is include in this gem’s ext folder)

3. Installation

Rubygems:

You might need to use sudo.

gem install w32evol_ruby

Not Rubygems:

  1. Download w32evol_ruby

  2. Require the w32evol Ruby class file in your program (lib folder)

    • The w32evol.exe engine is located in this gems ext folder.

4. Usage

Example 1

This example is found in the examples directory.

#!/usr/bin/env ruby

require 'w32evol_ruby'

ARGF.binmode
input = ARGF.read
# Assuming engine is installed in this gem's "ext" folder.
# Otherwise, you must pass the engine's executable path to the class's 
# constructor.
# For example:
# engine = W32Evol.new({:command => "/path/to/engine"})
engine = W32Evol.new

output, errors, status = engine.obfuscate(input)

puts "INPUT:", input.inspect
puts "STATUS:", status
puts "ERRORS: ", errors
puts "OUTPUT:", output.inspect

5. Development

Author

Martin Velez

Copyright

Copyright © 2012 Martin Velez

License

GPL

Source

Bitbucket is hosting this code.

http://bitbucket.org/martinvelez/w32evol_ruby/src

Issues and Bug Reports

Provide feedback, get help, request features, and reports bugs here:

https://bitbucket.org/martinvelez/w32evol_ruby/issues?status=new?status=open