Skip to content

Instantly share code, notes, and snippets.

View boranbar's full-sized avatar

Boran BAR boranbar

View GitHub Profile
## Communication Guidelines
### Language
Always respond in Turkish unless explicitly requested otherwise.
### Git Workflow
After completing any task:
1. Ask if the user wants to commit and push changes to the GitHub repository
2. If confirmed, commit changes with Turkish commit messages
3. Push to the remote repository
@boranbar
boranbar / gist:843d6fdf68f6a73b92994663e9db1ff3
Created July 14, 2025 16:05
PowerShell script to change the default Remote Desktop Protocol (RDP) port on Windows, remove flood protection limits, and automatically configure the Windows Firewall.
# Yeni RDP Port Numarası (gerekirse bu değeri değiştirin)
$NewRdpPort = 42500
Write-Host "🔧 RDP ayarları yapılandırılıyor..." -ForegroundColor Cyan
# 1. RDP Flood limitlerini kaldır
Write-Host "⚙️ Flood limit ayarları kaldırılıyor..." -ForegroundColor Yellow
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" -Name "MaxOutstandingConnections" -Value 0 -PropertyType DWord -Force | Out-Null
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" -Name "MaxConnectionTimeOut" -Value 0 -PropertyType DWord -Force | Out-Null
@boranbar
boranbar / gist:d3f9eb649d9d490ba94997d6baec7773
Last active July 17, 2025 12:34
PowerShell Script to Modify Password Policy and Create Local Administrator Users
# Parola politikalarını düzenle
secedit /export /cfg "$env:TEMP\secpol.cfg"
(gc "$env:TEMP\secpol.cfg") |
ForEach-Object {
$_ -replace 'PasswordComplexity\s*=\s*\d+', 'PasswordComplexity = 0' `
-replace 'MinimumPasswordLength\s*=\s*\d+', 'MinimumPasswordLength = 0'
} | Set-Content "$env:TEMP\secpol.cfg"
secedit /configure /db secedit.sdb /cfg "$env:TEMP\secpol.cfg" /areas SECURITYPOLICY
@boranbar
boranbar / add-extra-ips.sh
Last active July 10, 2025 23:10
Add extra IPs script
#!/bin/bash
# Root kontrolü
if [[ $EUID -ne 0 ]]; then
echo "❌ Lütfen bu scripti root olarak çalıştırın."
exit 1
fi
# OS tespiti
if [ -f /etc/os-release ]; then