IT WORKS!!!!

git-svn-id: file:///home/svn/framework3/trunk@3759 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-07-27 04:16:39 +00:00
parent 1937e34759
commit edb1f1a7ba
2 changed files with 4 additions and 9 deletions

View File

@ -103,11 +103,7 @@ def self.win32_readline_daemon
serv.close
# Replace stdin with the socket
$stdin.close
$stdin = clnt
# Integrate with patched readline extension
$READLINE_STDIN = clnt
$stdin.reopen(clnt)
end
end

View File

@ -16,16 +16,15 @@ begin
Rex::Compat.win32_stdin_unblock()
$stderr.puts "Starting stdio daemon..."
# $stderr.puts "Starting stdio daemon..."
while (true)
c = $stdin.sysread(1)
$stderr.printf("%.2x \n", c[0])
sock.write(c)
sock.flush
end
rescue ::Exception
$stderr.puts "Exception: #{$!.to_s}"
$stderr.puts "stdio: #{$!.to_s}"
end
Rex::Compat.win32_stdin_block()