Skip to content

Instantly share code, notes, and snippets.

View MartinThoma's full-sized avatar

Martin Thoma MartinThoma

View GitHub Profile
from rich.panel import Panel
from textual.app import App
from textual.reactive import Reactive
from textual.widget import Widget
class Hover(Widget):
mouse_over = Reactive(False)
from rich.prompt import Prompt, Confirm
is_correct = False
while not is_correct:
name = Prompt.ask("Enter your name", default="Martin")
is_correct = Confirm.ask(f"Is your name '{name}'?")
age = Prompt.ask(
"What is your age group",
choices=["<18", "18-25", "25-35", ">35"],
from rich.tree import Tree
from rich import print
tree = Tree("Life")
prokaryota = tree.add("Prokaryota")
prokaryota.add("Eubacteria")
prokaryota.add("Archaebacteria")
eukaryota = tree.add("Eukaryota")
import typer
from pathlib import Path
from rich.console import Console
from rich.syntax import Syntax
def app(filepath: Path = typer.Option(..., exists=True)):
"""Print a python file."""
with open(filepath, "r") as f:
code = f.read()
import time
from rich.progress import Progress
with Progress() as progress:
task1 = progress.add_task("[red]Downloading...", total=1000)
task2 = progress.add_task("[green]Processing...", total=1000)
task3 = progress.add_task("[cyan]Cooking...", total=1000)
from rich.console import Console
from rich.table import Table
table = Table(title="Star Wars Movies")
table.add_column("Released", justify="right", style="cyan", no_wrap=True)
table.add_column("Title", style="magenta")
table.add_column("Box Office", justify="right", style="green")
table.add_row("Dec 20, 2019", "Star Wars: The Rise of Skywalker", "$952,110,690")
import typer
from pathlib import Path
app = typer.Typer(help="Awesome app doing awesome things.", add_completion=False)
@app.command()
def spread(name: str, count: int = typer.Option(1, help="How much love you want")):
"""Spread the love."""
for i in range(count):
import click
@click.group()
def app():
"""Awesome app doing awesome things."""
@app.command()
@click.option("--count", default=1, help="How much love you want")
@MartinThoma
MartinThoma / clamscan.csv
Last active January 22, 2022 12:11
Packages of which clamscan thinks they contain malicious files
package version malware project description
androbane 1.0.0 Py.Trojan.NecroBot-9868091-0 cyber security library
androwarn 1.6.1 Andr.Malware.Agent-1609887 Yet another static code analyzer for malicious Android applications
atlasutils 3.0.3 Win.Trojan.JS-69 atlas' hacking toolbelt full of toys
badfiles 0.3.0 Doc.Exploit.DDEautoexec-6346603-1 A malicious file detection engine written with Python and Yara.
bane 4.8.2 Py.Trojan.NecroBot-9868091-0 cyber security library
banelib 1.9.5 Py.Trojan.NecroBot-9868091-0 cyber security library
bgmi 2.2.5 Win.Downloader.VBS-148 BGmi is a cli tool for subscribed bangumi.
cp-mn-bd-01-mimicat 0.0.2 Win.Dropper.ClipBanker-9778171-0 (C) CNSIDE (P) Payload - (M) Malicious (N) Non Harmful - (B) Binary (D) Dormant - 01 - Mimikatz
csirtg_mail 1.0.2 Doc.Macro.Necurs-6412436-0 the fastest way to parse mail
@MartinThoma
MartinThoma / 20211210-TLP-WHITE_LOG4J.md
Created December 12, 2021 16:21 — forked from SwitHak/20211210-TLP-WHITE_LOG4J.md
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-12 1411 UTC