Skip to content

Instantly share code, notes, and snippets.

View chak10's full-sized avatar
🏠
Working from home

chak10 chak10

🏠
Working from home
View GitHub Profile
@chak10
chak10 / combine_hashes.py
Last active October 27, 2024 10:59
La funzione `combine_hashes_mode` è progettata per combinare hash di immagini utilizzando la modalità per ciascun bit. Questa funzione consente di gestire diversi hash generati da immagini simili, identificando anche immagini completamente nere o bianche.
import imagehash
from PIL import Image
import numpy as np
def combine_hashes_mode(*hashes):
"""
Combina più hash di immagini utilizzando la modalità per ciascun bit.
Controlla anche se un'immagine è completamente nera o bianca.
Parameters:
@chak10
chak10 / main.py
Last active November 10, 2024 13:04
This Python script attempts a brute-force attack on a password-protected RAR file by generating all possible password combinations up to a specified length and testing each one using 7-Zip, leveraging multiprocessing for improved performance.
import subprocess
import itertools
import string
import time
import os
import logging
from multiprocessing import Pool, cpu_count, Manager
# Configurazione dei logger
logger = logging.getLogger()