From f7650a4b18a61f4b31a653c8a4df362ef41e6544 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Mon, 24 Jun 2013 11:35:26 -0500 Subject: [PATCH] Fix wrong local variable --- modules/exploits/multi/http/jboss_bshdeployer.rb | 2 +- modules/exploits/multi/http/jboss_deploymentfilerepository.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/exploits/multi/http/jboss_bshdeployer.rb b/modules/exploits/multi/http/jboss_bshdeployer.rb index dc74bec520..336006ccea 100644 --- a/modules/exploits/multi/http/jboss_bshdeployer.rb +++ b/modules/exploits/multi/http/jboss_bshdeployer.rb @@ -426,7 +426,7 @@ EOT arch = $1 if (arch =~ /(x86|i386|i686)/i) return ARCH_X86 - elsif (os =~ /(x86_64|amd64)/i) + elsif (arch =~ /(x86_64|amd64)/i) return ARCH_X86 end end diff --git a/modules/exploits/multi/http/jboss_deploymentfilerepository.rb b/modules/exploits/multi/http/jboss_deploymentfilerepository.rb index 598b9c95cf..84493b5600 100644 --- a/modules/exploits/multi/http/jboss_deploymentfilerepository.rb +++ b/modules/exploits/multi/http/jboss_deploymentfilerepository.rb @@ -414,7 +414,7 @@ EOT arch = $1 if (arch =~ /(x86|i386|i686)/i) return ARCH_X86 - elsif (os =~ /(x86_64|amd64)/i) + elsif (arch =~ /(x86_64|amd64)/i) return ARCH_X86 end end