Skip to content

Instantly share code, notes, and snippets.

View fr34k8's full-sized avatar
🎯
Focusing

fr34k8

🎯
Focusing
View GitHub Profile
@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 / 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'

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 / 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
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 / 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
@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 | #
# \________|\______/ \______/ \____/ \__| \__| \__| \____/ #
#########################################################################
for /F "tokens=*" %%A in (url.txt) do (
"C:\Program Files (x86)\Netsparker\Netsparker.exe" /a /silent /p %Profile% /u http://%%A /rt "Detailed Scan Report" /r "scan_%%A_80_report.html"
"C:\Program Files (x86)\Netsparker\Netsparker.exe" /a /silent /p %Profile% /u https://%%A /rt "Detailed Scan Report" /r "scan_%%A_443_report.html"
)
@fr34k8
fr34k8 / aptly-mirror.sh
Created September 22, 2017 14:44 — forked from EntropyWorks/aptly-mirror.sh
This is my script for mirroring a bunch of apt repos. This only touches the very basics of what (aptly)[http://www.aptly.info/] can do.
#!/bin/bash
#
# Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
# Authored by Yazz D. Atlas <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
@fr34k8
fr34k8 / freebsd10_cheatsheet.md
Created October 4, 2017 09:21
FreeBSD Cheatsheet