Create a stream from a filesystem resource.
const fs = require('frida-fs');
fs.createReadStream('/etc/hosts').pipe(networkStream);
const fs = require('frida-fs');
for (const elm of fs.list("/proc/self/")) {
console.log(JSON.stringify(elm));
}
console.log(fs.readFileSync("/etc/hosts"));
TypeScript
62.6%
C
33.7%
Batchfile
1.8%
Meson
1.1%
Create a stream from a filesystem resource.
const fs = require('frida-fs');
fs.createReadStream('/etc/hosts').pipe(networkStream);
const fs = require('frida-fs');
for (const elm of fs.list("/proc/self/")) {
console.log(JSON.stringify(elm));
}
console.log(fs.readFileSync("/etc/hosts"));
TypeScript
62.6%
C
33.7%
Batchfile
1.8%
Meson
1.1%