Benign lua Download

ccharts 3.0.0-1

File is named extconf.rbLiteral references a .dylib name
SHA-2567faa4872c2637d83414a6547da180cb7fcd9419394692d168ec6c71df38de310

Evidence

imports ctypes lines 13–28
13:5… ead of silently rewriting the expectations.
14"""
15
16import argparse
17import ctypes
18import json
19import os
20import sys
21
22ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
⋯6 lines
Literal references a .dylib name lines 151–166
151:13… cit:
152 return explicit
153 names = ["libccharts_abi.so", "libccharts_abi.dylib", "ccharts_abi.dll",
154 "libccharts_abi.dll"]
155 roots = [os.path.join(ROOT, "build"), os.path.join(ROOT, "build", "Release"),
156 os.environ.get("CCHARTS_BUILD_DIR", "")]
157 for root in roots:
158 if not root:
159 continue
⋯7 lines
ctypes.CDLL pattern lines 166–174
166:52… ld\n"
167 "or pass --lib PATH")
168
169
170def load(path):
171 lib = ctypes.CDLL(path)
172 lib.ccharts_from_arrays.restype = ctypes.c_int32
173 lib.ccharts_from_arrays.argtypes = [
174 ctypes.POINTER(ctyp …
Python getattr dynamic attribute lookup lines 185–189
185:2… for name in ("ccharts_line", "ccharts_candle"):
186 fn = getattr(lib, name)
187 fn.restype = ctypes.c_int32
188 fn.argtypes = [ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32,
189 …
Python not-in membership check lines 259–265
259:4… color(lib, name):
260 if name is None:
261 return None
262 if name not in COLOR_NAMES:
263 raise SystemExit("unknown color name in cases.json: %r" % name)
264 return lib.ccharts_color(COLOR_NAMES.index(name))
265

Showing the top 5 files — 7 more files (40 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.