Skip to content

Commit e463773

Browse files
authored
Merge pull request #3 from sourcegraph-community/jd/python
Add Python Support
2 parents 7632ba2 + 39e2a3d commit e463773

File tree

5 files changed

+1001
-9
lines changed

5 files changed

+1001
-9
lines changed

bookmarklet.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// version 0.0.4
1+
// version 0.0.3
22
// Generate bookmarklet: https://caiorss.github.io/bookmarklet-maker/
33

44
var newURL = window.location.host + window.location.pathname
55

66
window.location.href = 'https://sourcegraph.com/search/console' +
77
'?q=repo%3A' +
88
newURL +
9-
'%24%20%0A%0Apatterntype%3Aregexp%20%0A%0Af%3ACargo.lock%20openssl-src%20AND%20version%5Cs*%3D%5Cs*%22300%5C.%5B0-9%5C.%5D%2B%5C%2B3%5C.0%5C.%5B0-6%5D%0A%0Afork%3Ayes%20';
9+
'%0A%0Apatterntype%3Aregexp%20%0A%0A(f%3ACargo.lock%20openssl-src%20AND%20version%5Cs*%3D%5Cs*"300%5C.%5B0-9%5C.%5D%2B%5C%2B3%5C.0%5C.%5B0-6%5D)%0A%0Aor%0A%0A(f%3Arequirements.*txt%20cryptography(%5Cs*%5B%3D~%5D%3D%5Cs*(36%5C.%7C37%5C.%7C38%5C.0%5C.%5B0-2%5D)))%20OR%20(f%3Apoetry.lock%20name%5Cs*%3D%5Cs*"cryptography"%20AND%20version%5Cs*%3D%5Cs*"(36%5C.%7C37%5C.%7C38%5C.0%5C.%5B0-2%5D))%0A%0Afork%3Ayes%20';

index.html

+3-5
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,19 @@
3737
<header class="d-flex align-items-center pb-3 mb-5 border-bottom">&nbsp;</header>
3838
<main>
3939
<h1>Find <abbr title="CVE-2022-3786 and CVE-2022-3602: X.509 Email Address Buffer Overflows">vulnerable versions</abbr> of OpenSSL in your GitHub repo</h1>
40+
<h5>Supported: Rust, Python, and more coming</h5>
4041
<p class="lead">Drag the button ⤵️ to your Bookmarks Bar and then <a href="https://github.com/sourcegraph-community/openssl-checker" target="_blank" rel="noopener noreferrer">try it out</a>.</p>
4142

4243
<div class="mb-5">
4344
<a class="btn btn-primary btn-lg active" href="javascript:(function()%7Bvar%20newURL%20%3D%20window.location.host%20%2B%20window.location.pathname%0A%0Awindow.location.href%20%3D%20'https%3A%2F%2Fsourcegraph.com%2Fsearch%2Fconsole'%20%2B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20'%3Fq%3Drepo%253A'%20%2B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20newURL%20%2B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20'%2524%2520%250A%250Apatterntype%253Aregexp%2520%250A%250Af%253ACargo.lock%2520openssl-src%2520AND%2520version%255Cs*%253D%255Cs*%2522300%255C.%255B0-9%255C.%255D%252B%255C%252B3%255C.0%255C.%255B0-6%255D%250A%250Afork%253Ayes%2520'%3B%7D)()%3B" role="button">OpenSSL Checker</a>
4445
</div>
4546
<div class="mb-5">
4647
<a href="https://sourcegraph.com/search/console?q=repo%3Agithub.com/sourcegraph-community/openssl-checker%24%20%0A%0Apatterntype%3Aregexp%20%0A%0Af%3ACargo.lock%20openssl-src%20AND%20version%5Cs*%3D%5Cs*%22300%5C.%5B0-9%5C.%5D%2B%5C%2B3%5C.0%5C.%5B0-6%5D%0A%0Afork%3Ayes%20" target="_blank">Try without Bookmarklet</a>
47-
</div>
48-
49-
50-
48+
</div>
5149

5250
</main>
5351
<footer class="pt-5 my-5 text-muted border-top">
54-
Created by <a href="https://twitter.com/jdorfman">@jdorfman</a> &middot; &copy; 2022 &middot; v0.0.4
52+
Created by <a href="https://twitter.com/jdorfman">@jdorfman</a> &middot; &copy; 2022 &middot; v0.0.3
5553
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=a5bd5d59-f729-456f-b088-d9341ac8bfd0" />
5654
</footer>
5755
</div>

0 commit comments

Comments
 (0)