How baifdz/windows-tests works
Purpose
Windows-TESTS is a flat collection of Windows batch and PowerShell scripts, plus Markdown command notes, apparently intended for Windows administration, discovery, auditing, and security-impact testing. There is no application framework, package manifest, service, or central orchestrator.
Entry Points
Scripts are executed directly by an operator in a Windows shell:
• PowerShell scripts: audit.ps1, dns_sweep.ps1, ADfind.ps1
• Batch launcher: chropen.bat
• Operational/security test scripts: keylogg.ps1, screenshot.ps1, syscrash.ps1
The README only points to PowerShell Gallery, suggesting PowerShell modules may be expected to be obtained externally, but it does not specify dependencies.
Discovery and Environment Enumeration
Several scripts form the discovery layer, collecting information about network, DNS, Active Directory, shares, and files:
• dns_sweep.ps1
• ADfind.ps1
• netshares.ps1
• share_discover.ps1
• share_file_discovery.ps1
These are likely independent operator-selected probes rather than stages in an automated pipeline. Their boundary is the local Windows host and accessible network/domain resources.
Audit and Hardening Guidance
The repository includes assessment and remediation-oriented material:
• audit.ps1
• hardening.md
• powershell_commands.md
audit.ps1 is the primary executable audit entry point. The Markdown files provide operational knowledge rather than an integrated policy engine or reporting workflow.
System Modification and Cleanup
Scripts with potentially persistent or destructive system effects are isolated as direct commands:
• regerase.ps1
• net_program_del.ps1
• cleanup.md
These operate at the Windows registry, installed-program, or local-artifact boundary. They should be treated as privileged operator actions; the repository provides no evident transaction, rollback, authorization, or state-management layer.
Security-Impact Test Payloads
A distinct set of scripts appears intended to exercise endpoint controls or demonstrate high-risk behaviors:
• keylogg.ps1
• screenshot.ps1
• syscrash.ps1
• forkbomb.md
These are not integrated with audit/discovery scripts. They likely require elevated permissions or endpoint-security exceptions depending on implementation and host policy.
Runtime and External Boundaries
The material runtime is Windows PowerShell and Windows command execution, with .bat support through chropen.bat. Important external boundaries include Windows registry/services, local filesystem, Active Directory, DNS, SMB/network shares, and potentially PowerShell Gallery for module acquisition. No cloud service, database, API server, CI pipeline, or persistent storage architecture is represented in the repository.
Main entry points: audit.ps1 audit.ps1 · regerase.ps1 regerase.ps1 · dns_sweep.ps1 dns_sweep.ps1 · ADfind.ps1 ADfind.ps1
Components 18
Discovery probes
Independent operator-selected enumeration scripts.
- dns_sweep.ps1
dns_sweep.ps1 - ADfind.ps1
ADfind.ps1 - netshares.ps1
netshares.ps1 - share_discover.ps1
share_discover.ps1 - share_file_discovery.ps1
share_file_discovery.ps1
Audit guidance
- audit.ps1 · Primary executable audit entry point.
audit.ps1 - hardening.md
hardening.md - powershell_commands.md
powershell_commands.md
System modification
Privileged actions without rollback or state management.
- regerase.ps1
regerase.ps1 - net_program_del.ps1
net_program_del.ps1 - cleanup.md
cleanup.md
Security-impact tests
- Endpoint test scripts · keylogg.ps1, screenshot.ps1, and syscrash.ps1 are independent direct commands.
- forkbomb.md
forkbomb.md
Other components
- Windows operator · Directly selects and runs scripts.
- PowerShell and CMD
- Windows host · Local registry, programs, services, and filesystem.
- Domain and network · DNS, Active Directory, and SMB shares accessible to the host.
- PowerShell Gallery · Potential external module acquisition source.
Connections 24
- Windows operator → PowerShell and CMD: runs
- PowerShell and CMD → audit.ps1: executes
- PowerShell and CMD → dns_sweep.ps1: executes
- PowerShell and CMD → ADfind.ps1: executes
- PowerShell and CMD → netshares.ps1: executes
- PowerShell and CMD → share_discover.ps1: executes
- PowerShell and CMD → share_file_discovery.ps1: executes
- PowerShell and CMD → regerase.ps1: executes
- PowerShell and CMD → net_program_del.ps1: executes
- PowerShell and CMD → Endpoint test scripts: executes
- hardening.md → audit.ps1: guides
- powershell_commands.md → PowerShell and CMD: documents
- cleanup.md → regerase.ps1: guides
- forkbomb.md → Endpoint test scripts: documents
- audit.ps1 → Windows host: assesses
- dns_sweep.ps1 → Domain and network: queries DNS
- ADfind.ps1 → Domain and network: queries AD
- netshares.ps1 → Domain and network: enumerates shares
- share_discover.ps1 → Domain and network: discovers shares
- share_file_discovery.ps1 → Domain and network: enumerates files
- regerase.ps1 → Windows host: modifies registry
- net_program_del.ps1 → Windows host: removes programs
- Endpoint test scripts → Windows host: affects endpoint
- PowerShell and CMD → PowerShell Gallery: may obtain modules