Skip to content

Instantly share code, notes, and snippets.

View adde88's full-sized avatar
🎯
Focusing

Andreas Nilsen adde88

🎯
Focusing
View GitHub Profile
@adde88
adde88 / sqlmap-tamper-scripts-evaluation.md
Created May 25, 2019 14:13 — forked from mgeeky/sqlmap-tamper-scripts-evaluation.md
SQLMap Tamper scripts evaluation against F5 Big-IP ASM WAF

SQLMap Tamper scripts evaluation against F5 Big-IP ASM WAF

The below table represents results of tests launched against F5 Big-IP ASM WAF appliance in it's XX version of YY and ZZ version of XY

Below names are to be passed to the --tamper= parameter of sqlmap.

The column Violation Rating represents most dominant rating of topmost 20 Requests observed by F5 in it's Security>>Event Logs:Application:Requests view.

The scale is 0-5.

@adde88
adde88 / iface.c.patch
Created March 1, 2019 10:03
Kernel patch: Ignore 802.11d TX power frames, when setting "fixed TX power"
This will force the linux kernel to ignore 802.11d frames sent by acces spoints.
This will only work when TX power is set to fixed. (iwconfig wlan0 txpower fixed)
Andreas Nilsen <adde88@gmail.com> / @adde88
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -65,7 +65,8 @@ bool __ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata)
if (sdata->user_power_level != IEEE80211_UNSET_POWER_LEVEL)
power = min(power, sdata->user_power_level);
#!/bin/bash
# Private script i use while booting a Live distribution of Linux (Kali)
# to fix my grub. Windows seems to be removing it every now and then.
# Which is annoying as hell...
# Feel free to customize it to your own needs if nessecary.
# At least the correct root partition and EFI partition needs to be edited.
# Zylla - <adde88@gmail.com>
#
sudo mount /dev/sda6 /mnt
sudo mount /dev/sda2 /mnt/boot/efi
@adde88
adde88 / Makefile
Created August 26, 2018 19:14
mdk4 - LEDE
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mdk4
@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
@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 / 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 / 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 / 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 / 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
}