Skip to content

Instantly share code, notes, and snippets.

View fr34k8's full-sized avatar
🎯
Focusing

fr34k8

🎯
Focusing
View GitHub Profile
@fr34k8
fr34k8 / KLR.DMe_Recipe.txt
Created August 16, 2017 15:06 — forked from SadProcessor/KLR.DMe_Recipe.txt
Kali L33tR4t - SadProcessor's HomeGrown Kali ISO Recipe >> DeadMouse Edition (i3wm)
#########################################################################
# $$\ $DEAD$\ $MOUSE\ $$\ EDITION\ $$\ V2\ $$\ #
# $$ | $$ ___$$\ $$ ___$$\ $$ | $$ __$$\ $$ | $$ | $$ | #
# $$ | \_/ $$ |\_/ $$ |$$$$$$\ $$ | $$ |$$ | $$ |$$$$$$\ #
# $$ | $$$$$ / $$$$$ / \_$$ _| $$$$$$$ |$$$$$$$$ |\_$$ _| #
# $$ | \___$$\ \___$$\ $$ | $$ __$$< \_____$$ | $$ | #
# $$ | $$\ $$ |$$\ $$ | $$ |$$\ $$ | $$ | $$ | $$ |$$\ #
# $L33tR4t\\$Kali$ |\$Linux | \$$$$ |$$ | $$ | $$ | \$ISO | #
# \________|\______/ \______/ \____/ \__| \__| \__| \____/ #
#########################################################################
@fr34k8
fr34k8 / I2P OS X.md
Created June 2, 2017 15:03 — forked from aint/I2P OS X.md
Set Up I2P on Mac OS X
  • Install I2P
    • Download I2P
    • java -jar i2pinstall_*.jar
  • Install Java Service Wrapper
    • Download Community Version
    • tar xzf wrapper-*.tar.gz
    • cp wrapper*/bin/wrapper /Applications/i2p/i2psvc
    • cp wrapper*/lib/wrapper.jar /Applications/i2p/lib
    • cp wrapper*/lib/libwrapper.so /Applications/i2p/lib
  • Try to start I2P using /Applications/i2p/i2prouter start or Start I2P Router app
Most of the logic resides in https://github.com/beefproject/beef/tree/master/core/main/client
https://github.com/beefproject/beef/blob/master/core/main/client/beef.js establishes the beef object in the browser's DOM
window.onload then runs beef_init() https://github.com/beefproject/beef/blob/master/core/main/client/init.js#L24
Within beef_init() we run beef.net.browser_details() https://github.com/beefproject/beef/blob/master/core/main/client/init.js#L67
Within beef.net.browser_details() we gather response from beef.browser.getDetails() https://github.com/beefproject/beef/blob/master/core/main/client/net.js#L503
@fr34k8
fr34k8 / aws-manage.sh
Created May 7, 2017 21:14 — forked from xntrik/aws-manage.sh
A simple script to start an AWS EC2 instance and update an associated R53 DNS record. The policy files should setup minimum permissions to allow these actions.
#!/bin/bash
# Dependencies: awscli - see https://aws.amazon.com/cli/
# Some of this is pilfered from
# https://github.com/awslabs/aws-codedeploy-samples
#
# How to use:
# ./aws-manage.sh <instance id> <dns-record> <dns-type> <up|down>
#
# For example:
# ./aws-manage.sh i-7337 xntrik.wtf A up

Aptly

aka how to make a stupid mirror

  1. get aptly (https://aur.archlinux.org/aptly.git)

  2. get the ubuntu-archive-keyring. can use any ssl mirror.

curl -OJL https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu/project/ubuntu-archive-keyring.gpg.sig
@fr34k8
fr34k8 / aptly-cli-docker.sh
Created October 19, 2016 17:06 — forked from sepulworld/aptly-cli-docker.sh
Docker Aptly-cli run
alias aptly-cli='\
docker run \
-v ~/.config/aptly-cli/aptly-cli.conf:/etc/aptly-cli.conf \
-it --rm --name=aptly-cli \
sepulworld/aptly-cli'
@fr34k8
fr34k8 / ddns_nsupdate.sh
Created July 13, 2016 13:43 — forked from pederkl/ddns_nsupdate.sh
How to update a dynamic DNS zone in Synology DSM with nsupdate directly, without going through the various web services.
#!/bin/sh
# Copyright (c) 2014, Peder O. Klingenberg
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
@fr34k8
fr34k8 / foreman
Created June 27, 2016 16:17
Foreman on NginX+Passenger
## Puppet Foreman
server {
listen 443 ssl;
ssl_certificate ssl/foreman.xxx.com.crt;
ssl_certificate_key ssl/foreman.xxx.com.key;
ssl_session_timeout 10m;
add_header Strict-Transport-Security max-age=15768000;
server_name foreman.xxx.com;
@fr34k8
fr34k8 / 1. Install python3.5 & pip3.md
Created June 23, 2016 16:21 — forked from alyssaq/1. Install python3.7 & pip3.md
python3.5 setup on Mac 10.11 (El Capitan)
@fr34k8
fr34k8 / pi_qemu.sh
Created May 30, 2016 17:03 — forked from JasonGhent/pi_qemu.sh
OSX raspberry pi emulation via QEMU. v2 attempt @ https://gist.github.com/JasonGhent/922f38f57c8cb77b10f3
# pulled from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
# expanded via http://superuser.com/questions/690060/how-to-enable-network-with-a-raspberry-pi-emulated-on-qemu
# tested with 2015-02-16-raspbian-wheezy.zip on OSX Mavericks
# OSX terminal
brew install qemu
# kernel-qemu is a linux kernel compiled with ARM1176 support.
# learn more here: http://xecdesign.com/compiling-a-kernel/
curl -OL http://xecdesign.com/downloads/linux-qemu/kernel-qemu
curl -o raspbian_latest.zip -L http://downloads.raspberrypi.org/raspbian_latest