lib/msf/core/exploit/remote/smb/client/web_exec.rb
Method wexec
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def wexec(disconnect=true)
simple.connect("\\\\#{datastore['RHOST']}\\IPC$")
handle = dcerpc_handle('367abb81-9844-35f1-ad32-98f038001003', '2.0', 'ncacn_np', ["\\svcctl"])
vprint_status("Binding to #{handle} ...")
dcerpc_bind(handle)