From 2d0d48a820df443806e4f481009f31eb946ddb37 Mon Sep 17 00:00:00 2001 From: amaloteaux <> Date: Wed, 21 Sep 2011 14:52:52 +0000 Subject: [PATCH] remove an Argument Error, Negative Number bug faced at Brucon git-svn-id: file:///home/svn/framework3/trunk@13769 4d416f70-5f16-0410-b530-b9f4589650da --- modules/auxiliary/scanner/snmp/snmp_enum.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/snmp/snmp_enum.rb b/modules/auxiliary/scanner/snmp/snmp_enum.rb index af2b88074b..0a723c6de9 100644 --- a/modules/auxiliary/scanner/snmp/snmp_enum.rb +++ b/modules/auxiliary/scanner/snmp/snmp_enum.rb @@ -863,7 +863,7 @@ class Metasploit3 < Msf::Auxiliary line = "" width = 30 # name field width - twidth = 16 # table like display cell width + #twidth = 16 # table like display cell width fields_order.each {|k| if not output_data.has_key?(k) @@ -887,7 +887,7 @@ class Metasploit3 < Msf::Auxiliary a.each { |sv| sv = sv.to_s.strip - content << sprintf("%s%s", " "*(twidth-sv.length), sv) + content << sprintf("%s%s", " " * 5, sv) } content << "\n" else