From dda3453ac75308d17097d32828cf296e1bcca921 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 28 Jan 2012 23:33:26 -0600 Subject: [PATCH] Correct a typo --- modules/auxiliary/scanner/discovery/udp_probe.rb | 4 ++-- modules/auxiliary/scanner/discovery/udp_sweep.rb | 4 ++-- modules/auxiliary/scanner/pcanywhere/pcanywhere_udp.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/auxiliary/scanner/discovery/udp_probe.rb b/modules/auxiliary/scanner/discovery/udp_probe.rb index a3ea13440c..21022981b7 100644 --- a/modules/auxiliary/scanner/discovery/udp_probe.rb +++ b/modules/auxiliary/scanner/discovery/udp_probe.rb @@ -174,8 +174,8 @@ class Metasploit3 < Msf::Auxiliary when /^NR(........................)(........)/ name = $1.dup caps = $2.dup - name = gsub(/_+$/, '').gsub("\x00", '').strip - caps = gsub(/_+$/, '').gsub("\x00", '').strip + name = name.gsub(/_+$/, '').gsub("\x00", '').strip + caps = caps.gsub(/_+$/, '').gsub("\x00", '').strip data[:name] = name data[:caps] = caps diff --git a/modules/auxiliary/scanner/discovery/udp_sweep.rb b/modules/auxiliary/scanner/discovery/udp_sweep.rb index b5f1710270..5420cb76cd 100644 --- a/modules/auxiliary/scanner/discovery/udp_sweep.rb +++ b/modules/auxiliary/scanner/discovery/udp_sweep.rb @@ -207,8 +207,8 @@ class Metasploit3 < Msf::Auxiliary when /^NR(........................)(........)/ name = $1.dup caps = $2.dup - name = gsub(/_+$/, '').gsub("\x00", '').strip - caps = gsub(/_+$/, '').gsub("\x00", '').strip + name = name.gsub(/_+$/, '').gsub("\x00", '').strip + caps = caps.gsub(/_+$/, '').gsub("\x00", '').strip data[:name] = name data[:caps] = caps diff --git a/modules/auxiliary/scanner/pcanywhere/pcanywhere_udp.rb b/modules/auxiliary/scanner/pcanywhere/pcanywhere_udp.rb index 704d5c8741..717432e262 100644 --- a/modules/auxiliary/scanner/pcanywhere/pcanywhere_udp.rb +++ b/modules/auxiliary/scanner/pcanywhere/pcanywhere_udp.rb @@ -143,8 +143,8 @@ class Metasploit3 < Msf::Auxiliary name = $1.dup caps = $2.dup - name = gsub(/_+$/, '').gsub("\x00", '').strip - caps = gsub(/_+$/, '').gsub("\x00", '').strip + name = name.gsub(/_+$/, '').gsub("\x00", '').strip + caps = caps.gsub(/_+$/, '').gsub("\x00", '').strip @results[addr] ||= {} @results[addr][:name] = name