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 | |
somepipe=/var/log/rsyslog.pipe | |
while true | |
do | |
if read line <$somepipe | |
then | |
if grep -i --line-buffered -P '^(?=.*named)(?=.*cache)(?=.*denied)' $line; | |
then |
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
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 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 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 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 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 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 | |
## keep in mind this is only for RBENV | |
## https://www.darkoperator.com/installing-metasploit-in-ubunt | |
## APT things | |
sudo apt-get update | |
sudo apt-get y upgrade | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get -y install oracle-java8-installer | |
sudo apt-get -y install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev curl zlib1g-dev gawk bison libffi-dev libgdbm-dev libncurses5-dev libtool sqlite3 libgmp-dev gnupg2 dirmngr | |
## RBENV |
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
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 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 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
# Extracted from Rufus download list | |
cat > lista.txt << EOF | |
# https://software-download.microsoft.com/db/Win8.1_EnglishInternational_x64.iso?t=221fc72c-57bb-4a2b-8f8f-77fca7db1ae4&e=1575448143&h=6ac07c8c07bb436375a5441fdcd66f8a | |
https://software-download.microsoft.com/db/Win10_1909_EnglishInternational_x64.iso?t=2e248ab1-c5bf-4e2d-9911-68a794d36f2c&e=1575446410&h=11dbfb87e96c867ea1c29582a14d8e52 | |
https://software-download.microsoft.com/sg/Win10_1903_V2_EnglishInternational_x64.iso?t=7f562688-c1a3-4bfb-bde8-83fe37dbf9bb&e=1575446478&h=e3a7b5f82e6c258e17dddd72f1f54c83 | |
https://software-download.microsoft.com/db/Win10_1903_V1_EnglishInternational_x64.iso?t=b1ab85ae-efda-4268-95f2-8f07f923f2d7&e=1575446508&h=203ecd2e180c7c2c183602a89ed42237 | |
https://software-download.microsoft.com/sg/Win10_1809Oct_EnglishInternational_x64.iso?t=00d347b8-2c01-49e2-8473-decc87f259b7&e=1575446541&h=fd135075a0a29e6745faffbe0a3d00a7 | |
https://software-download.microsoft.com/pr/Win10_1809_EnglishInternational_x64.iso?t=0e10e699-488a-4d6a-932 |
OlderNewer