Merge pull request #122 from lambor/master

fix skeleton stdin cannot use modified environment
This commit is contained in:
Long Le 2018-05-26 08:57:45 +07:00 committed by GitHub
commit e0eb0af4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ def exploit(vuln):
args = sys.argv[1:]
resource.setrlimit(resource.RLIMIT_STACK, (-1, -1))
resource.setrlimit(resource.RLIMIT_CORE, (-1, -1))
P = Popen(args, stdin=PIPE)
P = Popen(args, stdin=PIPE, env=env)
P.stdin.write(payload + "\\n")
while True:
line = sys.stdin.readline()