Skip to content

Instantly share code, notes, and snippets.

@xHacka
xHacka / tmux.conf
Last active October 7, 2024 20:31
Tmux configuration while working with Alacritty
# https://www.hostinger.com/tutorials/tmux-config
# Enable mouse mode
set -g mouse on
set -g history-limit 80000
# Dumps history into logfile on trigger, depends on history-limit
# set -g @save-complete-history-path "~/.tmux/logs"
set -g @logging-path "~/.tmux/logs"
set -g @plugin 'tmux-plugins/tpm'
@xHacka
xHacka / zshrc_alias_functions.sh
Last active September 26, 2025 18:09
The aliases and functions I use in my ctf lab.
# Use aliases in sudo
# https://askubuntu.com/a/22043
alias sudo="sudo --preserve-env=HOME "
alias fucking="sudo --preserve-env=HOME "
# Reference: https://dev.to/lissy93/cli-tools-you-cant-live-without-57f6
alias la="eza -lah --header --icons --group"
alias ls="eza --icons -h"
alias lt="eza --icons --tree"
alias lta="eza -al --icons --tree"
@xHacka
xHacka / selenium_solve.py
Created October 2, 2023 10:55
Selenium script used to solve challenge X, mostly reminder how to add `executable_path`...
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
service = Service(executable_path="/usr/bin/chromedriver")
options = webdriver.ChromeOptions()
options.add_argument('--headless')
driver = webdriver.Chrome(service=service, options=options)
URL = 'https://<URL>/challenge/code-4/'
@xHacka
xHacka / ghidra_auto.py
Last active September 20, 2023 19:05
#!/usr/bin/python3
import os
import click
import tempfile
from pathlib import Path
from subprocess import check_output, run
GHIDRA_PATH = os.environ.get('GHIDRA_PATH', '/opt/ghidra/')
ANALYZER = f"{GHIDRA_PATH}support/analyzeHeadless"