overflow-scanner
Version:
Vulnerability scanning using graphs!
17 lines (16 loc) • 592 B
text/typescript
import { LGraphNode, LiteGraph } from "litegraph.js";
import { logRed } from "../log";
export class LogVulnerable extends LGraphNode {
constructor() {
super();
this.addInput("Targets", LiteGraph.ACTION);
this.addProperty("note", "", "text");
this.addWidget("text", "Description", "", "note");
}
title = "Log as vulnerable";
serialize_widgets = true;
onAction(action, data) {
for(const target of data)
logRed(`${target} logged as vulnerable${this.properties.note ? ` with note "${this.properties.note}"` : ""}`);
}
}