
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Try to guess the operating system installed on the host (local or remote). Using SSH to connect remote host.
But, What about nmap?
It is true that nmap already performs the function of finding out the OS. We didn't want to repeat the work of nmap. The idea of the gem is:
gem install --user-install guess_os
, to install gem as normal user.
sudo gem install guess_os
, to install gem as root user.
WARNING
guess_os accepts several parameters (ip, username, password) to open an SSH connection to the remote host, and guess remote OS.
In the case of writing IP="localhost" SSH is not used.
❯ guess_os
[GuessOS]
ip? localhost
port?
username?
password?
--------------------------------------------------
Type: gnulinux
Name: opensuse
Desc: Description: openSUSE Tumbleweed
localhost example: Guess local host OS.
require 'guess_os'
host = GuessOS::Host.new(ip: 'localhost')
puts host.os.type
puts host.os.name
Remote host example: Guess remote host OS. The connection is established via SSH.
require 'guess_os'
host = GuessOS::Host.new(
ip: '192.168.1.42',
port: 2241,
username: 'vagrant',
password: 'vagrant'
)
puts host.os.type
puts host.os.name
More examples
Current OS list:
OS type | OS name |
---|---|
:gnulinux | opensuse, debian, ubuntu, manjaro, mint |
:windows | windows |
:macos | macos |
:cygwin | cygwin |
:minix | minix |
:unkown | unkown |
teuton.software@protonmail.com
FAQs
Unknown package
We found that guess_os 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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.