Fix non-rubyisms
parent
18e1d9ce17
commit
8b77da4ef7
|
@ -34,7 +34,7 @@ class Clipboard
|
|||
|
||||
text = response.get_tlv_value(TLV_TYPE_EXT_CLIPBOARD_TYPE_TEXT)
|
||||
|
||||
if not text.nil?
|
||||
if text
|
||||
results << {
|
||||
:type => :text,
|
||||
:data => text
|
||||
|
@ -57,7 +57,7 @@ class Clipboard
|
|||
end
|
||||
|
||||
response.each(TLV_TYPE_EXT_CLIPBOARD_TYPE_IMAGE_JPG) do |jpg|
|
||||
if not jpg.nil?
|
||||
if jpg
|
||||
results << {
|
||||
:type => :jpg,
|
||||
:width => jpg.get_tlv_value(TLV_TYPE_EXT_CLIPBOARD_TYPE_IMAGE_JPG_DIMX),
|
||||
|
|
|
@ -20,7 +20,7 @@ class Service
|
|||
end
|
||||
|
||||
# Enumerate all the services on the target.
|
||||
def enumerate()
|
||||
def enumerate
|
||||
request = Packet.create_request('extapi_service_enum')
|
||||
response = client.send_request(request)
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class Console::CommandDispatcher::Extapi::Service
|
|||
7 => "Paused"
|
||||
}
|
||||
|
||||
services = client.extapi.service.enumerate()
|
||||
services = client.extapi.service.enumerate
|
||||
|
||||
table = Rex::Ui::Text::Table.new(
|
||||
'Header' => 'Service List',
|
||||
|
|
Loading…
Reference in New Issue