Skip to content

Instantly share code, notes, and snippets.

View darkr4y's full-sized avatar
🎯
Self-Introspection

D@rkR4y. darkr4y

🎯
Self-Introspection
  • Pand0ra
  • Origin
View GitHub Profile
@darkr4y
darkr4y / config.jsonc
Created May 6, 2024 15:42
fastfetch config for iterm2 ---> ~/.config/fastfetch/config.jsonc | origin from https://github.com/eldritch-theme/fastfetch | more at https://github.com/topics/fastfetch
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "iterm",
"source": "~/.config/fastfetch/logo.png",
"padding": {
"right": 5,
"top": 5
},
"height": 16,
@darkr4y
darkr4y / css_snippet_downloader.py
Last active December 22, 2023 16:07
export obsidian plugins list
import requests
#### import httpx
import urllib
json_list = [
"https://github.com/replete/obsidian-minimal-theme-css-snippets/blob/main/%5Bui%5D%20Compact%20Tabs.css",
"https://github.com/efemkay/obsidian-modular-css-layout/blob/main/MCL%20Gallery%20Cards.css",
"https://github.com/efemkay/obsidian-modular-css-layout/blob/main/MCL%20Multi%20Column.css",
"https://github.com/efemkay/obsidian-modular-css-layout/blob/main/MCL%20Wide%20Views.css",
@darkr4y
darkr4y / spx2csv.py
Last active November 7, 2023 15:23
Script to get macOS apps info and write to CSV.
"""
Script to get macOS apps info and write to CSV.
"""
import argparse
import csv
import os
import plistlib
import subprocess
@darkr4y
darkr4y / install.ps1
Last active December 5, 2023 14:16
CommandoVM **install.ps1** MOD
###########################################
#
# Installation Script
#
###########################################
param (
[string]$password = "",
[string]$pkg_url = $null,
[string]$pkg_file = ".\pkg.json",
[bool]$nochecks = $false
{
"info": [
{
"label": "CPU Temp",
"command": "/opt/vc/bin/vcgencmd measure_temp | cut -d = -f 2 | awk '{printf \"%s \", $1}'",
"interval": 5
},
{
"label": "CPU Load",
"command": "top -bn1 | grep load | awk '{printf \"%.2f%%\", $(NF-2)}'",
@darkr4y
darkr4y / aircrack_check.sh
Last active January 22, 2022 08:22
aircrack-ng batch valid pcap
#!/bin/sh
# ref - https://stackoverflow.com/questions/9612090/how-to-loop-through-file-names-returned-by-find
# ref - https://github.com/kimocoder/wifite2/tree/master/wifite/tools/
# ref - https://stackoverflow.com/questions/55011240/how-to-count-the-number-of-valid-wpa-handshakes-in-a-cap-file
# ref - https://kalitut.com/how-to-extract-handshake-from-capture/
echo "WARNING: quick & dirty, will miss valid wpa handshake pcap files :("
TARGET=$1
@darkr4y
darkr4y / dll_hijack_x64.py
Created January 6, 2022 10:57
Dll Hijack x64 support
#!/usr/bin/python
# coding=utf-8
# stolen from https://github.com/InoriJam/DLL-hijack-X64 tested on vs2019
import os
import pefile
import sys
[
{
"type": "network",
"flip": true,
"align": "left",
"width": 80,
"bordered": false
},
{
"type": "staticButton",
@darkr4y
darkr4y / httpsrv.py
Last active May 2, 2024 20:42
python simple http server with upload & download
#!/usr/bin/env python
"""Extend Python's built in HTTP server to save files
curl or wget can be used to send files with options similar to the following
curl -X PUT --upload-file somefile.txt http://localhost:8000
wget -O- --method=PUT --body-file=somefile.txt http://localhost:8000/somefile.txt
__Note__: curl automatically appends the filename onto the end of the URL so
@darkr4y
darkr4y / s5.go
Created December 21, 2019 02:53
go socks5 proxy server
package main
import (
"log"
"flag"
"os"
"github.com/armon/go-socks5"
)
var (