Files
metasploit-gs/lib/msf/core/post/linux/wsl.rb
T
2026-02-17 16:00:59 -05:00

18 lines
327 B
Ruby

# -*- coding: binary -*-
module Msf
class Post
module Linux
module Wsl
include ::Msf::Post::Linux::Kernel
#
# Returns a boolean if the kernel includes WSL indicators
#
def wsl?
kernel_release.downcase.include?('-microsoft')
end
end
end
end
end