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 | |
############################################################################### | |
# | |
# Downloading akamai-cli | |
# | |
############################################################################### | |
filepath_to_download_to="akamai" |
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 | |
if [ $# -lt 1 ]; then | |
echo "[-] $0 [out-file]" | |
read -p "[*] Press any key to continue..." | |
fi | |
out_file="$1" | |
[ -z "$out_file" ] && out_file="out-akamai-waf-protected-domains.txt" | |
echo "[+] out_file = $out_file" |
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
<!-- | |
sysmon-config | A Sysmon configuration focused on default high-quality event tracing and easy customization by the community | |
Source version: 74 | Date: 2021-07-08 | |
Source project: https://github.com/SwiftOnSecurity/sysmon-config | |
Source license: Creative Commons Attribution 4.0 | You may privatize, fork, edit, teach, publish, or deploy for commercial use - with attribution in the text. | |
Fork version: <N/A> | |
Fork author: <N/A> | |
Fork project: <N/A> | |
Fork license: <N/A> |
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 re | |
import argparse | |
parser = argparse.ArgumentParser(description="Get the IPs and ranges from the file") | |
parser.add_argument("-f", "--infile", action="store", dest="infile", required=True, | |
help="Input file") | |
parser.add_argument("-e", "--exclude-results", action="store", dest="exclude_results", | |
help="exclude_results from output separated by commas") | |
args = parser.parse_args() |
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 | |
# Packet sniffer in python for Linux | |
# Sniffs only incoming TCP packet | |
# Code taken from: https://webcache.googleusercontent.com/search?q=cache:3DWFZjyjEsAJ:https://www.binarytides.com/python-packet-sniffer-code-linux/+&cd=1&hl=en&ct=clnk&gl=au | |
import socket, sys | |
from struct import * | |
import argparse | |
parser = argparse.ArgumentParser(description="Code to capture network packets in Linux machines in any interface") |
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/python | |
import sys | |
import os | |
import socket | |
from struct import * | |
import argparse | |
NUM_PACKETS_TO_CHECK_DISK_USAGE = 1000 | |
FREE_DISK_SPACE_TO_LEAVE = 1.0 |
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 python3 | |
import jsbeautifier | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description='Beautify input JS file to grep easily') | |
parser.add_argument("-f", "--file", action="store", dest="infile", | |
help="input jS file to beautify", | |
required=True) | |
parser.add_argument("-o", "--outfile", action="store", dest="outfile", | |
help="output jS file to beautify", |
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 python3 | |
import sys | |
import csv | |
import os | |
import json | |
import subprocess | |
import shlex | |
import requests | |
from xml.etree import ElementTree |
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
<# .SYNOPSIS | |
Get the Domain Object's Permissions in an AD deployed environment in a file called output.txt in the current folder | |
Requires ActiveDirectory module available through the "Remote Server Administration Toolset" in Windows user workstations. | |
Installed by default on a server. | |
On both the server and workstation, enable Active Directory Module for Windows Powershell from the control panel before | |
running the script below. | |
#> | |
Import-Module ActiveDirectory | |
$DC = Get-ADDomainController | |
$primaryDN = $DC.DefaultPartition |
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
#include <iostream> | |
#include <windows.h> | |
#include <winternl.h> | |
#define CMD_TO_SHOW "powershell.exe -NoExit -c Write-Host 'This is just a friendly argument, nothing to see here'" | |
#define CMD_TO_EXEC L"powershell.exe -NoExit -c Write-Host Surprise, arguments spoofed\0" | |
typedef NTSTATUS(*NtQueryInformationProcess2)( | |
IN HANDLE, | |
IN PROCESSINFOCLASS, |