This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
diffie-hellman算法简单代码 | |
]] | |
local low = 10 --约定的随机数集合 | |
local high = 20 | |
local Alice = {} | |
function Alice:CreateSecret() | |
self.g = 2 | |
self.p = 1019 --素数 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# |