IT WORKS!!!!
git-svn-id: file:///home/svn/framework3/trunk@3759 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
1937e34759
commit
edb1f1a7ba
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue