Skip to content

Commit 52211ab

Browse files
committed
Continue refactoring removal of "DLL" references
1 parent 0da9f4d commit 52211ab

25 files changed

+146
-659
lines changed

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/linux/def_libc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_linux_libc
1111

12-
def self.create_dll(constant_manager, dll_path = 'libc.so.6')
13-
lib = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'libc.so.6')
13+
lib = Library.new(library_path, constant_manager)
1414

1515
lib.add_function(
1616
'calloc',

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/def_libc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_osx_libc
1111

12-
def self.create_dll(constant_manager, dll_path = 'libc.dylib')
13-
lib = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'libc.dylib')
13+
lib = Library.new(library_path, constant_manager)
1414

1515
lib.add_function(
1616
'calloc',

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/def_libobjc.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_osx_libobjc
1111

12-
def self.create_dll(constant_manager, dll_path = 'libobjc.dylib')
13-
lib = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'libobjc.dylib')
13+
lib = Library.new(library_path, constant_manager)
1414

1515
# https://developer.apple.com/documentation/objectivec/1418952-objc_getclass?language=objc
1616
lib.add_function(

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_advapi32.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class Def_windows_advapi32
2424
[:UserName, :LPTSTR]
2525
]
2626

27-
def self.create_dll(constant_manager, dll_path = 'advapi32')
28-
dll = DLL.new(dll_path, constant_manager)
27+
def self.create_library(constant_manager, library_path = 'advapi32')
28+
dll = Library.new(library_path, constant_manager)
2929

3030
dll.add_function('QueryServiceStatus', 'DWORD', [
3131
['LPVOID', 'hService', 'in'],

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_crypt32.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_windows_crypt32
1111

12-
def self.create_dll(constant_manager, dll_path = 'crypt32')
13-
dll = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'crypt32')
13+
dll = Library.new(library_path, constant_manager)
1414

1515
dll.add_function('CryptUnprotectData', 'BOOL', [
1616
['PBLOB','pDataIn', 'in'],

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_iphlpapi.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_windows_iphlpapi
1111

12-
def self.create_dll(constant_manager, dll_path = 'iphlpapi')
13-
dll = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'iphlpapi')
13+
dll = Library.new(library_path, constant_manager)
1414

1515
dll.add_function('CancelIPChangeNotify', 'BOOL',[
1616
["PBLOB","notifyOverlapped","in"],

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_kernel32.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_windows_kernel32
1111

12-
def self.create_dll(constant_manager, dll_path = 'kernel32')
13-
dll = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'kernel32')
13+
dll = Library.new(library_path, constant_manager)
1414

1515
dll.add_function( 'GetConsoleWindow', 'LPVOID',[])
1616

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_netapi32.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_windows_netapi32
1111

12-
def self.create_dll(constant_manager, dll_path = 'netapi32')
13-
dll = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'netapi32')
13+
dll = Library.new(library_path, constant_manager)
1414

1515
dll.add_function('NetApiBufferFree','DWORD',[
1616
["LPVOID","Buffer","in"]

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_ntdll.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_windows_ntdll
1111

12-
def self.create_dll(constant_manager, dll_path = 'ntdll')
13-
dll = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'ntdll')
13+
dll = Library.new(library_path, constant_manager)
1414

1515
dll.add_function('NtAllocateVirtualMemory', 'DWORD',[
1616
["DWORD","ProcessHandle","in"],

lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_psapi.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Def
99

1010
class Def_windows_psapi
1111

12-
def self.create_dll(constant_manager, dll_path = 'psapi')
13-
dll = DLL.new(dll_path, constant_manager)
12+
def self.create_library(constant_manager, library_path = 'psapi')
13+
dll = Library.new(library_path, constant_manager)
1414

1515
dll.add_function('EnumDeviceDrivers', 'BOOL',[
1616
%w(PBLOB lpImageBase out),

0 commit comments

Comments
 (0)