repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/analyze/lib/checks/BooleanCheck.ts | analyze/lib/checks/BooleanCheck.ts | import BaseCheck, { ICheckIdentity, CheckType, ICheckMeta } from './BaseCheck';
export default class BooleanCheck extends BaseCheck {
public readonly prefix = 'BOOL';
public readonly type = CheckType.Individual;
private readonly value: boolean;
constructor(identity: ICheckIdentity, meta: ICheckMeta, value: b... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/analyze/lib/checks/NumberCheck.ts | analyze/lib/checks/NumberCheck.ts | import BaseCheck, { CheckType, ICheckIdentity, ICheckMeta } from './BaseCheck';
export default class NumberCheck extends BaseCheck {
public readonly prefix = 'NUMR';
public readonly type = CheckType.Individual;
private readonly value: number;
private readonly label: string;
constructor(identity: ICheckIden... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/analyze/lib/checks/ArrayOrderIndexCheck.ts | analyze/lib/checks/ArrayOrderIndexCheck.ts | import BaseCheck, { CheckType, ICheckIdentity, ICheckMeta } from './BaseCheck';
type IOrderIndex = [prevOrder: string[], postOrder: string[]];
export default class ArrayOrderIndexCheck extends BaseCheck {
public readonly prefix = 'AORD';
public readonly type = CheckType.Individual;
private readonly orderIndex:... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/analyze/plugins-in-progress/port-ranges/index.ts | analyze/plugins-in-progress/port-ranges/index.ts | // import IRequestDetails from "@double-agent/collect/interfaces/IRequestDetails";
//
// keep the browser up but clear the cookies... can you still be tracked.
//
// private getSessionFromAddressAndPort(requestDetails: IRequestDetails) {
// const addrParts = requestDetails.remoteAddress.split(':');
// const addrPor... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/analyze/plugins-in-progress/port-ranges/lib/IpProfile.ts | analyze/plugins-in-progress/port-ranges/lib/IpProfile.ts | // import OriginType from '@double-agent/collect-controller/interfaces/OriginType';
// import ResourceType from '@double-agent/collect-controller/interfaces/ResourceType';
// import IRequestContext from '@double-agent/collect-controller/interfaces/IRequestContext';
// import { inspect } from 'util';
// import Config fr... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/analyze/plugins-in-progress/browser-renderer/index.ts | analyze/plugins-in-progress/browser-renderer/index.ts | // TODO: ensure the browser renderer loaded css, images, js, websockets, and xhr requests
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/index.ts | tls-server/index.ts | import { EventEmitter } from 'events';
import { ChildProcess, fork } from 'child_process';
import Config from '@double-agent/config';
import parseTlsRecordFromStderr from './lib/parseTlsRecordFromStderr';
import ServerResponse from './lib/ServerResponse';
import IncomingMessage from './lib/IncomingMessage';
import ICli... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/child.ts | tls-server/child.ts | import '@ulixee/commons/lib/SourceMapSupport';
import * as https from 'https';
import * as tls from 'tls';
import { IncomingMessage, ServerResponse } from 'http';
const minMillisBetweenConnects = 5e3;
let connectionCount = 0;
let lastConnectionDate: Date;
let activeConnection: { id: number; req: IncomingMessage; res:... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/interfaces/IClientHello.ts | tls-server/interfaces/IClientHello.ts | import IHello from './IHello';
export default interface IClientHello extends IHello {
type: 'ClientHello';
ciphers: string[];
compressionMethods: string[];
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/interfaces/IHeader.ts | tls-server/interfaces/IHeader.ts | import IServerHello from './IServerHello';
import IClientHello from './IClientHello';
export default interface IHeader {
from: 'client' | 'server';
version: string;
contentType: string;
length: string;
content: IClientHello | IServerHello | string;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/interfaces/IServerHello.ts | tls-server/interfaces/IServerHello.ts | import IHello from './IHello';
export default interface IServerHello extends IHello {
type: 'ServerHello';
cipher: string;
compressionMethod: string;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/interfaces/IHello.ts | tls-server/interfaces/IHello.ts | export default interface IHello {
type: string;
version: string;
random: {
unixTime: string;
randomBytes: string;
};
sessionId: string;
extensions: {
type: string;
decimal: number;
values: string[];
}[];
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/lib/ServerResponse.ts | tls-server/lib/ServerResponse.ts | import { ChildProcess } from 'child_process';
import { IncomingHttpHeaders } from 'http';
export default class ServerResponse {
private readonly child: ChildProcess;
private readonly connectionId: string;
constructor(child, { connectionId }: { connectionId: string }) {
this.child = child;
this.connectio... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/lib/parseTlsRecordFromStderr.ts | tls-server/lib/parseTlsRecordFromStderr.ts | import parseHelloMessage from './parseHelloMessage';
import IHeader from '../interfaces/IHeader';
interface IRecord {
header: IHeader;
details?: string;
}
export default function parseTlsRecordFromStderr(str: string): IRecord {
const lines = str.split('\n');
const record = {
header: {},
} as IRecord;
... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/lib/parseHelloMessage.ts | tls-server/lib/parseHelloMessage.ts | import * as extensions from '../spec/extensions.json';
import IClientHello from '../interfaces/IClientHello';
import IServerHello from '../interfaces/IServerHello';
export default function parseHelloMessage(isClientHello: boolean, lines: string[]): IClientHello | IServerHello {
const message = isClientHello
? ({... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/tls-server/lib/IncomingMessage.ts | tls-server/lib/IncomingMessage.ts | import { IncomingHttpHeaders } from 'http';
import IClientHello from '../interfaces/IClientHello';
export default class IncomingMessage {
readonly clientHello?: IClientHello;
readonly connectionId: string;
readonly connection: {
remoteAddress?: string;
remotePort?: number;
};
readonly socket: {
... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/interfaces/IRunnerFactory.ts | runner/interfaces/IRunnerFactory.ts | import IAssignment from '@double-agent/collect-controller/interfaces/IAssignment';
// Each assignment requires a fresh runner. The runner is created
// by a factory object implementing this interface.
export interface IRunnerFactory {
// returns a unique identifier which uniquely identifies the kind/type of runners,... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/interfaces/IUserAgentConfig.ts | runner/interfaces/IUserAgentConfig.ts | export default interface IUserAgentConfig {
browserIds: string[];
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/lib/analyzeAssignmentResults.ts | runner/lib/analyzeAssignmentResults.ts | import { createReadStream, createWriteStream, promises as Fs } from 'fs';
import * as Path from 'path';
import Analyze from '@double-agent/analyze';
import { IResultFlag } from '@double-agent/analyze/lib/Plugin';
import { probesDataDir } from '@double-agent/config/paths';
import { UserAgentToTestPickType } from '@doubl... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/lib/AssignmentsClient.ts | runner/lib/AssignmentsClient.ts | import fetch from 'node-fetch';
import IAssignment from '@double-agent/collect-controller/interfaces/IAssignment';
import Config from '@double-agent/config';
import * as qs from 'querystring';
import { Stream } from 'stream';
import * as unzipper from 'unzipper';
import { existsAsync } from '@ulixee/commons/lib/fileUti... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/lib/saveAssignmentToProfileDir.ts | runner/lib/saveAssignmentToProfileDir.ts | import * as Path from 'path';
import AssignmentsClient, { IAssignment } from './AssignmentsClient';
export default async function saveAssignmentToProfileDir(
assignment: IAssignment,
baseDir: string,
): Promise<string> {
const userId = assignment.id;
const filesDir = Path.join(baseDir, userId);
await new As... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/lib/AssignmentRunner.ts | runner/lib/AssignmentRunner.ts | import Queue from 'p-queue';
import IAssignment from '@double-agent/collect-controller/interfaces/IAssignment';
import AssignmentsClient from './AssignmentsClient';
import { IRunner, IRunnerFactory } from '../interfaces/IRunnerFactory';
export default class AssignmentRunner {
public readonly queue: Queue;
public b... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/lib/extractFoundationalProbes.ts | runner/lib/extractFoundationalProbes.ts | import ProbesGenerator from '@double-agent/config/lib/ProbesGenerator';
export default async function extractFoundationalProbes(profilesDir: string): Promise<void> {
const probesGenerator = new ProbesGenerator(profilesDir);
await probesGenerator.clearBuckets();
await probesGenerator.run();
await probesGenerato... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/lib/importFoundationalProfiles.ts | runner/lib/importFoundationalProfiles.ts | import { promises as Fs } from 'fs';
import * as Path from 'path';
import Config from '@double-agent/config';
import RealUserAgents from '@unblocked-web/real-user-agents';
import IUserAgentConfig from '../interfaces/IUserAgentConfig';
export default async function importBrowserProfiles(
profilesDir: string,
userAg... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/runner/lib/collectUserAgentsToTest.ts | runner/lib/collectUserAgentsToTest.ts | import * as Fs from 'fs';
import * as Path from 'path';
import RealUserAgents from '@unblocked-web/real-user-agents';
import IUserAgentToTest, {
UserAgentToTestPickType,
} from '@double-agent/config/interfaces/IUserAgentToTest';
import Config from '@double-agent/config/index';
import UserAgent from '@unblocked-web/re... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/docs/paths.ts | docs/paths.ts | import * as Path from 'path';
import * as Paths from './paths.json';
export const outputDir = Path.resolve(__dirname, Paths.output);
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/docs/generator/buildReadme.ts | docs/generator/buildReadme.ts | import * as Fs from 'fs';
import * as Path from 'path';
import { outputDir } from '../paths';
export default function buildReadme(): void {
const readmeTemplatePath = Path.join(outputDir, '../readme-template.md');
let main = Fs.readFileSync(readmeTemplatePath, 'utf8');
const regexMatch = /({{inject=(.+\.md)}})/... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/docs/generator/buildPluginsList.ts | docs/generator/buildPluginsList.ts | import * as Fs from 'fs';
import * as Path from 'path';
import getAllCollectPlugins from '@double-agent/collect/lib/getAllPlugins';
import getAllAnalyzePlugins from '@double-agent/analyze/lib/getAllPlugins';
import { outputDir } from '../paths';
const header = `Name | Description
--- | :---`;
export default function b... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/docs/generator/index.ts | docs/generator/index.ts | import buildPluginsList from './buildPluginsList';
import buildReadme from './buildReadme';
(async function generate() {
await buildPluginsList('collect');
await buildPluginsList('analyze');
await buildReadme();
})().catch(console.error);
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/config/paths.ts | config/paths.ts | import * as Path from 'path';
import * as Paths from './paths.json';
export const probesDataDir = Path.resolve(__dirname, Paths['probe-data']);
export const rootDir = Path.resolve(__dirname, Paths.root);
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/config/load.ts | config/load.ts | import './index';
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/config/index.ts | config/index.ts | import * as Fs from 'fs';
import * as Path from 'path';
import { createOsIdFromUserAgentString } from '@unblocked-web/real-user-agents/lib/OsUtils';
import { createBrowserIdFromUserAgentString } from '@unblocked-web/real-user-agents/lib/BrowserUtils';
import RealUserAgents from '@unblocked-web/real-user-agents';
import... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/config/scripts/updatePathPatterns.ts | config/scripts/updatePathPatterns.ts | import '@ulixee/commons/lib/SourceMapSupport';
import * as Fs from 'fs';
import * as Path from 'path';
import Config from '../index';
export default function updatePathPatterns(): void {
const profilerPatternsDir = Path.join(Config.profilesDataDir, 'dom-bridges/path-patterns');
if (!Fs.existsSync(profilerPatternsD... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/config/interfaces/IUserAgentToTest.ts | config/interfaces/IUserAgentToTest.ts | export default interface IUserAgentToTest {
browserId: string;
operatingSystemId: string;
pickTypes: IUserAgentToTestPickType[];
usagePercent: IUserAgentToTestUsagePercent;
string: string;
}
export interface IUserAgentToTestUsagePercent {
[UserAgentToTestPickType.popular]: number;
[UserAgentToTestPickTyp... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/config/lib/ProfileUtils.ts | config/lib/ProfileUtils.ts | import * as Fs from 'fs';
import * as Path from 'path';
export function extractProfilePathsMap(
profileDir: string,
userAgentId: string,
profilePathsMap: IProfilePathsMap = {},
): IProfilePathsMap {
for (const fileName of Fs.readdirSync(profileDir)) {
if (!fileName.endsWith('.json') || fileName.startsWith(... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/config/lib/ProbesGenerator.ts | config/lib/ProbesGenerator.ts | import * as Fs from 'fs';
import * as Path from 'path';
import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import getAllPlugins from '@double-agent/analyze/lib/getAllPlugins';
import Plugin from '@double-agent/analyze/lib/Plugin';
import Layer from '@double-agent/analyze/lib/Layer';
import Config... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/index.ts | collect/index.ts | import '@ulixee/commons/lib/SourceMapSupport';
import '@double-agent/config/load';
import { IAssignmentType } from '@double-agent/collect-controller/interfaces/IAssignment';
import Config from '@double-agent/config';
import SessionTracker from './lib/SessionTracker';
import Session from './lib/Session';
import { CertsM... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/ISessionPage.ts | collect/interfaces/ISessionPage.ts | export default interface ISessionPage {
url: string;
waitForElementSelector?: string; // if user should wait for something to appear
clickElementSelector?: string;
clickDestinationUrl?: string; // if click loads a url, this is what it will be
isRedirect?: boolean;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IPlugin.ts | collect/interfaces/IPlugin.ts | export default interface IPlugin {
id: string;
dir: string;
summary: string;
outputFiles: number;
changePluginOrder?(plugins: IPlugin[]): void;
initialize(): void;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IServerContext.ts | collect/interfaces/IServerContext.ts | import SessionTracker from '../lib/SessionTracker';
import PluginDelegate from '../lib/PluginDelegate';
import Plugin from '../lib/Plugin';
export default interface IServerContext {
readonly sessionTracker: SessionTracker;
readonly pluginDelegate: PluginDelegate;
readonly plugin: Plugin;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IUserIdentifier.ts | collect/interfaces/IUserIdentifier.ts | import UserBucket from './UserBucket';
export default interface IUserIdentifier {
bucket: UserBucket;
category: string;
id: string;
raw?: any;
description?: string;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IRequestTlsContext.ts | collect/interfaces/IRequestTlsContext.ts | import * as http from 'http';
import IncomingMessage from '@double-agent/tls-server/lib/IncomingMessage';
import IRequestContext from './IRequestContext';
export default interface IRequestTlsContext extends IRequestContext {
req: IncomingMessage & http.IncomingMessage;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/ResourceType.ts | collect/interfaces/ResourceType.ts | enum ResourceType {
Document = 'Document',
WebsocketUpgrade = 'WebsocketUpgrade',
Ico = 'Ico',
Preflight = 'Preflight',
Script = 'Script',
Stylesheet = 'Stylesheet',
XHR = 'XHR',
Fetch = 'Fetch',
Image = 'Image',
Media = 'Media',
Font = 'Font',
Other = 'Other',
}
export default ResourceType;
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/ISession.ts | collect/interfaces/ISession.ts | import IRequestDetails from './IRequestDetails';
import IUserIdentifiers from './IUserIdentifier';
import IAsset from './IAsset';
export default interface ISession {
requests: IRequestDetails[];
identifiers: IUserIdentifiers[];
assetsNotLoaded: IAsset[];
expectedAssets: (IAsset & { fromUrl?: string })[];
plu... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/OriginType.ts | collect/interfaces/OriginType.ts | enum OriginType {
None = 'none',
SameOrigin = 'same-origin',
SameSite = 'same-site',
CrossSite = 'cross-site',
}
const values = Object.values(OriginType);
export function getOriginType(type: string): OriginType | null {
if (OriginType[type]) return OriginType[type];
if (values.includes(type as OriginType))... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IAsset.ts | collect/interfaces/IAsset.ts | import ResourceType from './ResourceType';
import HostDomain from './HostDomain';
import OriginType from './OriginType';
export default interface IAsset {
secureDomain: boolean;
resourceType: ResourceType;
domainType?: HostDomain;
originType?: OriginType;
pathname?: string;
referer?: string;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IDetectionDomains.ts | collect/interfaces/IDetectionDomains.ts | import { URL } from 'url';
export default interface IDetectionDomains {
main: URL;
external?: URL;
subdomain?: URL;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/UserBucket.ts | collect/interfaces/UserBucket.ts | enum UserBucket {
IP = 'IP Address',
TLS = 'TLS Fingerprint',
Browser = 'Cross-Session Browser Fingerprint',
BrowserSingleSession = 'Single-Session Browser Fingerprint',
Font = 'Fonts Fingerprint',
IpAndPortRange = 'IP Address & Port Range',
UserAgent = 'UserAgent',
UserCookie = 'UserCookie',
}
const v... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IBaseProfile.ts | collect/interfaces/IBaseProfile.ts | export default interface IBaseProfile<T = any> {
userAgentId: string;
data: T;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IHeaderDataPage.ts | collect/interfaces/IHeaderDataPage.ts | import { IServerProtocol } from '../servers/BaseServer';
import { DomainType } from '../lib/DomainUtils';
import OriginType from './OriginType';
import ResourceType from './ResourceType';
export default interface IHeaderDataPage {
pageName: string;
method: string;
isRedirect: boolean;
protocol: IServerProtocol... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IRequestDetails.ts | collect/interfaces/IRequestDetails.ts | import ResourceType from './ResourceType';
import OriginType from './OriginType';
import { DomainType } from '../lib/DomainUtils';
export default interface IRequestDetails {
url: string;
method: string;
time: Date;
remoteAddress: string;
userAgentString: string;
headers: string[];
origin: string;
secur... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/HostDomain.ts | collect/interfaces/HostDomain.ts | enum HostDomain {
Sub = 'Sub',
External = 'External',
Main = 'Main',
}
export default HostDomain;
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/interfaces/IRequestContext.ts | collect/interfaces/IRequestContext.ts | import { URL } from 'url';
import { IncomingMessage, ServerResponse } from 'http';
import * as http2 from 'http2';
import IRequestDetails from './IRequestDetails';
import Session from '../lib/Session';
import { DomainType } from '../lib/DomainUtils';
import BaseServer from '../servers/BaseServer';
import { IPluginPage ... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-ua-hints/uaPageScript.ts | collect/plugins/http-ua-hints/uaPageScript.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
export default function uaPageScript(ctx: IRequestContext) {
return `
<script type="text/javascript">
(function uaProbe() {
const keys = [
'architecture',
'bitness',
'uaFullVersion',
'wow64',
'model',
'platformV... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-ua-hints/index.ts | collect/plugins/http-ua-hints/index.ts | import Plugin from '@double-agent/collect/lib/Plugin';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Document from '@double-agent/collect/lib/Document';
import * as fs from 'fs';
import { DomainType } from '@double-agent/collect/lib/DomainUtils';
import Config from '@double-agen... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-ua-hints/interfaces/IProfile.ts | collect/plugins/http-ua-hints/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import IHeaderDataPage from '@double-agent/collect/interfaces/IHeaderDataPage';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = {
testedHeaders: string[];
headers: IHeaderDataPage[];
jsHigh... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-fingerprints/fingerprintScript.ts | collect/plugins/browser-fingerprints/fingerprintScript.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
export default function fingerprintScript(ctx: IRequestContext) {
return `
<script type="text/javascript">
(() => {
const browserIgnoredAttributes = ${JSON.stringify(browserIgnoredAttributes)};
const sessionIgnoredAttributes = ${JSON... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-fingerprints/index.ts | collect/plugins/browser-fingerprints/index.ts | import * as fs from 'fs';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Plugin from '@double-agent/collect/lib/Plugin';
import Document from '@double-agent/collect/lib/Document';
import { IProfileData, IProfileDataFingerprint } from './interfaces/IProfile';
import fingerprintScr... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-fingerprints/interfaces/IProfile.ts | collect/plugins/browser-fingerprints/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = IProfileDataFingerprint[];
export interface IProfileDataFingerprint {
sessionHash: string;
browserHash: string;
components: { key: string; v... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/tcp/index.ts | collect/plugins/tcp/index.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Plugin from '@double-agent/collect/lib/Plugin';
import Document from '@double-agent/collect/lib/Document';
import { IProfileData } from './interfaces/IProfile';
import trackRemoteTcpVars from './lib/trackRemoteTcpVars';
export defau... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/tcp/interfaces/IProfile.ts | collect/plugins/tcp/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export interface IProfileData {
windowSize: number;
ttl: number;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/tcp/lib/trackRemoteTcpVars.ts | collect/plugins/tcp/lib/trackRemoteTcpVars.ts | import { EventEmitter } from 'events';
import * as os from 'os';
import Config from '@double-agent/config';
let device = Config.collect.tcpNetworkDevice;
if (os.platform() === 'linux') device = 'eth0';
const isDebug = !!Config.collect.tcpDebug;
export default function trackRemoteTcpVars(serverPort: string | number) ... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-speech/script.ts | collect/plugins/browser-speech/script.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
export default function script(ctx: IRequestContext) {
return `
<script type="text/javascript">
(function uaProbe() {
async function getVoices() {
let voices = [];
await new Promise(resolve => window.addEventListener('load', r... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-speech/index.ts | collect/plugins/browser-speech/index.ts | import Plugin from '@double-agent/collect/lib/Plugin';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Document from '@double-agent/collect/lib/Document';
import { IProfileData, IVoice } from './interfaces/IProfile';
import script from './script';
export default class BrowserSpee... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-speech/interfaces/IProfile.ts | collect/plugins/browser-speech/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = {
http?: { voices: IVoice[] };
https?: { voices: IVoice[] };
};
export interface IVoice {
default: boolean;
lang: string;
localService: ... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-assets/index.ts | collect/plugins/http-assets/index.ts | import * as fs from 'fs';
import Plugin, { IPluginPage } from '@double-agent/collect/lib/Plugin';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Document from '@double-agent/collect/lib/Document';
import { DomainType } from '@double-agent/collect/lib/DomainUtils';
import { IProfi... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-assets/interfaces/IProfile.ts | collect/plugins/http-assets/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import IHeaderDataPage from '@double-agent/collect/interfaces/IHeaderDataPage';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = IHeaderDataPage[];
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/tls-clienthello/index.ts | collect/plugins/tls-clienthello/index.ts | import Plugin from '@double-agent/collect/lib/Plugin';
import IRequestTlsContext from '@double-agent/collect/interfaces/IRequestTlsContext';
import { IProfileData } from './interfaces/IProfile';
export default class TlsClienthelloPlugin extends Plugin {
public initialize() {
this.registerRoute('tls', '/', this.s... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/tls-clienthello/interfaces/IProfile.ts | collect/plugins/tls-clienthello/interfaces/IProfile.ts | import IClientHello from '@double-agent/tls-server/interfaces/IClientHello';
import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export interface IProfileData {
clientHello: IClientHello;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-codecs/codecPageScript.ts | collect/plugins/browser-codecs/codecPageScript.ts | import * as csv from 'csv-parse/lib/sync';
import { readFileSync } from 'fs';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
export default function codecPageScript(ctx: IRequestContext) {
return `
<script type="text/javascript">
const videoMimes = ${JSON.stringify(videoMimes)};
... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-codecs/index.ts | collect/plugins/browser-codecs/index.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Plugin from '@double-agent/collect/lib/Plugin';
import Document from '@double-agent/collect/lib/Document';
import IWebRTCCodec from './interfaces/IWebRTCCodec';
import { IProfileData } from './interfaces/IProfile';
import codecPageSc... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-codecs/interfaces/ICodecSupport.ts | collect/plugins/browser-codecs/interfaces/ICodecSupport.ts | export default interface ICodecSupport {
recordingFormats: string[];
probablyPlays: string[];
maybePlays: string[];
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-codecs/interfaces/IProfile.ts | collect/plugins/browser-codecs/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import IWebRTCCodec from './IWebRTCCodec';
import ICodecSupport from './ICodecSupport';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export interface IProfileData {
audioSupport: ICodecSupport;
videoSupport: ICodecS... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-codecs/interfaces/IWebRTCCodec.ts | collect/plugins/browser-codecs/interfaces/IWebRTCCodec.ts | export default interface IWebRTCCodec {
clockRate: number;
mimeType: string;
channels?: number;
sdpFmtpLine?: string;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http2-session/index.ts | collect/plugins/http2-session/index.ts | import Plugin from '@double-agent/collect/lib/Plugin';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Http2Server from '@double-agent/collect/servers/Http2Server';
import Document from '@double-agent/collect/lib/Document';
import Config from '@double-agent/config/index';
import {... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http2-session/interfaces/IProfile.ts | collect/plugins/http2-session/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import { IHttp2SessionActivity } from '@double-agent/collect/servers/Http2Server';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = {
sessions: {
id: string;
activity: IHttp2SessionActiv... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-basic-headers/index.ts | collect/plugins/http-basic-headers/index.ts | import Plugin, { IPluginPage } from '@double-agent/collect/lib/Plugin';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Document from '@double-agent/collect/lib/Document';
import ResourceType from '@double-agent/collect/interfaces/ResourceType';
import Config from '@double-agent/c... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-basic-headers/interfaces/IProfile.ts | collect/plugins/http-basic-headers/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import IHeaderDataPage from '@double-agent/collect/interfaces/IHeaderDataPage';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = IHeaderDataPage[];
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-websockets/websocketsScript.ts | collect/plugins/http-websockets/websocketsScript.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import { DomainType } from '@double-agent/collect/lib/DomainUtils';
export default function websocketsScript(ctx: IRequestContext) {
const isSecure = ctx.url.protocol === 'https:';
return `
<script type="text/javascript">
function ws... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-websockets/index.ts | collect/plugins/http-websockets/index.ts | import Plugin, { IPluginPage } from '@double-agent/collect/lib/Plugin';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Document from '@double-agent/collect/lib/Document';
import ResourceType from '@double-agent/collect/interfaces/ResourceType';
import { IProfileData } from './int... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-websockets/interfaces/IProfile.ts | collect/plugins/http-websockets/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import IHeaderDataPage from '@double-agent/collect/interfaces/IHeaderDataPage';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = IHeaderDataPage[];
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-fonts/fontScript.ts | collect/plugins/browser-fonts/fontScript.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import fontList from './lib/testFonts';
export default function fontScript(ctx: IRequestContext) {
return `
<script type="text/javascript">
(function browserFontProbe() {
// extracted from https://github.com/Valve/fingerprintjs2/
// ... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-fonts/index.ts | collect/plugins/browser-fonts/index.ts | import Plugin from '@double-agent/collect/lib/Plugin';
import Document from '@double-agent/collect/lib/Document';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import fontScript from './fontScript';
import { IProfileData } from './interfaces/IProfile';
export default class BrowserFont... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-fonts/interfaces/IProfile.ts | collect/plugins/browser-fonts/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export interface IProfileData {
fonts: string[];
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-fonts/lib/testFonts.ts | collect/plugins/browser-fonts/lib/testFonts.ts | const testFonts = [
'Abadi MT Condensed Light',
'Academy Engraved LET',
'ADOBE CASLON PRO',
'Adobe Garamond',
'ADOBE GARAMOND PRO',
'Agency FB',
'Aharoni',
'Albertus Extra Bold',
'Albertus Medium',
'Algerian',
'Amazone BT',
'American Typewriter',
'American Typewriter Condensed',
'AmerType Md... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/index.ts | collect/plugins/browser-dom-environment/index.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import { createPromise, IResolvablePromise } from '@double-agent/collect/lib/PromiseUtils';
import Plugin, { IPluginPage } from '@double-agent/collect/lib/Plugin';
import Document from '@double-agent/collect/lib/Document';
import { DomainTy... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/interfaces/PageNames.ts | collect/plugins/browser-dom-environment/interfaces/PageNames.ts | enum PageNames {
BrowserDom = 'BrowserDom',
ServiceWorkerDom = 'ServiceWorkerDom',
DedicatedWorkerDom = 'DedicatedWorkerDom',
SharedWorkerDom = 'SharedWorkerDom',
IFrameDom = 'IFrameDom',
IFrameSandboxDom = 'IFrameSandboxDom',
IFrameCrossDomainDom = 'IFrameCrossDomainDom',
}
export default PageNames;
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/interfaces/INewProfile.ts | collect/plugins/browser-dom-environment/interfaces/INewProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type INewProfile = IBaseProfile<INewDomProfileData>;
export default INewProfile;
export interface INewDomProfileData {
[path: string]: {
_$protos?: string[];
_$function?: string;
_$flags?: IDomFlag[];
_$accessException?: stri... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/interfaces/IProfile.ts | collect/plugins/browser-dom-environment/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export interface IProfileData {
window: any;
detached: any;
}
export interface IProfileDataByProtocol {
http: IProfileData;
https: IProfileData;
}
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/lib/serviceWorkerScripts.ts | collect/plugins/browser-dom-environment/lib/serviceWorkerScripts.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import PageNames from '../interfaces/PageNames';
import loadDomExtractorScript, { IDomExtractorPageMeta } from './loadDomExtractorScript';
export function loadServiceWorker(ctx: IRequestContext) {
return `
<script type=text/javascript>
(... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/lib/dedicatedWorkerScripts.ts | collect/plugins/browser-dom-environment/lib/dedicatedWorkerScripts.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import PageNames from '../interfaces/PageNames';
import loadDomExtractorScript, { IDomExtractorPageMeta } from './loadDomExtractorScript';
export function loadDedicatedWorker(ctx: IRequestContext) {
return `
<script type=text/javascript>... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/lib/sharedWorkerScripts.ts | collect/plugins/browser-dom-environment/lib/sharedWorkerScripts.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import PageNames from '../interfaces/PageNames';
import loadDomExtractorScript, { IDomExtractorPageMeta } from './loadDomExtractorScript';
export function loadSharedWorker(ctx: IRequestContext) {
return `
<script type=text/javascript>
(f... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/lib/loadDomExtractorScript.ts | collect/plugins/browser-dom-environment/lib/loadDomExtractorScript.ts | import PageNames from '../interfaces/PageNames';
import DomExtractor = require('../injected-scripts/DomExtractor');
export default function loadDomExtractorScript(): string {
return DomExtractor.toString();
}
export interface IDomExtractorPageMeta {
saveToUrl: string;
pageUrl: string;
pageHost: string;
page... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/browser-dom-environment/lib/iframeScripts.ts | collect/plugins/browser-dom-environment/lib/iframeScripts.ts | import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import PageNames from '../interfaces/PageNames';
import loadDomExtractorScript, { IDomExtractorPageMeta } from './loadDomExtractorScript';
export function waitForIframe() {
return `
<script type=text/javascript>
const promise = new ... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-basic-cookies/index.ts | collect/plugins/http-basic-cookies/index.ts | import * as Cookie from 'cookie';
import RealUserAgents from '@unblocked-web/real-user-agents';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Plugin, { IPluginPage } from '@double-agent/collect/lib/Plugin';
import Document from '@double-agent/collect/lib/Document';
import { clea... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-basic-cookies/interfaces/IProfile.ts | collect/plugins/http-basic-cookies/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = (ICreatedCookieData | ICollectedCookieData)[];
export interface ICreatedCookieData {
group: string;
setter: ICookieSetter;
httpProtocol: str... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-xhr/xhrScript.ts | collect/plugins/http-xhr/xhrScript.ts | import { DomainType } from '@double-agent/collect/lib/DomainUtils';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
export default function xhrScript(ctx: IRequestContext) {
return `
<script type="text/javascript">
const requests = ${JSON.stringify(builtRequests(ctx))};
async func... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-xhr/index.ts | collect/plugins/http-xhr/index.ts | import * as Fs from 'fs';
import IRequestContext from '@double-agent/collect/interfaces/IRequestContext';
import Document from '@double-agent/collect/lib/Document';
import Plugin, { IPluginPage } from '@double-agent/collect/lib/Plugin';
import { IProfileData } from './interfaces/IProfile';
import xhrScript from './xhrS... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/plugins/http-xhr/interfaces/IProfile.ts | collect/plugins/http-xhr/interfaces/IProfile.ts | import IBaseProfile from '@double-agent/collect/interfaces/IBaseProfile';
import IHeaderDataPage from '@double-agent/collect/interfaces/IHeaderDataPage';
type IProfile = IBaseProfile<IProfileData>;
export default IProfile;
export type IProfileData = IHeaderDataPage[];
| typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
unblocked-web/double-agent | https://github.com/unblocked-web/double-agent/blob/1bf2568d0675917128236524270ea9568572b2a6/collect/servers/Http2Server.ts | collect/servers/Http2Server.ts | import * as http2 from 'http2';
import Certs from './Certs';
import createHttpRequestHandler from '../lib/createHttpRequestHandler';
import createWebsocketHandler from '../lib/createWebsocketHandler';
import IServerContext from '../interfaces/IServerContext';
import BaseServer from './BaseServer';
import { IRoutesByPat... | typescript | MIT | 1bf2568d0675917128236524270ea9568572b2a6 | 2026-01-05T05:00:16.677082Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.