We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use this code in agent-side to grab strings from data buffers:
function isPrintable (ch) { return (ch >= 32 && ch <= 126); } function parseOptions (options) { const opts = { minLength: 15, disabled: false }; if (typeof options === 'object') { if (options.enabled === false) { opts.disabled = true; } for (let key of Object.keys(options)) { opts[key] = options[key]; } } return opts; } function parseStrings (data, options) { const opt = parseOptions(options); const strs = []; let str = ''; data.forEach(ch => { if (isPrintable(ch)) { str += String.fromCharCode(ch); } else { if (str.length > opt.minLength) { strs.push(str); str = ''; } } }); return strs; }
The text was updated successfully, but these errors were encountered:
cc @as0ler
Sorry, something went wrong.
implemented in cf10a0a
No branches or pull requests
Use this code in agent-side to grab strings from data buffers:
The text was updated successfully, but these errors were encountered: