mirror of https://github.com/n1nj4sec/pupy.git
Try to convert uid first
This commit is contained in:
parent
5007957722
commit
d830ac45c5
|
@ -19,6 +19,11 @@ from pupy import obtain
|
|||
|
||||
def prepare(suid=None):
|
||||
if suid is not None:
|
||||
try:
|
||||
suid = int(suid)
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
if not type(suid) in (int, long):
|
||||
import pwd
|
||||
|
|
Loading…
Reference in New Issue