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
#!/usr/bin/env bash | |
if [[ $(id -u) -ne 0 ]] ; then echo "Run with sudo!" ; exit 1 ; fi | |
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
sudo apt install -y python3-pip libfuzzy-dev libssl-dev automake libtool make cmake gcc pkg-config flex bison libmagic-dev | |
if [ ! -f "/usr/local/bin/pycdc" ]; then | |
git clone https://github.com/zrax/pycdc.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
import string | |
from capstone import * | |
modes = [CS_MODE_32, CS_MODE_64] | |
for mode in modes: | |
md = Cs(CS_ARCH_X86, mode) | |
printables = string.printable[:-5] | |
valid = 0 | |
for c in printables: |
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 | |
# Installer for https://github.com/WerWolv/ImHex | |
sudo apt install wget libcapstone3 libglfw3 libmbedcrypto3 libmbedtls12 | |
cd /tmp | |
wget https://nightly.link/WerWolv/ImHex/workflows/build/master/Linux%20ELF.zip | |
unzip Linux\ ELF.zip -d tmpimhex | |
cd tmpimhex | |
sudo cp bin/imhex /usr/bin |
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
import sys | |
import os | |
from os.path import isdir | |
from collections import defaultdict | |
from signify.signed_pe import SignedPEFile | |
def is_pe(file_path: str) -> bool: | |
try: |
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
#!/usr/bin/python3 | |
import sys | |
from datetime import datetime, timedelta, timezone | |
def get_remaining_time(total_seconds: int) -> str: | |
months, remainder = divmod(total_seconds, 2592000) | |
days, remainder = divmod(remainder, 86400) | |
hours, remainder = divmod(remainder, 3600) | |
minutes, seconds = divmod(remainder, 60) |
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
import os | |
import json | |
import sys | |
import time | |
from multiprocessing import Pool | |
from os.path import isdir, abspath, join | |
from typing import List, Dict | |
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
function check_valid_jsons_folder() { | |
if [ -d "$1" ]; then | |
find $1 -type f -iname "*json" | while read p; do if ! jq empty < $p > /dev/null 2>&1; then echo '> Invalid JSON: '$p; fi; done | |
else | |
echo "'$1' is not a directory!" | |
fi | |
} |
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 | |
# /usr/sbin/libgvc6-config-update | |
# Use one of: circo dot fdp neato osage patchwork sfdp twopi | |
declare -a graphviz=("circo" "dot" "fdp" "neato" "osage" "patchwork" "sfdp" "twopi") | |
if [ -f "$1" ]; then | |
pardir="$(dirname "$1")" | |
bname="$(basename "$1")" | |
for i in "${graphviz[@]}" |
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
$scriptPath = Split-Path -parent $MyInvocation.MyCommand.Definition | |
$outputTxtFile = Join-Path -Path $scriptPath -ChildPath "hashes.txt" | |
Get-ChildItem -Path "C:\Program Files (x86)\Steam\steamapps\common" -recurse -include *.exe | foreach-object { | |
(Get-FileHash $_.FullName -Algorithm SHA256).Hash | Out-File -Encoding Ascii -append $outputTxtFile | |
} | |
Write-Host ("Results written in: {0}" -f $outputTxtFile) |
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 | |
wget https://nordvpn.com/ovpn/ | |
cat index.html | grep udp1194.ovpn | cut -d \" -f2 > configlinklist.txt | |
rm index.html | |
mkdir nordvpnconfigs/ | |
xargs wget -P nordvpnconfigs/ < configlinklist.txt |
NewerOlder