Skip to content

Instantly share code, notes, and snippets.

View adde88's full-sized avatar
🎯
Focusing

Andreas Nilsen adde88

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am adde88 on github.
  • I am zylla (https://keybase.io/zylla) on keybase.
  • I have a public key ASBamASN3fRHISMXzdhMjbmH9mYqz5EWZujkzsyO79BZmQo

To claim this, I am signing this object:

@adde88
adde88 / git-pull-all.sh
Last active June 19, 2017 07:24
Git Pull - Will scan sub-folders for a git repo. and then uses git pull on everyone to keep them updated
#!/bin/bash
#
# Recursively git pull on repos.
# Made by Zylla - adde88@gmail.com
#
# This script will search your current folder recursively for git repositories, and then execute: "git pull" on those repos. to keep them up to date
# I've been using this script inside my World of Warcraft AddOns folder, to keep some private AddOns up-to date.
#
# So i've placed this script inside my "World Of Warcraft/Interface/AddOns" folder
#
@adde88
adde88 / forwarder.sh
Last active July 13, 2017 18:49
Iptables script. Port translation. OpenWRT. Gateway
#!/bin/sh
#
# IPTABLES - HELPER SCRIPT
# MADE BY: ZYLLA - adde88@gmail.com
#
# I made this for my 4G router, with OpenWRT.
# But it may aswell work on a normal Linux-box with two NIC's acting as a gateway.
#
IPORT="$1" # This is the port on the internet-side, which the outside clients will connect to.
DPORT="$2" # This is the port on the LAN side of your network, iptables will translate IPORT to this port.
@adde88
adde88 / 99setproxy
Last active March 17, 2018 11:12
Script for NetworkManager that detects your current network and changes your apt-proxy file if it detect a specific network.
#!/bin/bash
# Script made by Andreas Nilsen / Zylla - adde88@gmail.com
#
# apt proxy script for NetworkManager
# This script will scan /etc/resolv.conf for a specific network.
# If it detects this network, then it makes changes to your apt proxy.
# Perfect to automatically make it set your apt-proxy when you're at home, and remove it when you're on a different network.
# I use it on my laptop, to make it connect to my apt-cache-ng server when i'm at home.
#
@adde88
adde88 / vMetaDate.sh
Created July 23, 2017 09:11 — forked from cryptolok/vMetaDate.sh
small tool to retreive vk.com (vkontakte) users hidden metadata (state, access, dates, counts, etc) anonymously (without login)
#!/bin/bash
# small tool to retreive vk.com (vkontakte) users hidden metadata (state, access, dates, counts, etc) anonymously (without login)
# sudo apt install curl
parse(){
local IFS=\>
read -d \< CELL VALUE
}
@adde88
adde88 / ARProtect
Created July 23, 2017 09:12 — forked from cryptolok/ARProtect
ultimate, simple and minimalistic UNIX ARP-MITM protection
#!/bin/bash
# ultimate, simple and minimalistic UNIX ARP-MITM protection by making gateway hardware address static just after DHCP and automatically after interface start
# place in /etc/network/if-up.d/ARProtect
if [[ "$IFACE" != "lo" && "$MODE" = "start" && "$ADDRFAM" = *[N,n]et* ]]
then
IP_GATEWAY=$(ip route | grep default | grep $IFACE | cut -d ' ' -f 3)
MAC=$(ip neigh show $IP_GATEWAY | cut -d ' ' -f 5)
arp -s $IP_GATEWAY $MAC
@adde88
adde88 / FireHack.cpp
Created November 16, 2017 13:18 — forked from l0l1dk/FireHack.cpp
FireHack Exports Interface - C++
#include "FireHack.hpp"
#include <string>
#include <Psapi.h>
using std::runtime_error;
using std::string;
#define IMPORT(Name) ::FireHack::Imports::Name = ::FireHack::Imports::Get<decltype(::FireHack::Imports::Name)>(#Name)
@adde88
adde88 / diffie-hellman.lua
Created November 25, 2017 14:08 — forked from rangercyh/diffie-hellman.lua
diffe-hellman algorithm simple code
--[[
diffie-hellman算法简单代码
]]
local low = 10 --约定的随机数集合
local high = 20
local Alice = {}
function Alice:CreateSecret()
self.g = 2
self.p = 1019 --素数
@adde88
adde88 / inject.c
Created December 18, 2017 18:07 — forked from hfiref0x/inject.c
Process Doppelgänging
//
// Ref = src
// https://www.blackhat.com/docs/eu-17/materials/eu-17-Liberman-Lost-In-Transaction-Process-Doppelganging.pdf
//
// Credits:
// Vyacheslav Rusakov @swwwolf
// Tom Bonner @thomas_bonner
//
#include <Windows.h>
@adde88
adde88 / Makefile
Created March 16, 2018 12:15
OpenWRT Makefile for Reaver
#
# Copyright (C) 2012-2015 OpenWrt.org
# Copyright (C) 2017 Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk