Skip to content

Instantly share code, notes, and snippets.

View f0xmulder's full-sized avatar
👽
I want to believe

B. Ugur Demirkan f0xmulder

👽
I want to believe
  • Bursa / Turkey
View GitHub Profile
@f0xmulder
f0xmulder / 1 Waybar OpenVPN Toggler
Created September 2, 2024 01:42 — forked from bigfreak85/1 Waybar OpenVPN Toggler
Waybar Plugin openvpn toggler Shellscript for start/stop/status openvpn client (Systemd-unit)
This Scripts and Config Snippets are for a little Symbol in the Waybar. If you Click on the Tunnelsymbol the OpenVPN-Client
establish a Connection to the given Config (Systemd Openvpn-Client). If you do not Need the Tunnel then you can Click again on
the Symbol and the VPN-Tunnel gets closed. The following moving Parts are needed:
1. The Waybar Config Snippit
2. The Toggle/Status Script
3. The Polkit Rule to allow the control of the OpenVPN-Client systemd-Unit by given user (a sudo nopasswd is also possible but
not so granular and allows systemctl completly)
@f0xmulder
f0xmulder / 0-go-os-arch.md
Created January 6, 2023 03:49 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@f0xmulder
f0xmulder / howto.md
Created July 4, 2022 21:49 — forked from d4v3y0rk/howto.md
Encryption with DM_CRYPT in WSL2

Encrypted Volumes in WSL2

Description

This is a quick guide on how to setup dm_crypt under WSL2 for working with encrypted volumes. I use an encrypted volume to store things like password recovery codes and 2nd factor backup codes etc. I recently switched over to using WSL2 and wanted to figure out how to enable this functionality there. This is the distilled howto for getting it to work.

Guide

First thing you have to do is create a custom WSL2 kernel. Inside your already installed and running WSL2 (ubuntu) installation:

  • Install some required packages.
myfunc(){ awk '{print $1}' file; }
# For example internal pentest usage :
# 1. Find Alive hosts with 'find_alive' function
# 2. Scan ports and categorize with 'port_map' function
# 3. Perfom Default Credentials check. (msfconsole or hydra)
# (Optional) 4. Check web server and titles with 'check_http' function
# ***Basic methodology***
# • 'find_alive' → 'port_map' → 'check_http'
import string
import random
letters_lower = string.ascii_lowercase
letters_upper = string.ascii_uppercase
letters_special = string.punctuation
letter_numbers = string.digits
lowercase = 0
uppercase = 0
class Cevap
{
public void Hesapla(string islem, params int[] n)
{
if(islem == "t")
{
//Toplam
int toplam = 0;
foreach(int x in n) {
import requests
import json
import re
import time
import random
machine = "Machine Name" #(Ex : OpenAdmin)
server = "Server" #(Ex : eu-free-1)
api_token = "api token here"

Keybase proof

I hereby claim:

  • I am meantcoder on github.
  • I am mrshellby (https://keybase.io/mrshellby) on keybase.
  • I have a public key ASDHEMxax9SPv2kxP7Z40CPj-WUn3E0x--IfK-xZdQZ6lwo

To claim this, I am signing this object:

@f0xmulder
f0xmulder / arch-usb-uefi.md
Created January 24, 2020 15:33 — forked from elerch/arch-usb-uefi.md
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support

Our goal here is to have one USB stick to rule them all. Objectives:

  • We want a full system - not a live CD
  • We want to boot this system on a Macbook Pro (requires UEFI)
  • We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
  • We want the system "functional"

The last bullet is subject to interpretation, but I'm defining functional as:

  • X Windows works (with LXDE)
@f0xmulder
f0xmulder / gist:c643a468398906515c09392152ac6c9e
Created August 5, 2019 22:39 — forked from zeuxisoo/gist:1205467
Mini Fake DNS server (Python recipe)
## {{{ http://code.activestate.com/recipes/491264/ (r4)
import socket
class DNSQuery:
def __init__(self, data):
self.data=data
self.dominio=''
tipo = (ord(data[2]) >> 3) & 15 # Opcode bits
if tipo == 0: # Standard query