
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
karma-outflow-preprocessor
Advanced tools
Copy the hidden internal function to be accessible from the outside.
Copy the hidden internal function to be accessible from the outside.
##Installation
npm install https://github.com/stegano/karma-outflow-preprocessor.git --save-dev
// karma.conf.js
module.exports = function(config) {
//...
preprocessors: {
'/**/*.js': ['outflow']
},
outflowPreprocessor: {
global: 'window', // default : `window`, if you execute on node then use `global` setting.
silent: true, // default : `true`, if the silent option is false, this list will be output to the console.
files: [
{
src: './targetFile.js'
dst: './targetFile.outflow.js' // default `targetFile.outflow.js`
}
]
}
//...
}
// `targetFile.js` (original source code)
function LegacyFunc() {
function privateFunc1() {
// blah blah blah..
function privateFunc2() {
// blah blah blah..
}
}
}
// `targetFile.outflow.js` (create source code by outflow-preprocessor)
function LegacyFunc() {
function privateFunc1() {
// blah blah blah..
function privateFunc2() {
// blah blah blah..
}
}
}
window.outflow = {
'window.LegacyFunc': function() {
function privateFunc1() {
// blah..
function privateFunc2() {
// blah blah..
}
}
},
'window.LegacyFunc.privateFunc1': function() {
// blah..
function privateFunc2() {
// blah blah..
}
},
'window.LegacyFunc.privateFunc1.privateFunc2': function() {
// blah blah..
}
};
// [Outflow] function Index :D
// outflow['window.LegacyFunc']
// outflow['window.LegacyFunc.privateFunc1']
// outflow['window.LegacyFunc.privateFunc1.privateFunc2']
FAQs
Copy the hidden internal function to be accessible from the outside.
The npm package karma-outflow-preprocessor receives a total of 0 weekly downloads. As such, karma-outflow-preprocessor popularity was classified as not popular.
We found that karma-outflow-preprocessor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.