This method seems to work on Windows 7 - $stdin reads on a closed rxvt lead to the hung ruby procs.

git-svn-id: file:///home/svn/framework3/trunk@7478 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2009-11-12 07:02:40 +00:00
parent ecc06247ab
commit 1e7be6650a
1 changed files with 2 additions and 9 deletions

View File

@ -10,17 +10,10 @@ end
Dir.chdir(msf3)
allowed = false
begin
File.open(".svn/write_test.txt", "wb") do |fd|
fd.write("YES")
end
File.unlink(".svn/write_test.exe")
allowed = true
fd = File.open("/bin/bash", "a")
fd.close
rescue ::Exception
end
if(not allowed)
puts "[*] Error: msfupdate must be run as an administrative user"
sleep(30)
exit(1)