palabra 1.18.0 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog +10 -0
- package/letras/rizin/rizin.json +18 -20
- package/letras/yara/yara.json +12 -12
- package/lib/parser/extract.js +7 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/letras/rizin/rizin.json
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
]
|
|
21
|
-
}
|
|
2
|
+
"name": "rizin",
|
|
3
|
+
"version": "0.8.2",
|
|
4
|
+
"url": "https://github.com/rizinorg/rizin/releases/download/v{{ version }}/rizin-v{{ version }}-static-x86_64.tar.xz",
|
|
5
|
+
"extractDirectory": "{{ directorio }}/ {{ name }}",
|
|
6
|
+
"bin": {
|
|
7
|
+
"rizin": "bin/rizin",
|
|
8
|
+
"rz-asm": "bin/rasm",
|
|
9
|
+
"rz-ax": "bin/rax",
|
|
10
|
+
"rz-bin": "bin/rz-bin",
|
|
11
|
+
"rz-diff": "bin/rz-diff",
|
|
12
|
+
"rz-find": "bin/rz-find",
|
|
13
|
+
"rz-gg": "bin/rz-gg",
|
|
14
|
+
"rz-hash": "bin/rz-hash",
|
|
15
|
+
"rz-run": "bin/rz-run",
|
|
16
|
+
"rz-sign": "bin/rz-sign",
|
|
17
|
+
"rz-test": "bin/rz-test"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/letras/yara/yara.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
2
|
+
"name": "yara",
|
|
3
|
+
"version": "1.14.0",
|
|
4
|
+
"url": "https://github.com/VirusTotal/yara-x/releases/download/v{{ version }}/yara-x-v{{ version }}-x86_64-unknown-linux-gnu.gz",
|
|
5
|
+
"bin": {
|
|
6
|
+
"yara": "yr",
|
|
7
|
+
"yr": "yr"
|
|
8
|
+
},
|
|
9
|
+
"commands": [
|
|
10
|
+
"mkdir -f {{ directorio }}/yara",
|
|
11
|
+
"mv -f {{ directorio }}/yr {{ directorio }}/yara/"
|
|
12
|
+
]
|
|
13
|
+
}
|
package/lib/parser/extract.js
CHANGED
|
@@ -7,6 +7,9 @@ const exts = [
|
|
|
7
7
|
'.xz',
|
|
8
8
|
];
|
|
9
9
|
|
|
10
|
+
const CONTINUE = '-c';
|
|
11
|
+
const NOT_OVERWRITE = '-nc';
|
|
12
|
+
|
|
10
13
|
export const isArchive = ({url}) => {
|
|
11
14
|
const ext = extname(new URL(url).pathname);
|
|
12
15
|
return exts.includes(ext);
|
|
@@ -18,15 +21,17 @@ export const extract = (letra) => {
|
|
|
18
21
|
name,
|
|
19
22
|
url,
|
|
20
23
|
directorio,
|
|
24
|
+
extractDirectory = directorio,
|
|
21
25
|
} = letra;
|
|
22
26
|
|
|
23
27
|
const renderedURL = rendy(url, letra);
|
|
24
28
|
const filename = basename(renderedURL);
|
|
29
|
+
const renderedextractDirectory = rendy(extractDirectory, letra);
|
|
25
30
|
|
|
26
|
-
commands.push(`wget ${renderedURL} -O /tmp/${filename}`);
|
|
31
|
+
commands.push(`wget ${CONTINUE} ${NOT_OVERWRITE} ${renderedURL} -O /tmp/${filename}`);
|
|
27
32
|
commands.push(`rm -rf ${directorio}/${name}`);
|
|
28
33
|
commands.push(`mkdir -p ${directorio}/${name}`);
|
|
29
|
-
commands.push(`tar xf /tmp/${filename} -C ${
|
|
34
|
+
commands.push(`tar xf /tmp/${filename} -C ${renderedextractDirectory}`);
|
|
30
35
|
commands.push(`rm /tmp/${filename}`);
|
|
31
36
|
|
|
32
37
|
return commands;
|