12 lines
359 B
JavaScript
12 lines
359 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('.createApp(', pos);
|
|
if (idx === -1) break;
|
|
console.log('=== MATCH at', idx, '===');
|
|
console.log(content.substring(Math.max(0, idx - 100), idx + 400));
|
|
pos = idx + 1;
|
|
}
|