Skip to content

Instantly share code, notes, and snippets.

View loneicewolf's full-sized avatar
🐲
Want to know a secret? You are amazing but.. You already knew that! ❤️ :D

Will loneicewolf

🐲
Want to know a secret? You are amazing but.. You already knew that! ❤️ :D
View GitHub Profile
@loneicewolf
loneicewolf / keybase.md
Created December 2, 2020 19:04
Keybase proof

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@loneicewolf
loneicewolf / runes.py
Created February 26, 2021 11:34 — forked from huw/runes.py
import string
def find_position(char):
for set_num in range(len(table)):
if char in table[set_num]:
return set_num
return False
def forge_offsets(key, direction, offset):
if type(key) is str:
@loneicewolf
loneicewolf / compact_linux_reverse_shell.c
Last active March 25, 2024 22:10
A compact linux reverse shell written in the C Programming Language.
/*
NOTE See Below for version 2 (and updates, erratas, fixes, links, and so on)
NOTE don't assume or think this is the latest because it's on first on top on the list; it's not.
Version 1 'naive approach' (hard coded values, etc)
gcc -g -o L1 lin_1.c
*/
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>
#define RP 1234
@loneicewolf
loneicewolf / cases.sh
Created January 10, 2022 12:38
cases and such in bash
#!/usr/bin/env bash
## https://stackoverflow.com/questions/10376206/what-is-the-preferred-bash-shebang
echo -e "THIS program: $0\n"
## cases.sh
# if $# (num. of inputs) is NOT(!) EQUALS TO(=) (so, !=) 2; print "argc IS NOT 2, ..."
if [ $# != 2 ]; then
echo "argc IS NOT 2, enter IP and PORT"
else
for i in {1..3}
do
echo $i
export m1="msg 1"
export m2="msg 2"
export m3="msg 3"
case $i in
1) echo "$m1";;
@loneicewolf
loneicewolf / Guide.MD
Created February 15, 2022 20:29
ENCRYPTED ARCH-LINUX 2022 LVM UEFI

Made this in my free time on a break as 'addons' to both my ARCH-PCI-PASSTROUGH guide, as well as to my OSCP Certification (and, to be part in any upcomming work/projects I will do in this kind of field)

  • William M
hdparm -I /dev/sda
hdparm -I /dev/sdb
hdparm -I /dev/(some other disk(s))

@loneicewolf
loneicewolf / compact_windows_reverse_shell.c
Last active March 7, 2024 03:09
A compact windows reverse shell written in the C Programming Language.
/*
* code inspired and modified from defcon25,MSDocs,StackOverflow
* i686-w64-mingw32-gcc -o win_rsh win_rsh.c -lws2_32
*/
#include <ws2tcpip.h>
#include <stdio.h>
#pragma comment(lib, "ws2_32")
int main(int argc, char *argv[]){
WSADATA wsaData;
@loneicewolf
loneicewolf / win_msgbox.c
Last active July 27, 2023 16:06
A simple message box in Windows using C
// i686-w64-mingw32-gcc -o M msgbox.c
#include <stdio.h>
#include <windows.h>
int main(int argc, char *argv[]){
if(argc != 3){
printf("usage: %s MESSAGE TITLE",argv[0]);
}
// MessageBox function (winuser.h)
// Displays a modal dialog box that contains
// a system icon,
@loneicewolf
loneicewolf / colors_msgbox_etc_in_bash.sh
Last active November 21, 2022 11:20
colors, effects, message box, popups, etc - in bash
## edit: this was only called "colors in bash" but I renamed it to include more "general" or "overall" effects,
## such as; popups(zenity, notify-send, ..) and (soon coming!) ncurses, etc.
# might be some errors (not only grammar)
# red=31
# green=32
# blue=34
# yellow=33
# cyan=36
# pink=35
@loneicewolf
loneicewolf / 1_CheckFileInput.sh
Created August 9, 2022 07:04
bash - input checker, if arg is a file
#!/bin/bash
if [ $# != 1 ]; then
echo -ne "\e[31m[-] Input only 1 arg\e[00m\n"
else
echo -ne "\e[32m[+] 1 arg ok\e[00m\n"
if [ -f "$1" ]; then
echo -ne "\e[32m[+] arg 1 IS A file.\e[00m\n"
f="$1"
#echo "[*] exec: ls $f"