Skip to content

Added search function to Proc.html - #21

Open
watson0x90 wants to merge 194 commits into
FuzzySecurity:masterfrom
watson0x90:master
Open

watson0x90 wants to merge 194 commits into
FuzzySecurity:masterfrom
watson0x90:master

Conversation

@watson0x90

@watson0x90 watson0x90 commented Apr 13, 2025 •

Copy link
Copy Markdown

Added search box to quickly find processes by name or by PID.

Search by name screenshot:
image

Search by PID screenshot:

image

Added search bar for process list.
@watson0x90 watson0x90 changed the title Add search function to Proc.html Added search function to Proc.html Apr 13, 2025
watson0x90 and others added 27 commits April 13, 2025 22:10
Updated to include output save, output clear, and search feature enhancements.
Updated to include output save, output clear, and search feature enhancements.
Updated to include output save, output clear, and search feature enhancements.
Added a hotkey for clear output (ALT+C)
…o 0.57, jQuery 3.7)

Frida 17 ships N-API prebuilds, so no per-Electron ABI build env is needed
and Electron can track latest stable. jQuery held at 3.7.1 (latest 3.x) to
avoid the 4.0 breaking changes in this modernization pass.
Frida 17 is ESM-only. Under Electron 45 / Node 24, the app's original
require('frida') in the renderer works via Node's require(esm) support for
synchronous ESM. Dynamic import() does NOT work in a renderer (Chromium's
loader can't resolve Frida's bare specifiers), so require is correct and
renderer.js is unchanged. This smoke test loads Frida exactly as the app
does and asserts a core call succeeds.
…ion lookup

- src/renderer.js: child windows used path.join('file://', __dirname, x) +
  loadURL(), which modern Electron rejects (ERR_INVALID_URL). Switch to a
  plain path + loadFile() (as core.js already does). Fixes non-working
  sidebar buttons (Process List, Device, Trace, Docs, About, Instrument).
- pages/index.html: Frida 17's entry is build/src/frida.js and its exports
  block require('frida/package.json'); replace the fixed-depth dirname walk
  with a layout-independent walk-up to package.json, wrapped in an IIFE that
  publishes window.FRIDA_VER/FERMION_VER (avoids colliding with renderer.js's
  global fs and the cascading FERMION_VER banner error).
…ut persistence, dup handlers)

Found via a focused review of the enhanced-ui diff (ef2f1c5..49fc4e1):
- highlightMatches: HTML-escape Frida output before innerHTML (untrusted
  target output in a nodeIntegration renderer; also fixes highlight misalign).
- appendFridaLog: keep following the output tail during streaming instead of
  the search yanking the viewport to the first match on every line.
- loadSettings/toggleLayout: restore a saved horizontal layout correctly
  (previously reverted to vertical and corrupted the saved preference).
- addEventListeners: drop search/scroll handlers already bound by
  initSearchFunctionality (Enter was advancing two matches).
- addSearchKeyboardShortcuts: Ctrl+F guard no longer throws when Monaco's
  node isn't in the DOM yet.

Add playwright-core (dev) and scripts/ui-test-layout.js, a Playwright-Electron
regression test proving layout persistence across a restart.
…remove auto-update cron

- .github/workflows/release.yml: on v* tag / manual dispatch, build Win/Linux/
  macOS-arm64 with @electron/packager, ad-hoc sign macOS, smoke-launch each
  PACKAGED artifact via Playwright (scripts/ui-smoke.js; Linux under xvfb) so a
  release only publishes packages that actually launch and render, then zip,
  upload, and publish a GitHub release on tags.
- scripts/ui-smoke.js: Playwright-Electron smoke (dev or FERMION_EXE packaged).
- Remove the dead auto-update pipeline (electron-packager, disabled artifact
  actions, cron auto-bump): auto-update.yml and its 3 helper scripts.

Validated locally on Windows: packaged fermion.exe smoke -> UI_SMOKE_OK.
- README: drop the obsolete npm_config_target ABI install env (Frida 17 ships
  N-API prebuilds), switch packaging to @electron/packager, document the
  tag-triggered release workflow and macOS arm64 ad-hoc signing, refresh
  badges, and add a maintained-fork note crediting the original author.
- CHANGELOG: add the v1.9.4 entry.
- Bump version to 1.9.4.
The matrix build + Playwright smoke-launch was validated green on Windows,
Linux, and macOS-arm64 via this branch; revert to tag/dispatch-only triggers.
…eline

Electron 21->45, Frida 16->17 (N-API, loaded via Node 24 require(esm)),
Monaco 0.57, jQuery 3.7.1. Fixes child-window loaders and version display for
modern Electron, sweeps enhanced-ui regressions (search-highlight escaping,
streaming scroll, layout persistence, duplicate handlers, Ctrl+F), and replaces
the dead auto-update cron with a tag-triggered release workflow that builds and
Playwright-smoke-launches Win/Linux/macOS-arm64 packages. Validated: CI green on
all three OSes; app verified on Windows.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…t search handler

Addresses the deferred review findings:
- M1: add .github/workflows/test.yml — runs the smoke/regression suite
  (renderer syntax, Frida load, UI renders, layout persistence) on push/PR to
  master and on demand, under xvfb. The project previously had no per-change
  CI; the layout-persistence regression test now runs automatically.
- M2: ui-smoke.js attaches the pageerror listener via app.on('window') before
  awaiting firstWindow(), so early renderer exceptions are captured.
- M3: remove the redundant keypress Enter handler in initSearchFunctionality;
  the keydown handler in addSearchKeyboardShortcuts already covers Enter and
  Shift+Enter (and preventDefaults the keypress).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- test.yml: run the smoke/regression suite on push/PR to master (xvfb)
- ui-smoke.js: capture early renderer errors via app.on('window')
- renderer.js: drop the redundant keypress Enter handler

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
smoke-frida.js is an Electron main entry; running it with plain node makes
require('electron') return the binary path instead of the app API, so app is
undefined. Use ./node_modules/.bin/electron under xvfb.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
GitHub runners don't have chrome-sandbox configured (not root-owned), so a
directly-launched Electron aborts. Set ELECTRON_DISABLE_SANDBOX for the job and
pass --no-sandbox to the direct smoke-frida launch (Playwright already passes it
for the other two).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
macOS runners can be slow to first-render the packaged app (Gatekeeper assesses
the ad-hoc-signed bundle on first launch), tripping the 30s waitForSelector.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
formatMessage maps Frida send/log(info|warning|error)/error/unknown to typed
{kind,text} lines; OutputBuffer caps and filters. Fixes object send() payloads
rendering as [object Object].

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mount an xterm.js terminal (DOM renderer) in the #FridaOut slot with a full
controller (write/filter/search/clear/save/copy/follow/font, backed by the
OutputBuffer); route appendFridaLog status output to it; add the xterm
stylesheet. ui-smoke now asserts the terminal mounts and the startup banner
lands in it; new ui-test-terminal.js guards mount + write.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Collapse the four script.message handlers into handleScriptMessage(message,
onSend?) using formatMessage; console.log/warn/error now route to the terminal
with correct levels instead of being mislabeled as runtime errors. The trace
site keeps forwarding its DOT payload to the Graphviz window via onSend. Remove
the mutex/RunningLog/ChangeLogExclusive batching (xterm buffers natively).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
watson0x90 and others added 30 commits November 12, 2026 19:40
A Heap view in the Inspector, also reached from the address menu. While
tracking runs the agent hooks the allocator (RtlAllocateHeap,
RtlReAllocateHeap and RtlFreeHeap on Windows; malloc, calloc, realloc
and free elsewhere) and records each block with the call stack that
allocated it and the one that freed it. An address can then be looked
up: live block, freed block (use after free), or memory handed out
again. The places holding the most live memory are listed. A size range
keeps a busy program fast. Bounded to 10 minutes, 200,000 live blocks
and the newest 20,000 freed ones.

Adds inspectHeapStart, inspectHeapStatus, inspectHeapFind and
inspectHeapStop to the allow-list, validated in main.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ns tracked

Watch: on Windows (x64 and x86) up to two aligned pieces of 1, 2, 4 or
8 bytes are watched with the processor's hardware watchpoints. Every
access is counted, reads are told from writes by the debug status
register, the memory itself is untouched and system calls on it keep
working. Threads that start later arm themselves as they start. Larger
or unaligned ranges, other systems, and an explicit choice use the page
trap as before; the view says which mode is in use and why. A thread's
stack is refused in every mode: handling a trap uses that stack, and a
watchpoint there took the target down.

inspectWatchStart takes an optional mode (auto, exact, sampled),
validated in main. No new allow-list entry.

Heap: aligned_alloc, memalign and posix_memalign are hooked where the C
library has them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…bout

heapFind walks the process heaps (GetProcessHeaps, HeapWalk under
HeapLock) when an address is not in a recorded live block. A live block
from before tracking is found with its size; memory that is free right
now is called that. It works with no tracking at all, so Find block is
usable straight after attaching. Bounded to three seconds; a heap that
cannot be locked or faults under the walk is skipped. Elsewhere than
Windows nothing changes.

No change to the allow-list or to main: the result of inspectHeapFind
gains a `system` field.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Settings now holds preferences as well as the colour theme: editor font
size, minimap and wrapping; Output font size; what the Inspector views
start with (coverage and follow scope, watch mode, auto refresh
interval); and whether child processes are caught at start. They apply
as they are changed and are remembered.

Preferences live in the window's local storage, like the theme. Every
stored value is checked when read: numbers are clamped and anything
that is not a valid choice becomes the default. Nothing in main, the
allow-list, the preload or the agent changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A bookmark's label is now also a name for its address, used by every
view: backtraces, Disassembly (a label above the instruction, the
heading, call targets), the callers of a hooked call, follow results,
and the call stacks of a memory watch or a heap block. An address
within 4 KB after a named one is shown as name+offset. "Name this
address" in the address menu asks for the name and saves or renames
the bookmark.

Names are matched by module and offset from what the agent already
reports, so nothing in main, the allow-list, the preload or the agent
changes. A label that only repeats the address or place is not a name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Modules gains Strings beside Exports and Imports: the ASCII and UTF-16
strings of the selected module, searched in the target as you type.
A new References view, reached from "Find references" in the address
menu, lists what in a module refers to an address: instructions (calls,
jumps, code that takes the address; x86 and x64) and pointers. A
candidate instruction is listed only if it disassembles to one that
really reaches the address; of two valid decodes the longer is taken.
Each result opens in Disassembly or Memory.

Both only read memory, a megabyte at a time, and are bounded: 8 and 10
seconds, 2,000 strings, 200 references of each kind.

Adds inspectStrings and inspectRefs to the allow-list, validated in
main (module name, address, search text up to 100 characters, minimum
length 4 to 64).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…Output choices

Settings opens as a centred dialog (the gear, or Ctrl-,) with sections on
the left: Appearance, Editor, Output, Inspector, Session.

- Font size has minus and plus buttons that repeat while held, and
  spinbutton keys; typing is clamped on Enter or on leaving the field.
- The editor, Output and data fonts can be chosen: the built-in font, the
  common fixed-width fonts found installed (by measuring), the system
  font, or any family by name. A missing or proportional family is said so.
- New: line spacing, line numbers, tab width, whitespace and cursor for
  the editor; line spacing and cursor for Output.
- The data font is one CSS variable (--mono) instead of a repeated stack.
- Themes are cards grouped dark and light. A changed setting is marked and
  can be put back alone, by section, or all at once, with undo.
- The detached Output window follows the main window's preferences.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ections

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Settings gains a Limits section: how long a REPL entry may run, how long a
recording (coverage, memory watch, heap tracking) lasts, and how much each
holds. The main process enforces them: setLimits brings every value into a
fixed range (src/limits.js), and the agent keeps its own bounds as well.

The Inspector has a text size (the panel is scaled as a whole), and the
arrow keys move between the theme cards, applying each.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…arrow keys

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Heap tracking can follow a pool or arena allocator: the operator names the
function that allocates (module!function or module+0xoffset) and which
argument is the size, and optionally the one that frees and which argument
is the block. Up to 8, validated in main, remembered in the window. They
are hooked before the system's, so what such an allocator takes from the
system inside its own call is not counted twice.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…not at all

Full is the accurate walk (as before). Fast uses the fuzzy backtracer, which
cost nothing measurable; its first frames are right and later ones can be
wrong, and the Heap view says so. None records blocks only. The choice is a
third argument of inspectHeapStart, checked in main as one of three words.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ing under the click

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ess is handed out again

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant