This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |