forked from seema1711/Rotten-Scripts-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
72395a4
commit 1dd8d34
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#.ps1 | ||
$wmiobject = get-wmiobject -class win32_operatingsystem | ||
$user = ($wmiobject).RegisteredUser | ||
$kernal_version = ($wmiobject).Version | ||
Write-host -fore green "The victim is running on kernal $kernal_version ","With the username $user & Computername is $(whoami) ." |