12 lines
401 B
JavaScript
12 lines
401 B
JavaScript
const fs = require('fs');
|
|
const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8');
|
|
|
|
const idx = content.indexOf('function iL');
|
|
if (idx !== -1) {
|
|
console.log(content.substring(idx, idx + 500));
|
|
} else {
|
|
// Try finding iL= or const iL
|
|
const m = content.match(/.{0,50}(const iL|var iL|function iL|let iL).{0,200}/);
|
|
console.log(m ? m[0] : 'not found');
|
|
}
|