Skip to content

Instantly share code, notes, and snippets.

View AWqxKAWERbXo's full-sized avatar
⚪

Alex AWqxKAWERbXo

⚪
View GitHub Profile
@AWqxKAWERbXo
AWqxKAWERbXo / winscp-decrypt.py
Created November 14, 2026 17:16
WinSCP password decryptor – pure Python 3, offline, no dependencies. Decrypts WinSCP.ini credentials: simple obfuscation and AES-256 master-password entries (WinZip-AES, PBKDF2-HMAC-SHA1). Reconstructed from the WinSCP source.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
WinSCP-Passwort-Entschlüsselung – lokal, offline, ohne Fremdbibliotheken.
Entschlüsselt die in WinSCP.ini gespeicherten Zugangsdaten:
- ohne Master-Passwort (UseMasterPassword=0): einfache WinSCP-Obfuskierung
- mit Master-Passwort (UseMasterPassword=1): AES-256-CTR + HMAC-SHA1
(WinZip-AES-Schema, PBKDF2-HMAC-SHA1, 1000 Iterationen) über die
zuvor "gescramblete" Passwort-Zeichenkette.
@AWqxKAWERbXo
AWqxKAWERbXo / timed-auto-updates.php
Created July 13, 2025 11:11
WordPress Auto-Updates nur in Wartungsfenstern von 4 bis 6 Uhr montags bis samstags
<?php
/**
* Plugin Name: Timed Auto Updates
* Description: Erlaubt automatische Updates nur zwischen 4 und 6 Uhr, Montag bis Samstag.
*/
# Lege diese Datei als /wp-content/mu-plugins/timed-auto-updates.php ab
add_filter('automatic_updater_disabled', function () {
$current_hour = (int) current_time('H');
@AWqxKAWERbXo
AWqxKAWERbXo / sync-github-to-bitbucket.md
Created February 11, 2025 15:56 — forked from derick-montague/sync-github-to-bitbucket.md
Sync github repo to bitbucket repo

Set up remotes

setup local repo

mkdir myrepository
cd myrepository
git init

add bitbucket remote as "origin"