Skip to content

Instantly share code, notes, and snippets.

@nielk
nielk / setup.sh
Last active October 9, 2015 22:54
setup.sh
echo 'Installing terminal stuffs'
echo 'show hidden files'
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
if [ -x /usr/local/bin/brew ]; then
echo 'Brew'
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
@icub3d
icub3d / config.go
Created January 17, 2013 07:29
A complete example of creating a service in go using RPC.
// greeter/config.go
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"sync"
)
@mdirkse
mdirkse / generate-slideshow.sh
Last active July 10, 2018 23:14
Generate a slideshow from jpg's with audio
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DOCKER_WORKDIR="/slideshow"
WORKDIR="work"
# Parameters
AUDIO_FILE="music.mp3"
@carnal0wnage
carnal0wnage / msgrpc_ssh_version.py
Last active April 19, 2020 14:22
python script to connect to a metasploit msgrpc instance, setup and run an auxilary module.
#!/usr/bin/env python
import sys
import msfrpc
import time
if __name__ == '__main__':
# Create a new instance of the Msfrpc client with the default options
client = msfrpc.Msfrpc({})
# Login to the msf server using the password "abc123"
@bleonard252
bleonard252 / viewer.html
Last active June 27, 2020 10:53
Myfile viewer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Myfile Tester/Viewer/Thing</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/abodelot/jquery.json-viewer@master/json-viewer/jquery.json-viewer.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/abodelot/jquery.json-viewer@master/json-viewer/jquery.json-viewer.css">
@hairyhenderson
hairyhenderson / dstest.go
Created May 7, 2019 01:33
Using gomplate datasources programatically
package main
import (
"fmt"
"github.com/hairyhenderson/gomplate/data"
)
func main() {
d, err := data.NewData([]string{"ip=https://ipinfo.io"}, nil)
@secretsquirrel
secretsquirrel / osx_infector.py
Last active March 31, 2021 19:33
From Shmoocon infection demo
import os
import struct
import shutil
import subprocess
class macho_intel32_shellcode():
"""
Mach-O Intel x32 shellcode class
"""
@Sinistral2099
Sinistral2099 / 7z2zip
Last active July 21, 2021 18:31
Bash scripts for managing ROM files
#!/bin/bash
version="0.2"
if [ "$#" -ne 1 ]; then
echo "Usage: $(basename $0) [7z file]"
exit 0
fi
function error() {
@5andr0
5andr0 / GetPw.py
Last active November 17, 2021 18:35 — forked from t0phr/GetPw.py
Scan script for nzbget.
#!/usr/bin/python3.8
##############################################################################
### NZBGET SCAN SCRIPT ###
#
# Scans filename of incoming NZBs for embedded passwords.
#
##############################################################################
### OPTIONS ###
# The RegEx to match the password in the filename.
#regex=(.*)\{\{(.*)\}\}.nzb
#!/bin/bash
set -o pipefail
set -s
#####
# This script will take a fresh KDE Neon install and make it suitable for getting stuff done.
# It may not work against another Ubuntu Installation type.
# Run it with: bash <(wget -qO- https://git.io/vSe77)
#####