Fix non-rubyisms

bug/bundler_fix
OJ 2013-12-04 07:06:32 +10:00
parent 18e1d9ce17
commit 8b77da4ef7
3 changed files with 4 additions and 4 deletions

View File

@ -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),

View File

@ -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)

View File

@ -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',