Skip to content

Commit

Permalink
Mark all libraries as defaulting to 8-bit strings
Browse files Browse the repository at this point in the history
  • Loading branch information
HD Moore committed Jun 29, 2012
1 parent c45b103 commit d656e31
Show file tree
Hide file tree
Showing 920 changed files with 927 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/bit-struct.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
# A Convenience to load all field classes and yaml handling.
# XXX: Pretty certian this monkeypatch isn't required in Metasploit.

Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/bit-struct.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
# Class for packed binary data, with defined bitfields and accessors for them.
# See {intro.txt}[link:../doc/files/intro_txt.html] for an overview.
#
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/char-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
class BitStruct
# Class for fixed length binary strings of characters.
# Declared with BitStruct.char.
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/fields.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
class BitStruct
class << self
# Define a char string field in the current subclass of BitStruct,
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/float-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
class BitStruct
# Class for floats (single and double precision) in network order.
# Declared with BitStruct.float.
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/hex-octet-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'bit-struct/char-field'

class BitStruct
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/nested-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'bit-struct/bit-struct'

class BitStruct
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/octet-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'bit-struct/char-field'

class BitStruct
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/pad-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
class BitStruct
# Class for fixed length padding.
class PadField < Field
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/signed-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
class BitStruct
# Class for signed integers in network order, 1-16 bits, or 8n bits.
# Declared with BitStruct.signed.
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/text-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
class BitStruct
# Class for null-terminated printable text strings.
# Declared with BitStruct.text.
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/unsigned-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
class BitStruct
# Class for unsigned integers in network order, 1-16 bits, or 8n bits.
# Declared with BitStruct.unsigned.
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/vector-field.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'bit-struct/vector'

class BitStruct
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/vector.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
# A Vector is, like a BitStruct, a String. It retains all of the String
# methods, except for #[], #[]=, and #each. These methods operate on entries
# instead of chars. Other methods, including #length and #slice, are unchanged.
Expand Down
1 change: 1 addition & 0 deletions lib/bit-struct/yaml.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'yaml'

class BitStruct
Expand Down
1 change: 1 addition & 0 deletions lib/fastlib.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

#
# FASTLIB is a mechanism for loading large sets of libraries in a way that is
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
###
#
# framework-base
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base.rb.ts.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

require 'test/unit'
require 'msf/base'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/config.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'fileutils'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/logging.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'rex'
require 'msf/base'

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/persistent_storage.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/persistent_storage/flatfile.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf
class PersistentStorage

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/serializer/readable_text.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf
module Serializer

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/command_shell.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/base'
require 'msf/base/sessions/scriptable'
require 'shellwords'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/command_shell.rb.ut.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

require 'test/unit'
require 'msf/base'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/command_shell_options.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter_java.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter_options.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter_php.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter_x64_win.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id: meterpreter_options.rb 10595 2010-10-08 04:11:47Z hdm $
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter_x86_bsd.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter_x86_linux.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/meterpreter_x86_win.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/scriptable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-

module Msf::Session

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/tty.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/vncinject.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/base'
require 'rex/services/local_relay'

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/sessions/vncinject_options.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
# Buffer management
require 'msf/base/simple/buffer'
require 'msf/base/simple/statistics'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/auxiliary.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf
module Simple

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/buffer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/encoder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf
module Simple

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/exploit.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/base'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/framework.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/base/simple'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/module.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/base'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/nop.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/base'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/payload.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/post.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf
module Simple

Expand Down
1 change: 1 addition & 0 deletions lib/msf/base/simple/statistics.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf
module Simple

Expand Down
1 change: 1 addition & 0 deletions lib/msf/core.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
###
#
# framework-core
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core.rb.ts.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# -*- coding: binary -*-

require 'test/unit'
require 'msf/core'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/core/module'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/auth_brute.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/cisco.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/commandshell.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/crawler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/dos.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/fuzzer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/iax2.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'rex/proto/iax2/client'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/jtr.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'open3'
require 'fileutils'
require 'rex/proto/ntlm/crypt'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/login.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/mime_types.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'action_dispatch/http/mime_type'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/mixins.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/nmap.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'rex/parser/nmap_nokogiri'
require 'rex/parser/nmap_xml'
require 'open3'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/pii.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
###
# $Id$
###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/report.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/rservices.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
##
# $Id$
##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/scanner.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/timed.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/auxiliary/wmapmodule.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf
###
#
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/constants.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
###
#
# This file contains constants that are referenced by the core
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/data_store.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

###
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/db.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
# Check Rex::Parser.nokogiri_loaded for status of the Nokogiri parsers
require 'rex/parser/nmap_nokogiri'
require 'rex/parser/nexpose_simple_nokogiri'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/db_export.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
module Msf

##
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/db_manager.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require "active_record"

require 'msf/core'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/encoded_payload.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
# $Id$

require 'msf/core'
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/encoder.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/core'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/encoder/alphanum.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/core'

module Msf
Expand Down
1 change: 1 addition & 0 deletions lib/msf/core/encoder/nonalpha.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: binary -*-
require 'msf/core'

module Msf
Expand Down
Loading

0 comments on commit d656e31

Please sign in to comment.