Skip to content

Commit

Permalink
fix skeleton stdin cannot use modified environment
Browse files Browse the repository at this point in the history
  • Loading branch information
lambor committed May 25, 2018
1 parent 4cd2bfb commit ade02ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ade02ae

Please sign in to comment.