This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Description: Convert a base64 encoded PowerShell command to a VBA expression that bypasses the 255 character limit. | |
| # Usage 1: cat reverse-shell.ps1 | iconv -t UTF-16LE | base64 -w 0 | ./powershell-to-macro.sh | |
| # Usage 2: ./powershell-to-macro.sh -c "<base64 encoded powershell command> | |
| set -euo pipefail | |
| usage() { | |
| echo "Usage: $0 [-c string]" | |
| echo " echo 'text' | $0" |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import time | |
| import string | |
| import requests | |
| data: dict = { | |
| 'username': '', | |
| 'password': 'password', | |
| 'login': 'Login' |
This file contains hidden or 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
| [[rules]] | |
| id = "md5-hash" | |
| description = "MD5 hash detected, ignoring images" | |
| regex = '''\b[a-fA-F0-9]{32}\b''' | |
| severity = "medium" | |
| [[rules.allowlists]] | |
| paths = [ | |
| ".*\\.jpg$", | |
| ".*\\.png$" | |
| ] |
This file contains hidden or 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
| FROM python:2.7-alpine | |
| # Install build tools and dependencies | |
| RUN apk add --no-cache \ | |
| build-base \ | |
| libffi-dev \ | |
| openssl-dev \ | |
| python2-dev \ | |
| vim |
This file contains hidden or 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
| asdf |
This file contains hidden or 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
| '--------------------------------------------------------------------------------------- | |
| ' Module : cCallAPIByName | |
| ' DateTime : 31/08/2008 19:40 | |
| ' Author : Cobein | |
| ' Mail : [email protected] | |
| ' WebPage : http://www.advancevb.com.ar | |
| ' Purpose : Call APIs by name | |
| ' Usage : At your own risk | |
| ' Requirements: None | |
| ' Distribution: You can freely use this code in your own |
This file contains hidden or 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/sh | |
| biber presentation && \ | |
| pdflatex -shell-escape presentation.tex && pdflatex -shell-escape presentation.tex |
This file contains hidden or 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
| Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart | |
| New-PSDrive -PSProvider FileSystem -Name M -Root \\192.168.8.101\export\shared -Persist |
This file contains hidden or 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
| choco install zoxide nvm 7zip.install pyenv-win git neovim starship vscode googlechrome powershell-core powertoys winfsp gsudo rclone notepadplusplus |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import time | |
| import numpy as np | |
| N = 4096 | |
| A = np.random.randn(N, N).astype(np.float32) | |
| B = np.random.randn(N, N).astype(np.float32) | |
| # number of multiplications |
NewerOlder