Benign github Download

vmactions/dragonflybsd-vm

Action declares a main entrypointBasename is uppercase README.md

Evidence

Runs env to list environment variables run.txt · lines 1–12
⋯7 lines
8 ls -lah
9 whoami
10 env
11 uname -a
12 echo "OK"
URL embeds a {{ }} template placeholder README.tpl.md · lines 1–10
1# Run GitHub CI in {{VM_NAME}} ![Test](https://github.com/{{GITHUB_REPOSITORY}}/workflows/Test/badge.svg)
2
3Use this action to run your CI in {{VM_NAME}}.
4
5The github workflow only supports Ubuntu, Windows and MacOS. But what if you need to use {{VM_NAME}}?
6
7This action is to support {{VM_NAME}}.
8
9
10Sampl …
imports http auth.d.ts · lines 1–26
1/// <reference types="node" />
2import * as http from 'http';
3import * as ifm from './interfaces';
4import { HttpClientResponse } from './index';
5export declare class BasicCredentialHandler implements ifm.RequestHandler {
6 username: string;
7 password: string;
8 constructor(username: string, password: string);
9 prepareRequest(options: http.RequestOptions): void;
10 canHandleAuthentication(): boolean;
11 handleAuthentication(): Promise<HttpClientResponse>;
12}
13export declare class BearerCredentialHandler implements ifm.RequestHandler {
14 token: string;
15 constructor(token: string);
16 prepareRequest(options: http.RequestOptions): void;
⋯10 lines
Three slice calls with fixed interior offsets parse.js · lines 1–35
1import validate from './validate.js';
2
3function parse(uuid) {
⋯5 lines
9 var arr = new Uint8Array(16); // Parse ########-....-....-....-............
10
11 arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
12 arr[1] = v >>> 16 & 0xff;
13 arr[2] = v >>> 8 & 0xff;
14 arr[3] = v & 0xff; // Parse ........-####-....-....-............
15
16 arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
17 arr[5] = v & 0xff; // Parse ........-....-####-....-............
18
19 arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
20 arr[7] = v & 0xff; // Parse ........-....-....-####-............
21
22 arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
23 arr[9] = v & 0xff; // Parse ........-....-....-....-############
24 // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
25
26 arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
27 arr[11] = v / 0x100000000 & 0xff;
28 arr[12] = v >>> 24 & 0xff;
29 arr[13] = v >>> 16 & 0xff;
30 arr[14] = v >>> 8 & 0xff;
31 arr[15] = v & 0xff;
⋯4 lines
Caret or XOR operation token in source sha1.js · lines 1–37
1// Adapted from Chris Veness' SHA1 code at
2// http://www.movable-type.co.uk/scripts/sha1.html
3function f(s, x, y, z) {
4 switch (s) {
5 case 0:
6 return x & y ^ ~x & z;
7
8 case 1:
9 return x ^ y ^ z;
10
11 case 2:
12 return x & y ^ x & z ^ y & z;
13
14 case 3:
⋯8 lines
23function sha1(bytes) {
24 var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
25 var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
26
27 if (typeof bytes === 'string') {
28 var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
29
30 bytes = [];
⋯7 lines

Showing the top 5 files — 3 more files (11 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.