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
| Write-Output "`nStarting Tools Provisioning" | |
| function Safe-RemoveItem($path) { | |
| if (!(Test-Path $path)) { return } | |
| Get-ChildItem -Path $path -Recurse -Force -ErrorAction SilentlyContinue | | |
| ForEach-Object { try { $_.IsReadOnly = $false } catch {} } | |
| $maxRetries = 5; $retry = 0 | |
| do { | |
| try { Remove-Item -Recurse -Force $path -ErrorAction Stop; return } | |
| catch { $retry++; Start-Sleep -Milliseconds 500 } |
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
| Write-Output "`nStarting Tools Cleanup" | |
| function Safe-RemoveItem($path) { | |
| if (!(Test-Path $path)) { return } | |
| Get-ChildItem -Path $path -Recurse -Force -ErrorAction SilentlyContinue | | |
| ForEach-Object { try { $_.IsReadOnly = $false } catch {} } | |
| $maxRetries = 5; $retry = 0 | |
| do { | |
| try { Remove-Item -Recurse -Force $path -ErrorAction Stop; return } | |
| catch { $retry++; Start-Sleep -Milliseconds 500 } |
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 python | |
| # CSV HEADER DATA FROM DRILLDOWN (REPORT FROM RESILIENT) | |
| # _time,Company,dest,IP,Country,request,User Agent,Response Code,Response Description,http_referer | |
| # Tested: | |
| # Python 3.7.5 | |
| import sys | |
| import csv | |
| import os | |
| import urllib3 |
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
| import sys | |
| from string import digits, ascii_uppercase, ascii_lowercase | |
| from itertools import product | |
| palabras = digits + ascii_uppercase + ascii_lowercase | |
| dimension=int(sys.argv[1]) | |
| for combinacion in product(palabras, repeat=dimension): | |
| print ''.join(combinacion) |
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/bash | |
| # SIMPLE FUZZER made for a bash only CTF | |
| # To fuzz UDP port change /dev/tcp for /dev/udp | |
| if [ $# -lt 3 ] | |
| then | |
| echo "Usage: bash fuzzer.bash IP PORT SIZE" | |
| exit | |
| fi |
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 python | |
| # -*- coding: utf-8 -*- | |
| from scapy.all import * | |
| import sys | |
| import calendar | |
| import time | |
| import syslog | |
| def capturaDNS(paquete): |
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 ruby | |
| # This script takes advantage of a feature from this Technical Note: | |
| # https://www.axis.com/en/techsup/cam_servers/tech_notes/telnet_support.htm | |
| # and a default pair of user/password unchanged | |
| # If the reboot command is not enabled as ftp command | |
| # you must wait until some kind of camera reboot | |
| require 'net/ftp' |
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 | |
| echo > oui.txt | |
| if [ -z "$*" ]; then | |
| echo "Usage: mac.sh 00:00:00" | |
| exit | |
| fi | |
| wget -t 0 -c http://standards.ieee.org/develop/regauth/oui/oui.txt -O oui.txt | |
| MAC=`echo $1|sed s/\:/\-/g` | |
| grep -A 5 ${MAC^^} oui.txt |
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
| sudo add-apt-repository ppa:adiscon/v8-stable | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get dist-upgrade # Force rsyslog update | |
| # On a new terminal | |
| logger Testing syslog interaction with new version && sudo tail -c 10000 /var/log/syslog | |
| # Use the ompipe plugin to redirect everything and begin our tests, adding this to the end of file: | |
| ## rsyslog to fifo |
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/bash | |
| somepipe=/var/log/rsyslog.pipe | |
| while true | |
| do | |
| if read line <$somepipe | |
| then | |
| if grep -i --line-buffered -P '^(?=.*named)(?=.*cache)(?=.*denied)' $line; | |
| then |