Skip to content

Commit 1eb473a

Browse files
author
Sakshis
committed
python-cassandra-hardcoded-secret-python
1 parent 096a480 commit 1eb473a

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
id: python-cassandra-hardcoded-secret-python
2+
snapshots:
3+
? |
4+
from cassandra.auth import PlainTextAuthProvider
5+
auth_provider = PlainTextAuthProvider('user', 'pass')
6+
: labels:
7+
- source: PlainTextAuthProvider('user', 'pass')
8+
style: primary
9+
start: 65
10+
end: 102
11+
- source: ''''
12+
style: secondary
13+
start: 95
14+
end: 96
15+
- source: pass
16+
style: secondary
17+
start: 96
18+
end: 100
19+
- source: ''''
20+
style: secondary
21+
start: 100
22+
end: 101
23+
- source: '''pass'''
24+
style: secondary
25+
start: 95
26+
end: 101
27+
- source: ('user', 'pass')
28+
style: secondary
29+
start: 86
30+
end: 102
31+
- source: PlainTextAuthProvider
32+
style: secondary
33+
start: 65
34+
end: 86
35+
- source: PlainTextAuthProvider
36+
style: secondary
37+
start: 27
38+
end: 48
39+
- source: cassandra.auth
40+
style: secondary
41+
start: 5
42+
end: 19
43+
- source: from cassandra.auth import PlainTextAuthProvider
44+
style: secondary
45+
start: 0
46+
end: 48
47+
- source: from cassandra.auth import PlainTextAuthProvider
48+
style: secondary
49+
start: 0
50+
end: 48
51+
? |
52+
from cassandra.auth import PlainTextAuthProvider
53+
auth_provider = PlainTextAuthProvider(username='user', password='pass')
54+
: labels:
55+
- source: PlainTextAuthProvider(username='user', password='pass')
56+
style: primary
57+
start: 65
58+
end: 120
59+
- source: password
60+
style: secondary
61+
start: 104
62+
end: 112
63+
- source: ''''
64+
style: secondary
65+
start: 113
66+
end: 114
67+
- source: pass
68+
style: secondary
69+
start: 114
70+
end: 118
71+
- source: ''''
72+
style: secondary
73+
start: 118
74+
end: 119
75+
- source: '''pass'''
76+
style: secondary
77+
start: 113
78+
end: 119
79+
- source: password='pass'
80+
style: secondary
81+
start: 104
82+
end: 119
83+
- source: (username='user', password='pass')
84+
style: secondary
85+
start: 86
86+
end: 120
87+
- source: PlainTextAuthProvider
88+
style: secondary
89+
start: 65
90+
end: 86
91+
- source: PlainTextAuthProvider
92+
style: secondary
93+
start: 27
94+
end: 48
95+
- source: cassandra.auth
96+
style: secondary
97+
start: 5
98+
end: 19
99+
- source: from cassandra.auth import PlainTextAuthProvider
100+
style: secondary
101+
start: 0
102+
end: 48
103+
- source: from cassandra.auth import PlainTextAuthProvider
104+
style: secondary
105+
start: 0
106+
end: 48

0 commit comments

Comments
 (0)