Skip to content

Instantly share code, notes, and snippets.

#Wireless Penetration Testing Cheat Sheet

##WIRELESS ANTENNA

  • Open the Monitor Mode
root@uceka:~# ifconfig wlan0mon down
root@uceka:~# iwconfig wlan0mon mode monitor
root@uceka:~# ifconfig wlan0mon up
@richardsonjf
richardsonjf / foxyproxyBB.json
Created June 25, 2020 22:18 — forked from 0xatul/foxyproxyBB.json
firefox foxy proxy settings for BB stuff
{
"84kr3q1592995213323": {
"type": 1,
"color": "#cc883a",
"title": "Burp",
"active": true,
"address": "127.0.0.1",
"port": 8080,
"proxyDNS": false,
"username": "",
@richardsonjf
richardsonjf / js-crypto-libraries.md
Created September 28, 2021 18:11 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@richardsonjf
richardsonjf / FormatPowerQuery.csx
Created January 17, 2023 21:14 — forked from data-goblin/FormatPowerQuery.csx
A Tabular Editor C# script to format Power Query code in table M Expressions. Can be adjusted to work with Shared Expressions or Source Expressions of incremental refresh tables.
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
// URL of the powerqueryformatter.com API
string powerqueryformatterAPI = "https://m-formatter.azurewebsites.net/api/v2";
// HttpClient method to initiate the API call POST method for the URL
@richardsonjf
richardsonjf / CountModelObjects.csx
Created January 17, 2023 21:14 — forked from data-goblin/CountModelObjects.csx
A Tabular Editor script to count model objects and output their results to a pop-up info box, to give a quick overview of the data model opened.
// Count calculation groups & calculation items
int _calcgroups = 0;
int _calcitems = 0;
foreach ( var _calcgroup in Model.CalculationGroups )
{
_calcgroups = _calcgroups + 1;
foreach ( var _item in _calcgroup.CalculationItems )
{
_calcitems = _calcitems + 1;
   }
@richardsonjf
richardsonjf / all-measure-dependencies_mermaid.csx
Created January 17, 2023 21:21 — forked from data-goblin/all-measure-dependencies_mermaid.csx
A Tabular Editor C# script to get all measures in a model as a mermaid diagram syntax.
string dependancies = "flowchart LR\n%% Measure dependancy mermaid flowchart";
foreach(var _measures in Model.AllMeasures )
{
var _upstream = _measures.DependsOn;
var _upstream_measures = _upstream.Measures.OfType<Measure>().Select(c => c).Distinct();
dependancies += string.Format("\r\n\n%% [{1}] Dependancies:\n\t{0}[\"{1}\"]",
@richardsonjf
richardsonjf / powerbi-admin-get-workspaces.py
Created January 17, 2023 21:22 — forked from data-goblin/powerbi-admin-get-workspaces.py
Python script to get all workspaces managed in a tenant and containing objects (users, artifacts) with the Power BI Admin REST API
#########################################################################################
# Authentication - Replace string variables with your relevant values
#########################################################################################
import json, requests, pandas as pd
try:
from azure.identity import ClientSecretCredential
except Exception:
!pip install azure.identity
from azure.identity import ClientSecretCredential
@richardsonjf
richardsonjf / selected-measure-dependencies_mermaid.csx
Created January 17, 2023 21:26 — forked from data-goblin/selected-measure-dependencies_mermaid.csx
A Tabular Editor C# script to generate a context-dependent mermaid diagram (flowchart) of measure dependencies based on the selected measure.
// This code is still WIP, it doesn't entirely filter the lineage. Feel free to make adjustments.
string dependancies = "flowchart LR\n%% Measure dependancy mermaid flowchart";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
foreach(var _measures in Model.AllMeasures )
{
// Deep lineage for upstream measures
@richardsonjf
richardsonjf / selected-measure-dependancies_devops_mermaid.csx
Created January 17, 2023 21:28 — forked from data-goblin/selected-measure-dependancies_devops_mermaid.csx
A Tabular Editor C# script to generate a context-dependent mermaid diagram for Azure DevOps Wikis (flowchart) of measure dependencies based on the selected measure.
// This code is still WIP, it doesn't entirely filter the lineage. Feel free to make adjustments.
string dependancies = "::: mermaid\ngraph LR;\n%% Measure dependancy mermaid flowchart";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
foreach(var _measures in Model.AllMeasures )
{
// Deep lineage for upstream measures
@richardsonjf
richardsonjf / Producer Consumer TPL
Created March 10, 2023 14:22 — forked from markheath/Producer Consumer TPL
LINQPad demo of the producer consumer pattern with TPL dataflow including back-pressure
<Query Kind="Statements">
<Namespace>System.Collections.Concurrent</Namespace>
<Namespace>System.Threading.Tasks</Namespace>
<Namespace>System.Threading.Tasks.Dataflow</Namespace>
</Query>
var produceSpeed = TimeSpan.FromSeconds(0.5);
var produceCount = 20;
var consumeSpeed = TimeSpan.FromSeconds(2);
var maxParallelConsume = 4;