Switch errors over to windows_error gem...

bug/bundler_fix
Pearce Barry 2016-07-26 16:59:13 -05:00
parent 2a703d6cec
commit bdf073516b
No known key found for this signature in database
GPG Key ID: 0916F4DEA5C5DE0A
5 changed files with 11 additions and 12 deletions

View File

@ -46,6 +46,7 @@ PATH
sshkey sshkey
tzinfo tzinfo
tzinfo-data tzinfo-data
windows_error
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
@ -277,6 +278,7 @@ GEM
thread_safe (~> 0.1) thread_safe (~> 0.1)
tzinfo-data (1.2016.6) tzinfo-data (1.2016.6)
tzinfo (>= 1.0.0) tzinfo (>= 1.0.0)
windows_error (0.0.2)
xpath (2.0.0) xpath (2.0.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
yard (0.9.0) yard (0.9.0)

View File

@ -1,5 +1,9 @@
# -*- coding: binary -*- # -*- coding: binary -*-
require 'rex/proto/dcerpc/svcctl' require 'rex/proto/dcerpc/svcctl'
require 'windows_error'
require 'windows_error/win32'
include WindowsError::Win32
module Msf module Msf

View File

@ -10,18 +10,6 @@ module Windows
STANDARD_RIGHTS_REQUIRED = 0x000F0000 STANDARD_RIGHTS_REQUIRED = 0x000F0000
##
#
# Errors
#
##
ERROR_SUCCESS = 0x0
ERROR_FILE_NOT_FOUND = 0x2
ERROR_ACCESS_DENIED = 0x5
ERROR_SERVICE_REQUEST_TIMEOUT = 0x41D
ERROR_SERVICE_EXISTS = 0x431
## ##
# #
# SVCCTL Protocol Functions # SVCCTL Protocol Functions

View File

@ -7,12 +7,15 @@ module Rex
### ###
module Proto::DCERPC::SVCCTL module Proto::DCERPC::SVCCTL
require 'windows_error'
require 'windows_error/win32'
require 'rex/constants/windows' require 'rex/constants/windows'
NDR = Rex::Encoder::NDR NDR = Rex::Encoder::NDR
class Client class Client
include WindowsError::Win32
include Rex::Constants::Windows include Rex::Constants::Windows
attr_accessor :dcerpc_client attr_accessor :dcerpc_client

View File

@ -102,6 +102,8 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'sshkey' spec.add_runtime_dependency 'sshkey'
# BitStruct Library used for handling certain Protocol Header/Packet construction # BitStruct Library used for handling certain Protocol Header/Packet construction
spec.add_runtime_dependency 'bit-struct' spec.add_runtime_dependency 'bit-struct'
# Library for interpreting Windows error codes and strings
spec.add_runtime_dependency 'windows_error'
# #
# Protocol Libraries # Protocol Libraries