View TL-WN722N_monitormode.sh
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
# Credits: https://www.hackster.io/thatiotguy/enable-monitor-mode-in-tp-link-tl-wn722n-v2-v3-128fc6 | |
# Tested on Kali Linux 2022.3 | |
# Commands used to Setup the Adapter from aircrack repository | |
apt update | |
apt install bc -y | |
rmmod r8188eu.ko | |
git clone https://github.com/aircrack-ng/rtl8188eus | |
cd rtl8188eus | |
sudo -i | |
echo "blacklist r8188eu" > "/etc/modprobe.d/realtek.conf" |
View txpower.sh
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 | |
# credits: https://miloserdov.org/?p=337 | |
# example_ | |
# ./txpower.sh wlan0 | |
sudo iw reg set BZ | |
sudo ip link set $1 down | |
sudo iw dev $1 set txpower fixed 30mBm | |
sudo iw $1 set monitor control | |
sudo ip link set $1 up | |
sudo iw dev |
View tscard-esample.ts
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
// example for typescript library TsCard | |
// https://github.com/lewixlabs/TsCard | |
// command to use: | |
// tsc --target ES5 example.ts | |
import { TsCard } from './index'; | |
import Reader, { ApduResponse } from './reader'; | |
import SmartCard from './cards/smartcard'; | |
import { Sle } from './cards/memorycard'; | |
import Utilities from './utilities'; |
View install_go_pi.sh
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
cd $HOME | |
FileName='go1.11.1.linux-armv6l.tar.gz' | |
wget https://dl.google.com/go/$FileName | |
sudo tar -C /usr/local -xvf $FileName | |
cat >> ~/.bashrc << 'EOF' | |
export GOPATH=$HOME/go | |
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin | |
EOF | |
source ~/.bashrc |
View git-clearHistory
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
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
View OAuth2Custom.cs
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
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Xamarin.Auth; | |
namespace MyNetStandardLibrary.OAuth2 | |
{ | |
// inspired by https://lostechies.com/jimmybogard/2014/11/13/mobile-authentication-with-xamarin-auth-and-refresh-tokens/ | |
public class CustomOAuth2Authenticator : OAuth2Authenticator | |
{ |