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-b9f4589650daunstable
parent
ecc06247ab
commit
1e7be6650a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue