
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@arriva/wedge
Advanced tools
Wedge module will capture data from keyboard wedge readers and send them to a listener function. Essentially all barcode readers, magnetic stripe readers and RFID readers that sends data over keyboard commands and that can be programmed to use start and e
Wedge module will capture data from keyboard wedge readers and send them to a listener function. Essentially all barcode readers, magnetic stripe readers and RFID readers that sends data over keyboard commands and that can be programmed to use start and end characters can be used.
npm i @arriva/wedge
ES6
import wedge from '@arriva/wedge'
let options = {
// Configuration options
}
let wedge = new Wedge(options)
let eventListener = wedge.listen(function(data){
console.log([data])
})
eventListener.destroy()
<script src="js/wedge.js"></script>
<script>
var options = {
// Configuration options
}
var wedge = new Wedge(options)
var instance = wedge.listen(function(data){
console.log([data])
})
instance.destroy()
</script>
When initializing Wedge the following options can be set:
escapeStringBegin
: Character that starts the code read sequence. (Default: ¤
)escapeStringEnd
: Character that ends the code read sequence. (Default: ¤
)delay
: Milliseconds minimum delay between keystrokes to allow read var options = {
escapeStringBegin: '¤',
escapeStringEnd: '¤',
delay: 50
}
var instance = new Wedge(options)
Wedge::listen(listenerFunc)
: Create listener. Listener instance object returned.Wedge::trigger(data)
: Manually trigger as if data string was read by Wedge.Wedge::purge([listenerId])
: Destroy all listeners. Optional [listenerId] will destroy only that listener.Listener::id
: Return listener id.Listener::destroy()
: Destroy this listener. var options = {
escapeStringBegin: '¤',
escapeStringEnd: '¤',
delay: 50
}
var instance = new Wedge(options)
var listener1 = instance.listen(function(data){
console.log(data)
})
var listener2 = instance.listen(function(data){
console.log(data)
})
// Trigger all listeners
instance.trigger('123456789')
// Purge listener with id
instance.purge(listener1.id)
// Purge all listeners
instance.purge()
If two or more instances of Wedge is launched, listening at same trigger characters, they will interfere and it is unpredictable which listener will catch what characters. Avoid this situation.
Contact information will be published later.
FAQs
Wedge module will capture data from keyboard wedge readers and send them to a listener function. Essentially all barcode readers, magnetic stripe readers and RFID readers that sends data over keyboard commands and that can be programmed to use start and e
The npm package @arriva/wedge receives a total of 0 weekly downloads. As such, @arriva/wedge popularity was classified as not popular.
We found that @arriva/wedge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.