Skip to content

Instantly share code, notes, and snippets.

View VolkanSah's full-sized avatar
💭
I may be slow to respond.

Volkan Şah VolkanSah

💭
I may be slow to respond.
View GitHub Profile
@VolkanSah
VolkanSah / vncpcap2john.py
Last active July 27, 2025 14:59
A simple Python example of how to use external tools (e.g., vncpcap2john), pipe their output to John, and get the result in the termi
# A simple Python example of how to use external tools (e.g., vncpcap2john),
# pipe their output to John, and get the result in the terminal:
import subprocess
def run_vncpcap2john(pcap_file):
# Extrahiere Hash mit vncpcap2john
proc = subprocess.run(['vncpcap2john', pcap_file], capture_output=True, text=True)
if proc.returncode != 0:
print("Fehler bei vncpcap2john:", proc.stderr)
return None
@VolkanSah
VolkanSah / lua_syntax.py
Created December 12, 2024 21:44
Check-Lua-files for syntax errors
# Check-Lua-files for syntax errors
# if error was found it will be shown like this:
# Syntax error in /path/to/file/example.lua:
# luac: path/to/file/example.lua: line 10: syntax error near 'end'
# Syntax error found in: path/to/file/example.lua
import os
import subprocess
def check_lua_syntax(file_path):
@VolkanSah
VolkanSah / flux_app.py
Last active May 19, 2025 14:59
[FLUX.1-dev](https://blackforestlabs.ai/) Generate any type of image with Flux-Dev (Lora: Flux-uncensored).
import gradio as gr
import numpy as np
import random
import os
import spaces
from diffusers import AutoPipelineForText2Image
import torch
from huggingface_hub import login