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 467b8c4
Showing
3 changed files
with
51 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
module github.com/ericchiang/pup | ||
module github.com/ccamacho-d/pup | ||
|
||
go 1.13 | ||
|
||
require ( | ||
github.com/fatih/color v1.0.0 | ||
github.com/mattn/go-colorable v0.0.5 | ||
github.com/mattn/go-isatty v0.0.0-20151211000621-56b76bdf51f7 // indirect | ||
golang.org/x/net v0.0.0-20160720084139-4d38db76854b | ||
golang.org/x/sys v0.0.0-20160717071931-a646d33e2ee3 // indirect | ||
golang.org/x/text v0.0.0-20160719205907-0a5a09ee4409 | ||
github.com/mattn/go-isatty v0.0.19 // indirect | ||
golang.org/x/net v0.14.0 | ||
golang.org/x/text v0.12.0 | ||
) |
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)) |