forked from ericchiang/pup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update dependencies to fix vulnerabilities of issue ericchiang…
- Loading branch information
1 parent
5a57cf1
commit e949e65
Showing
5 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/usr/bin/env python | ||
|
||
from __future__ import print_function | ||
from hashlib import sha1 | ||
from hashlib import sha512 | ||
from subprocess import Popen, PIPE, STDOUT | ||
|
||
data = open("index.html", "r").read() | ||
|
||
for line in open("cmds.txt", "r"): | ||
line = line.strip() | ||
p = Popen(['pup', line], stdout=PIPE, stdin=PIPE, stderr=PIPE) | ||
h = sha1() | ||
h = sha512() | ||
h.update(p.communicate(input=data)[0]) | ||
print("%s %s" % (h.hexdigest(), line)) |