Datasets:
taisazero
commited on
Commit
·
271e5f2
1
Parent(s):
925e19f
updated class name and documentation
Browse files- Shellcode_IA32.py +23 -11
Shellcode_IA32.py
CHANGED
|
@@ -25,18 +25,30 @@ import datasets
|
|
| 25 |
# TODO: Add BibTeX citation
|
| 26 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
| 27 |
_CITATION = """\
|
| 28 |
-
@
|
| 29 |
-
title = {A
|
| 30 |
-
author=
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
"""
|
| 35 |
|
| 36 |
# TODO: Add description of the dataset here
|
| 37 |
# You can copy an official description
|
| 38 |
_DESCRIPTION = """\
|
| 39 |
-
|
| 40 |
"""
|
| 41 |
|
| 42 |
# TODO: Add a link to an official homepage for the dataset here
|
|
@@ -54,7 +66,7 @@ _URLs = {
|
|
| 54 |
|
| 55 |
|
| 56 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
| 57 |
-
class
|
| 58 |
"""Shellcode_IA32 a dataset for shellcode generation"""
|
| 59 |
|
| 60 |
VERSION = datasets.Version("1.1.0")
|
|
@@ -70,10 +82,10 @@ class Shellcode_IA32(datasets.GeneratorBasedBuilder):
|
|
| 70 |
# You will be able to load one or the other configurations in the following list with
|
| 71 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
| 72 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
| 73 |
-
BUILDER_CONFIGS = [
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
]
|
| 77 |
|
| 78 |
DEFAULT_CONFIG_NAME = "default" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
| 79 |
|
|
|
|
| 25 |
# TODO: Add BibTeX citation
|
| 26 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
| 27 |
_CITATION = """\
|
| 28 |
+
@inproceedings{liguori-etal-2021-shellcode,
|
| 29 |
+
title = "{S}hellcode{\_}{IA}32: A Dataset for Automatic Shellcode Generation",
|
| 30 |
+
author = "Liguori, Pietro and
|
| 31 |
+
Al-Hossami, Erfan and
|
| 32 |
+
Cotroneo, Domenico and
|
| 33 |
+
Natella, Roberto and
|
| 34 |
+
Cukic, Bojan and
|
| 35 |
+
Shaikh, Samira",
|
| 36 |
+
booktitle = "Proceedings of the 1st Workshop on Natural Language Processing for Programming (NLP4Prog 2021)",
|
| 37 |
+
month = aug,
|
| 38 |
+
year = "2021",
|
| 39 |
+
address = "Online",
|
| 40 |
+
publisher = "Association for Computational Linguistics",
|
| 41 |
+
url = "https://aclanthology.org/2021.nlp4prog-1.7",
|
| 42 |
+
doi = "10.18653/v1/2021.nlp4prog-1.7",
|
| 43 |
+
pages = "58--64",
|
| 44 |
+
abstract = "We take the first step to address the task of automatically generating shellcodes, i.e., small pieces of code used as a payload in the exploitation of a software vulnerability, starting from natural language comments. We assemble and release a novel dataset (Shellcode{\_}IA32), consisting of challenging but common assembly instructions with their natural language descriptions. We experiment with standard methods in neural machine translation (NMT) to establish baseline performance levels on this task.",
|
| 45 |
}
|
| 46 |
"""
|
| 47 |
|
| 48 |
# TODO: Add description of the dataset here
|
| 49 |
# You can copy an official description
|
| 50 |
_DESCRIPTION = """\
|
| 51 |
+
Shellcode_IA32 is a dataset for shellcode generation from English intents. The shellcodes are compilable on Intel Architecture 32-bits.
|
| 52 |
"""
|
| 53 |
|
| 54 |
# TODO: Add a link to an official homepage for the dataset here
|
|
|
|
| 66 |
|
| 67 |
|
| 68 |
# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
|
| 69 |
+
class ShellcodeIA32(datasets.GeneratorBasedBuilder):
|
| 70 |
"""Shellcode_IA32 a dataset for shellcode generation"""
|
| 71 |
|
| 72 |
VERSION = datasets.Version("1.1.0")
|
|
|
|
| 82 |
# You will be able to load one or the other configurations in the following list with
|
| 83 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
| 84 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
| 85 |
+
# BUILDER_CONFIGS = [
|
| 86 |
+
# datasets.BuilderConfig(name="default", version=VERSION, description="This part of my dataset covers the default train/test split"),
|
| 87 |
+
# #datasets.BuilderConfig(name="second_domain", version=VERSION, description="This part of my dataset covers a second domain"),
|
| 88 |
+
# ]
|
| 89 |
|
| 90 |
DEFAULT_CONFIG_NAME = "default" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
| 91 |
|