Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
use strict;
use warnings;
my $i = 0;
my $start_position = 0;
my $end_position = 8;
@0xbadjuju
0xbadjuju / hter.pl
Created January 27, 2020 20:39
vulnserver.exe HTER
#!/usr/bin/perl
use strict;
use warnings;
use Encode qw/encode/;
use Socket;
my $target = inet_aton("192.168.99.144");
my $port = 9999;
@0xbadjuju
0xbadjuju / Parse_Passwords.ps1
Last active July 8, 2020 22:09
Parse_Passwords.ps1
################################################################################
#
################################################################################
function Create-Table
{
param (
[string] $DB_Path
)
$connection = New-Object System.Data.OleDb.OleDbConnection
@0xbadjuju
0xbadjuju / customqueries.json
Created August 14, 2019 17:40 — forked from seajaysec/customqueries.json
bloodhound custom queries - there may be dupes
{
"queries": [
{
"name": "Find all Domain Admins",
"queryList": [
{
"final": true,
"query":
"MATCH (n:Group) WHERE n.objectsid =~ {name} WITH n MATCH p=(n)<-[r:MemberOf*1..]-(m) RETURN p",
"props": {
@0xbadjuju
0xbadjuju / verify_weak_ciphers.sh
Created August 30, 2018 13:57
Verify Weak Ciphers
#!/bin/bash
if [ -f ${1}_false_positive.txt ]
then
echo > ${1}_false_positive.txt
fi
if [ -f ${1}_verified.txt ]
then
echo > ${1}_verified.txt
@0xbadjuju
0xbadjuju / Check-XFrameOptions
Created August 23, 2018 18:18
Checks if the X-Frame-Options header is present
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
@0xbadjuju
0xbadjuju / Check-XssStatus
Created August 22, 2018 21:10
Check if a string exists in a response from a GET request
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
@0xbadjuju
0xbadjuju / Check-ServerStatus.ps1
Created August 21, 2018 15:20
Verify Apache Server-Status is Accessible
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
@0xbadjuju
0xbadjuju / Excel Formulas
Last active January 29, 2019 03:08
Excel Formulas
Joint
=IF(D15<19050,D15*0.1,
IF(D15<77400,1905+(0.12*(D15-19050)),
IF(D15<165000,8907+(0.22*(D15-77400)),
IF(D15<315000,28179+(0.24*(D15-165000)),
IF(D15<400000,64179+(0.32*(D15-315000)),
IF(D15<600000,91379+(0.35*(D15-400000)),
161379+(0.37*(D15-600000))
))))))
#!/bin/sh
#
# Encryption algorithms: DES, Triple-DES, AES/128, AES/192 and AES/256
ENCLIST="1 5 7/128 7/192 7/256"
# Hash algorithms: MD5 and SHA1
HASHLIST="1 2"
# Authentication methods: Pre-Shared Key, RSA Signatures, Hybrid Mode and XAUTH
AUTHLIST="1 3 64221 65001"
# Diffie-Hellman groups: 1, 2 and 5
GROUPLIST="1 2 5"