helper mixins for exploits
git-svn-id: file:///home/svn/incoming/trunk@2577 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
1e6e29ad6d
commit
24d5e986cc
|
@ -0,0 +1,26 @@
|
|||
module Msf
|
||||
|
||||
###
|
||||
#
|
||||
# DCERPC
|
||||
# ------
|
||||
#
|
||||
# This mixin provides utility methods for interacting with a DCERPC service on
|
||||
# a remote machine. These methods may generally be useful in the context of
|
||||
# exploitation. This mixin extends the Tcp exploit mixin.
|
||||
#
|
||||
###
|
||||
module Exploit::Remote::DCERPC
|
||||
include Exploit::Remote::Tcp
|
||||
|
||||
def initialize(info)
|
||||
super(merge_info(info,
|
||||
'Options' =>
|
||||
[
|
||||
Opt::RHOST,
|
||||
Opt::RPORT(135)
|
||||
]))
|
||||
end
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1,25 @@
|
|||
module Msf
|
||||
|
||||
###
|
||||
#
|
||||
# Tcp
|
||||
# ---
|
||||
#
|
||||
# This module provides methods for establish a connection to a remote host and
|
||||
# communicating with it.
|
||||
#
|
||||
###
|
||||
module Exploit::Remote::Tcp
|
||||
|
||||
def initialize(info)
|
||||
super(merge_info(info,
|
||||
'Options' =>
|
||||
[
|
||||
Opt::RHOST,
|
||||
Opt::RPORT
|
||||
]))
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue