View foxyproxy-Burpsuite-patterns_excludeFireFox.json
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
{ | |
"logging": { | |
"size": 100, | |
"active": true | |
}, | |
"mode": "patterns", | |
"om8ch61619470734653": { | |
"type": 1, | |
"color": "#66cc66", | |
"title": "Burpsuite", |
View server.py
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 python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
View Automating scanning with fish shell
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
=======================HOST DISCOVERY=========================================== | |
Host discovery con PING: | |
$ for octect in (seq 0 254) | |
echo "Pinging [X.X.X.$octect]" | |
ping -c 2 10.150.150.$octect | grep "bytes from" | awk '{print $4}' | uniq -d | cut -d ":" -f 1 | tee -a targets.list | |
end | |
Host discovery con NMAP IMCP o ARP | |
$sudo nmap -vv -sn -PE 10.150.150.0/24 -oG HOSTDISCOVERY_ICMP.gnmap |
View setupmykl.sh
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 | |
#LAST UPDATE: 30/03/2020 | |
#LAS CHANGE: added pkg-config. | |
RED='\033[0;31m' | |
GRN='\033[0;32m' | |
YLL='\033[1;33m' | |
NC='\033[0m' # No Color | |
#FILE NAMES | |
PTROOTDIR="pentestTools" | |
PTDIRS="{lists,tools,shells/{klbuiltin,}}" |
View hilo.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
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <pthread.h> | |
typedef struct mamadas{ | |
int theadID; | |
char somerandombytes[1024]; | |
}SACA; | |
/*Otro ejemplo de hilos en C*/ |
View getipfromxml.py
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/local/bin/python | |
import xml.etree.ElementTree as etree | |
import sys | |
#Usage: getipfromxml.py <filename.xml> | |
def parse_xml(filename): | |
"""Given an XML filename, reads and parses the XML file and passes the | |
the root node of type xml.etree.ElementTree.Element to the get_host_data | |
function, which will futher parse the data and return a list of lists | |
containing the scan data for a host or hosts.""" | |
try: |
View udpflood.pl
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/perl | |
############## | |
# udp flood. | |
############## | |
use Socket; | |
use strict; | |
if ($#ARGV != 3) { | |
print "${0} <ip> <port> <size> <time>\n\n"; | |
print " Port=0: use random ports\n"; |
View ejemplo_hilos.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
#include <stdio.h> | |
#include <pthread.h> | |
void* f_hilo(void* params){ | |
int *int_params=(int *)params; | |
printf("\n valor %d", *int_params); | |
//pthread_exit(NULL); Se elimina debido a: | |
/* If the | |
start_routine returns, the effect is as if there was an implicit call to pthread_exit() using | |
the return value of start_routine as the exit status.*/ |
View cis_centos7_hardening.sh
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 | |
MODPROBEFILE="/etc/modprobe.d/CIS.conf" | |
#MODPROBEFILE="/tmp/CIS.conf" | |
ANSWER=0 | |
analyze_part () { | |
if [ "$#" != "1" ]; then | |
options="$(echo $@ | awk 'BEGIN{FS="[()]"}{print $2}')" | |
echo "[+]$@" | |
apply_part_rule $1 |
View brew-update-notifier.sh
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 | |
# | |
# Notify of Homebrew updates via Notification Center on macOS | |
# Forked from: https://gist.github.com/streeter/3254906 | |
# https://github.com/julienXX/terminal-notifier | |
# https://github.com/vjeantet/alerter | |
# Author: Ivan Sanchez https://todmephis.cf/ | |
# Twetter: https://twitter.com/todmephis | |
# Requires: terminal-notifier, alerter. Install with: | |
# brew install terminal-notifier |
NewerOlder