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 | |
# - https://github.com/aircrack-ng/rtl8188eus/issues/234 | |
# Tested on Kali Linux 2022.3 | |
# Commands used to Setup the Adapter from aircrack repository | |
sudo apt update | |
sudo apt install bc -y | |
sudo rmmod r8188eu.ko | |
git clone https://github.com/gglluukk/rtl8188eus | |
cd rtl8188eus |
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 |
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'; |
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 |
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 [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
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 | |
{ |