Minor formatting changes to the console

Command list now fits on terminals 80 columns wide
This commit is contained in:
bcoles
2012-07-18 23:48:10 +09:30
parent 8e2f0e9a44
commit bfa2e6dbf7
3 changed files with 6 additions and 6 deletions

View File

@@ -53,10 +53,10 @@ class Command
print_line("Module name: " + driver.interface.cmd['Name'])
print_line("Module category: " + driver.interface.cmd['Category'])
print_line("Module description: " + driver.interface.cmd['Description'])
print_line("Module parameters:")
print_line("Module parameters:") if not driver.interface.cmd['Data'].length == 0
driver.interface.cmd['Data'].each{|data|
print_line(data['name'] + " => \"" + data['value'].to_s + "\" # this is the " + data['ui_label'] + " parameter")
print_line(data['name'] + " => \"" + data['value'].to_s + "\" # " + data['ui_label'])
} if not driver.interface.cmd['Data'].nil?
end
@@ -168,4 +168,4 @@ class Command
end
end end end end
end end end end

View File

@@ -75,7 +75,7 @@ class Target
folder['children'].each { |command|
tbl << [command['id'].to_s,
folder['text'] + "/" + command['text'].gsub(/[-\(\)]/,"").gsub(/\W+/,"_"),
command['status'],
command['status'].gsub(/^Verified /,""),
driver.interface.getcommandresponses(command['id']).length] #TODO
}
}
@@ -179,4 +179,4 @@ class Target
end
end end end end
end end end end

View File

@@ -245,7 +245,7 @@ class ShellInterface
'os' => [BD.get(hook_session_id, 'OsName')]})
when BeEF::Core::Constants::CommandModule::VERIFIED_NOT_WORKING
return "Verfied Not Working"
return "Verified Not Working"
when BeEF::Core::Constants::CommandModule::VERIFIED_USER_NOTIFY
return "Verified User Notify"
when BeEF::Core::Constants::CommandModule::VERIFIED_WORKING