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
class IPv6Packet: | |
def __init__(self, main_header_length, extension_headers): | |
self.main_header_length = main_header_length | |
self.extension_headers = extension_headers | |
def process_packet(packet): | |
total_length = packet.main_header_length | |
# Vulnerable loop: doesn't check for integer underflow | |
for header_length in packet.extension_headers: |
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
id: suspicious-extensions-rce | |
info: | |
name: Suspicious File Extensions - Potential RCE | |
author: Nullenc0de | |
severity: medium | |
description: Detects files with potentially suspicious extensions that could be used for Remote Code Execution (RCE). Scan your AppData folder. | |
file: | |
- extensions: |
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 | |
# Configuration | |
LOCAL_PORT=8834 | |
JUMP_SERVER="ubuntu@blah.compute-1.amazonaws.com" | |
JUMP_KEY="./ssh.pem" | |
NESSUS_SERVER="kali@x.x.x.x" | |
NESSUS_KEY="./ssh.pem" | |
NESSUS_PORT=8834 |
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
id: aws-cognito-misconfiguration-markers | |
info: | |
name: AWS Cognito Misconfiguration Markers | |
author: nullenc0de | |
severity: high | |
description: Detects potential AWS Cognito misconfigurations by searching for sensitive markers in JavaScript files. | |
reference: https://www.yassineaboukir.com/talks/NahamConEU2022.pdf | |
tags: aws,cognito,misconfiguration,javascript |
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
(ip.src in { | |
4.0.0.0/8 | |
9.0.0.0/8 | |
13.0.0.0/8 | |
20.0.0.0/8 | |
23.96.0.0/13 | |
40.0.0.0/8 | |
51.0.0.0/8 | |
52.0.0.0/8 | |
57.0.0.0/8 |
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
@echo off | |
setlocal enabledelayedexpansion | |
REM Check if BitLocker is enabled on drive C: | |
manage-bde -status C: | findstr /i "Conversion Status:\s*Fully Encrypted" | |
if %errorlevel% neq 0 ( | |
echo BitLocker is not enabled on drive C:. | |
goto continue | |
) else ( | |
echo BitLocker is enabled on drive C:. |
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 | |
# Function to add items to the todo list | |
add_to_todo() { | |
local item="$1" | |
echo "$item" >> "${folder_name}/todo.txt" | |
} | |
# Function to send alerts via webhook | |
send_alert() { |
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 | |
# Set the proxy server and port | |
PROXY_SERVER="127.0.0.1" | |
PROXY_PORT="8080" | |
# Install Proxychains4 | |
echo "Installing Proxychains4..." | |
sudo apt-get update | |
sudo apt-get install -y proxychains4 |
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 | |
apt install golang -y | |
GOROOT="/usr/local/go" | |
PATH="${PATH}:${GOROOT}/bin" | |
GOPATH=$HOME/go | |
PATH="${PATH}:${GOROOT}/bin:${GOPATH}/bin" | |
go install github.com/projectdiscovery/asnmap/cmd/asnmap@latest |
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 | |
declare -A companies | |
while read -r line; do | |
domain=$(echo "$line" | awk -F'[:[]' '{print $1}' | tr -d ' ') | |
company=$(echo "$line" | awk -F'[][]' '{print $2}' | tr -d ' ') | |
if [ -n "$domain" ] && [ -n "$company" ]; then | |
if [ -z "${companies[$company]}" ]; then |
NewerOlder