Skip to content

Instantly share code, notes, and snippets.

View dzervas's full-sized avatar

Dimitris Zervas dzervas

View GitHub Profile
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "helm_release.magicentry" references: [kubernetes_namespace.magicentry (expand)]
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/helm\"]" references: []
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "kubernetes_manifest.cm_client_issuer (expand)" references: [helm_release.cert_manager (expand) kubernetes_manifest.cm_client_ca (expand)]
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "helm_release.ingress_nginx (expand)" references: []
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "local.domains (expand)" references: [var.domain var.domain]
2024-06-29T17:35:22.787+0300 [DEBUG] ReferenceTransformer: "module.invidious_ingress.output.host_list (expand)" references: [module.invidious_ingress.local.partial (expand) module.invidious_ingress.var.fqdn (expand)]
2024-06-29T17:35:22.788+0300 [DEBUG] pruneUnusedNodes: kubernetes_manifest.cm_letsencrypt_issuer (expand) is n
@dzervas
dzervas / setup.ps1
Last active January 2, 2024 00:02 — forked from macostag/setup.ps1
Chocolatey script to setup Windows 10 malware analysis box.
# irm https://gist.github.com/dzervas/1455ace739c9871d1dcd06693d8ee874/raw | iex
#Bypass Execution Policy
Set-ExecutionPolicy Bypass -Scope CurrentUser -Force
#Install boxstarter
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); Get-Boxstarter -Force
#Disable UAC
Disable-UAC
@dzervas
dzervas / ishare.sh
Created April 28, 2021 18:41
Internet sharing script
#!/bin/sh
# ./ishare.sh <internet_iface> <target_iface>
sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o "${1}" -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i "${2}" -o "${1}" -j ACCEPT
@dzervas
dzervas / millproject
Created June 2, 2020 18:23
CNC 3018Pro pcb2gcode settings
# WARNING: Please lower max Z speed to 30mm/s and max XY speeds to 50mm/s.
# Tinker more, maybe it needs to go slower!
# Pcb2GCode settings
metric=true
metricoutput=true
zero-start=true
zsafe=4
zchange=5
milling-overlap=10%
@dzervas
dzervas / enumer.js
Created May 22, 2020 08:04
Frida Scripts
// Enumerates all Java classes & methods in a nice way
var enumer = {};
enumer.exclude = [ "size" ];
filter = filter || function(obj, prop) { return true; };
enumer.enumer = function(filter) {
return {
onMatch: function(obj) {
@dzervas
dzervas / brutemfu.lua
Created November 18, 2019 19:52
Proxmark3 Mifare Ultralight pin bruteforce
local getopt = require('getopt')
local utils = require('utils')
local function main(args)
key = 0x00000000
byte = 0x04
data = 0x00000000
for o, a in getopt.getopt(args, 'k:b:d:') do
if o == 'k' then key = tonumber(a, 16) end
@dzervas
dzervas / efood_pinata.py
Created September 3, 2019 11:15
E-Food.gr pinata discount calculator
#!/usr/bin/env python3
import sys
# Usage: python efood_pinata.py 5 5 5 3
items = sys.argv[1:]
total = 0
discountp = 0
for i in items:
total += float(i)
@dzervas
dzervas / Dockerfile
Created July 18, 2019 20:48
Caddy Docker
FROM alpine
MAINTAINER Dimitris Zervas <[email protected]>
RUN apk add --update --no-cache bash curl gnupg && mkdir /caddy
RUN curl https://getcaddy.com | bash -s personal
WORKDIR /caddy
EXPOSE 80 443 2015
VOLUME [ "/caddy" ]
@dzervas
dzervas / ncat
Last active April 13, 2019 12:17
Help Message Regex Parsers - test @regex101.com
\s+(?:-([a-zA-Z0-9])(?:\s[\w,.<>\[\]]+)?)?,?\s+(?:--([a-z-]+)(?:\s[\w,.<>\[\]:]+)?)?\s+([A-Z][\w \(\)\/,.<>'-;\"]+)
@dzervas
dzervas / inet-share.sh
Last active January 1, 2022 12:04
RasPi Scripts
#!/bin/sh
sudo sysctl -w net.ipv4.conf.usb0.forwarding=1
sudo iptables -t nat -A POSTROUTING -o $1 -j MASQUERADE