mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-07 05:45:11 +02:00
improve n + 1 cracking to skip dict/prior length
This commit is contained in:
+13
-13
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>RemoteTerm for MeshCore</title>
|
||||
<script type="module" crossorigin src="/assets/index-FM2HgcXA.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DycUwj3W.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-C3_XTTUI.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -216,7 +216,8 @@ export function CrackerPanel({ packets, channels, onChannelCreate, onRunningChan
|
||||
isProcessingRef.current = true;
|
||||
|
||||
const currentMaxLength = maxLengthRef.current;
|
||||
const targetLength = nextItem.lastAttemptLength > 0
|
||||
const isRetry = nextItem.lastAttemptLength > 0;
|
||||
const targetLength = isRetry
|
||||
? nextItem.lastAttemptLength + 1
|
||||
: currentMaxLength;
|
||||
|
||||
@@ -228,6 +229,8 @@ export function CrackerPanel({ packets, channels, onChannelCreate, onRunningChan
|
||||
useTimestampFilter: true,
|
||||
useUtf8Filter: true,
|
||||
...(turboModeRef.current && { gpuDispatchMs: 10000 }),
|
||||
// For retries, skip dictionary and shorter lengths - we already checked those
|
||||
...(isRetry && { useDictionary: false, startingLength: targetLength }),
|
||||
},
|
||||
(prog) => {
|
||||
setProgress(prog);
|
||||
|
||||
Reference in New Issue
Block a user