Skip to content

Commit

Permalink
Create osinfo.ps1
Browse files Browse the repository at this point in the history
HarshCasper authored Apr 6, 2020
1 parent 72395a4 commit 1dd8d34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Operating System Information/osinfo.ps1
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) ."

0 comments on commit 1dd8d34

Please sign in to comment.