
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
specs_window
Advanced tools
It is a NodeJS module to get hardware and OS informacions.
npm install specs_window
const specs = require('specs_window')
console.log(specs.getProcessorsNumber())
const specs = require('specs_window')
console.log(specs.getProcessorsCore())
const specs = require('specs_window')
console.log(specs.getPCName())
This func is under maintenance.
const specs = require('specs_window')
console.log(specs.getProcessorArchitecture())
There are two func to get the Total Memory:
const specs = require('specs_window')
console.log(specs.getTotalMemory())
The fist func, getTotalMemory, return the following object:
{
Bytes: 17041244160,
KiloBytes: 16641840,
MegaBytes: 16251.796875,
GigaBytes: 15.870895385742188
}
const specs = require('specs_window')
console.log(specs.getTotalMemoryGB())
The second func, getTotalMemoryGB, return just GB:
15.870895385742188
There are two func to get the Free Memory:
const specs = require('specs_window')
console.log(specs.getFreeMemory())
The first func, getFreeMemory, return the following object:
{
Bytes: 3957870592,
KiloBytes: 3865108,
MegaBytes: 3774.51953125,
GigaBytes: 3.686054229736328
}
const specs = require('specs_window')
console.log(specs.getFreeMemoryGB())
The second func, getFreeMemoryGB, return just GB:
3.686054229736328
This func return all available drive path, include:
Does not work with smarphones, tables, nintendo switch, ...
const specs = require('specs_window')
console.log(specs.getAvailableDrives())
[ 'C:\\', 'G:\\' ]
This func return the Free Memory and Full Memory of Path Drive.
Path Dive is for exemple:
This func can you recive a individual Path Drive or a array with many Path Drive.
const specs = require('specs_window')
const Drives = specs.getAvailableDrives()
console.log(specs.getSizeDrives(Drives))
[
{ FreeMemory: 9531, FullMemory: 425668.99609375 },
{ FreeMemory: -1, FullMemory: -1 }
]
If the func canยดt read a Memory of Drive return -1.
This func return a array with all process running in machine.
const specs = require('specs_window')
specs.getProcesses().then((res) => {
res.forEach(element => {console.log(element)});
})
//or:
specs.getProcesses().then((res) => {console.log(res)})
{
PID: 23060,
Name: 'Code.exe',
MemoryCommit: 26976,
MemoryWorkingSet: 91436
}
{
PID: 46872,
Name: 'firefox.exe',
MemoryCommit: 171060,
MemoryWorkingSet: 212420
}
{
PID: 85324,
Name: 'firefox.exe',
MemoryCommit: 26820,
MemoryWorkingSet: 29392
}
If doesnยดt get the Processe Memory, return -1.
The func KillProcesse takes an int as an argument to represent the processe id (PID). In this exemple, I kill Micrsoft Edge processe.
const specs = require('specs_window')
specs.getProcesses().then((res) => {
res.forEach(Processe => {
if(Processe.Name == "msedge.exe")
specs.KillProcesse(Processe.PID).then((kill) => {console.log(kill)})
});
})
Return the mouse position in the screen not in the window.
const specs = require('specs_window')
console.log(specs.getMousePos())
{ X: 1642, Y: 847 }
Yes, you can move de Cursor/Mouse.
const specs = require('specs_window')
specs.MoveMouse(500,900)
Return the Screen Size in pixeis.
const specs = require('specs_window')
console.log(specs.getScreenSize())
{ width: 1920, height: 1080 }
This func recive with argument a path and return a array with all files and diretorys in path. You can give a path to a pendrive or another storage Unit.
const specs = require('specs_window')
specs.getFilesPath("C:\\").then((res) => {console.log(res)})
Only for a file can you get the file size in KiloBytes.
[
{ Name: 'BIOS', Type: 'DIR' },
{ Name: 'Config.Msi', Type: 'DIR' },
{ Name: 'discord-avatar.jpg', Type: 'File', KB: 354805 },
{ Name: 'Documents and Settings', Type: 'DIR' },
{ Name: 'Drivers', Type: 'DIR' },
{ Name: 'flutter', Type: 'DIR' },
{ Name: 'hiberfil.sys', Type: 'File', KB: 6816497664 },
{ Name: 'Intel', Type: 'DIR' },
{ Name: 'Java', Type: 'DIR' },
{ Name: 'mingw64', Type: 'DIR' },
{ Name: 'NiceHash', Type: 'DIR' },
{ Name: 'OneDriveTemp', Type: 'DIR' },
{ Name: 'pagefile.sys', Type: 'File', KB: 19811954688 },
{ Name: 'PATH_PROGRAM', Type: 'DIR' },
{ Name: 'Pearlabyss', Type: 'DIR' },
{ Name: 'PerfLogs', Type: 'DIR' },
{ Name: 'php', Type: 'DIR' },
{ Name: 'Program Files', Type: 'DIR' },
{ Name: 'Program Files (x86)', Type: 'DIR' },
{ Name: 'Programas', Type: 'DIR' },
{ Name: 'ProgramData', Type: 'DIR' },
{ Name: 'Python310', Type: 'DIR' },
{ Name: 'Recovery', Type: 'DIR' },
{ Name: 'Registadora.jar', Type: 'File', KB: 4578 },
{ Name: 'Riot Games', Type: 'DIR' },
{ Name: 'SQL2019', Type: 'DIR' },
{ Name: 'swapfile.sys', Type: 'File', KB: 16777216 },
{ Name: 'System Volume Information', Type: 'DIR' },
{ Name: 'temp', Type: 'DIR' },
{ Name: 'tools', Type: 'DIR' },
{ Name: 'UserBenchmark', Type: 'DIR' },
{ Name: 'Users', Type: 'DIR' },
{ Name: 'vcpkg', Type: 'DIR' },
{ Name: 'WhatsappKeys', Type: 'DIR' },
{ Name: 'Windows', Type: 'DIR' },
{ Name: 'XboxGames', Type: 'DIR' }
]
FAQs
It is a NodeJS module to get hardware informacions.
The npm package specs_window receives a total of 7 weekly downloads. As such, specs_window popularity was classified as not popular.
We found that specs_window 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
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.