Skip to content

Commit 885b9ee

Browse files
author
Jonathan Tan Chiu Joo
committed
Updated python examples
Updated python example to allow the example scanning to show vulnerable methods. Added examples to demonstrate call chains. Changed python imports to include very popular libraries like requests (53m downloads) and pycrpyto (25m downloads).
1 parent 38d060e commit 885b9ee

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

main.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
1+
from jwt import algorithms
22
from django.utils import formats
3-
3+
from rsa import cli
4+
from feedparser import feedparser
5+
from requests import sessions
6+
from lib.Crypto.PublicKey import ElGamal
47
if __name__ == '__main__':
58
formats.get_format()
9+
algorithms.HMACAlgorithm.prepare_key()
10+
cli.VerifyOperation.perform_operation()
11+
feedparser.parse()
12+
sessions.SessionRedirectMixin.resolve_redirects()
13+
ElGamal.generate()

requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
django==1.7.1
2-
ipython==3.2.0
3-
qpid-python==0.32.1
4-
filebrowser_safe==0.1
5-
PyJWT==0.1.1
2+
PyJWT==0.4.2
3+
rsa==3.0
4+
feedparser==5.1.1
5+
requests==2.2.1
6+
pycrypto==2.4

0 commit comments

Comments
 (0)