pentesting 0.8.35 → 0.8.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +20 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6645,17 +6645,15 @@ var THEME = {
6645
6645
  success: ["#888888", "#aaaaaa"],
6646
6646
  gold: ["#999999", "#cccccc"]
6647
6647
  },
6648
- // Spinner color (warm pastel yellow)
6649
- spinner: "#F5D76E"
6650
- // Pastel warm yellow
6648
+ // Spinner color (sky blue - matches identity)
6649
+ spinner: "#87CEEB",
6650
+ // Identity color (sky blue)
6651
+ identity: "#87CEEB"
6651
6652
  };
6652
6653
  var ASCII_BANNER = `
6653
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557
6654
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D
6655
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2557
6656
- \u2588\u2588\u2554\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u255D \u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551
6657
- \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
6658
- \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D
6654
+ pentesting
6655
+ \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
6656
+ AI-Powered Security Testing
6659
6657
  `;
6660
6658
  var THOUGHT_LABELS = {
6661
6659
  [THOUGHT_TYPE.THINKING]: "[think]",
@@ -7363,8 +7361,15 @@ var App = ({ autoApprove = false, target }) => {
7363
7361
  if (next) {
7364
7362
  setQueuedCount(inputQueue.length);
7365
7363
  addMessage(MESSAGE_TYPE.SYSTEM, ` \u{1F4E4} Processing queued: ${next.content.slice(0, 50)}...`);
7366
- setTimeout(() => {
7367
- handleSubmit(next.content);
7364
+ addMessage(MESSAGE_TYPE.USER, next.content);
7365
+ setIsProcessing(true);
7366
+ setTimeout(async () => {
7367
+ try {
7368
+ await agent.chat(next.content);
7369
+ } catch (err) {
7370
+ addMessage(MESSAGE_TYPE.ERROR, err instanceof Error ? err.message : String(err));
7371
+ setIsProcessing(false);
7372
+ }
7368
7373
  }, 100);
7369
7374
  }
7370
7375
  }
@@ -8134,7 +8139,7 @@ program.command("interactive", { isDefault: true }).alias("i").description("Star
8134
8139
  const opts = program.opts();
8135
8140
  const skipPermissions = opts.dangerouslySkipPermissions || false;
8136
8141
  console.clear();
8137
- console.log(chalk.hex(THEME.text.muted)(ASCII_BANNER));
8142
+ console.log(chalk.hex(THEME.identity)(ASCII_BANNER));
8138
8143
  if (skipPermissions) {
8139
8144
  console.log(chalk.hex(THEME.status.error)("[!] WARNING: Running with --dangerously-skip-permissions"));
8140
8145
  console.log(chalk.hex(THEME.status.error)("[!] All tool executions will be auto-approved!\n"));
@@ -8155,7 +8160,7 @@ program.command("interactive", { isDefault: true }).alias("i").description("Star
8155
8160
  program.command("run <objective>").alias("r").description("Run a single objective and exit").option("-o, --output <file>", "Output file for results").option("--max-steps <n>", "Maximum number of steps", "50").action(async (objective, options) => {
8156
8161
  const opts = program.opts();
8157
8162
  const skipPermissions = opts.dangerouslySkipPermissions || false;
8158
- console.log(chalk.hex(THEME.text.muted)(ASCII_BANNER));
8163
+ console.log(chalk.hex(THEME.identity)(ASCII_BANNER));
8159
8164
  if (skipPermissions) {
8160
8165
  console.log(chalk.hex(THEME.status.error)("[!] WARNING: Running with --dangerously-skip-permissions\n"));
8161
8166
  }
@@ -8198,7 +8203,7 @@ program.command("run <objective>").alias("r").description("Run a single objectiv
8198
8203
  program.command("scan <target>").description("Quick scan a target").option("-s, --scan-type <type>", "Scan type (quick|full|stealth|service|vuln)", "quick").option("-p, --ports <ports>", "Specific ports to scan").action(async (target, options) => {
8199
8204
  const opts = program.opts();
8200
8205
  const skipPermissions = opts.dangerouslySkipPermissions || false;
8201
- console.log(chalk.hex(THEME.text.muted)(ASCII_BANNER));
8206
+ console.log(chalk.hex(THEME.identity)(ASCII_BANNER));
8202
8207
  console.log(chalk.hex(THEME.text.accent)(`
8203
8208
  [scan] Target: ${target} (${options.scanType})
8204
8209
  `));
@@ -8211,7 +8216,7 @@ program.command("scan <target>").description("Quick scan a target").option("-s,
8211
8216
  console.log(chalk.hex(THEME.status.success)("[+] Scan complete!"));
8212
8217
  });
8213
8218
  program.command("help-extended").description("Show extended help with examples").action(() => {
8214
- console.log(chalk.hex(THEME.text.muted)(ASCII_BANNER));
8219
+ console.log(chalk.hex(THEME.identity)(ASCII_BANNER));
8215
8220
  console.log(`
8216
8221
  ${chalk.hex(THEME.text.accent)("Pentest - Autonomous Penetration Testing AI")}
8217
8222
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.8.35",
3
+ "version": "0.8.37",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",