12 lines
365 B
JavaScript
12 lines
365 B
JavaScript
const fs = require('fs');
|
|
const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8');
|
|
|
|
let pos = 0;
|
|
while (true) {
|
|
const idx = content.indexOf('CHART_APP_VERSION', pos);
|
|
if (idx === -1) break;
|
|
console.log('=== MATCH at', idx, '===');
|
|
console.log(content.substring(Math.max(0, idx - 200), idx + 400));
|
|
pos = idx + 1;
|
|
}
|