
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
github.com/micmonay/upnp
Easy for dialog with a UPnP device.
(Sorry if my english is bad in the project or the examples, I try)
I built a tool at https://github.com/micmonay/UpnpTools
This exemple is for get the IPV4 in your router. For exemple your router has duty a UPnP active
up := upnp.NewUPNP(upnp.SERVICE_GATEWAY_IPV4_V2) // or upnp.SERVICE_GATEWAY_IPV4_V1
Interface, err := upnp.GetInterfaceByName("eth0")
if err != nil {
log.Println(err)
return
}
// Get all devices compatible for the service name (timeout 1 second)
devices := up.GetAllCompatibleDevice(Interface, 1)
if len(devices) == 0 {
return
}
// Get services
services := devices[0].GetServicesByType(upnp.SERVICE_GATEWAY_IPV4_V2) // or upnp.SERVICE_GATEWAY_IPV4_V1
if len(services) == 0 {
return
}
// if you have a one routeur it's ok, other ...
service := services[0]
if service == nil {
log.Println("not found service")
return
}
// send request
response, err := service.GetAction("GetExternalIPAddress").Send()
if err != nil {
log.Println(err)
return
}
// get response argument
ip, err := response.GetValueArgument("NewExternalIPAddress")
if err != nil {
log.Println(err)
return
}
fmt.Println("Your WAN ip address is " + ip)
If your action containe arguments at sending.
Action := Services[0].GetAction("ActionName")
Action.AddVariable("nameOfArgument","value")
Action.Send()
FAQs
Unknown package
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
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.