All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| 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) |
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.
First thing you have to do is create a custom WSL2 kernel. Inside your already installed and running WSL2 (ubuntu) installation:
| 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" |
I hereby claim:
To claim this, I am signing this object:
Our goal here is to have one USB stick to rule them all. Objectives:
The last bullet is subject to interpretation, but I'm defining functional as:
| ## {{{ 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 |