Skip to content

Instantly share code, notes, and snippets.

@0xhexmex
0xhexmex / install-drupal.sh
Created March 21, 2019 19:00
Install drupal on a linux box
# Another gem from Joaquim Nogueira (@lkys37en)
#!/bin/bash
#Reference:https://www.valuebound.com/resources/blog/Installing-drupal-with-drush-the-basics
#Reference:https://websiteforstudents.com/install-drupal-cms-on-ubuntu-16-04-lts-with-apache2-mariadb-php-7-1-and-lets-encrypt-ssl-tls/
print_usage() {
echo ""
echo "Usage: $0 -v drupal-8.5.0 -p Welcome1"
echo
@0xhexmex
0xhexmex / joindomain.sh
Created March 21, 2019 13:48
Join a linux host to an AD domain
# Created by Joaquim Nogueira (@lkys37en), March 2019. I take no credit for this awesome work :)
#!/bin/bash
print_usage() {
echo ""
echo "A huge thank you to Brax from proslackers for helping me with this script, thank you!"
echo ""
echo "Usage: $0 -d lkylabs.com -u Administrator -p Welcome1! -o OU=Linux-Servers,OU=Servers,OU=Computers,OU=lkylabs,DC=lkylabs,DC=com -s 'lkylabs\\domain^admins lkylabs\\linux^admins' -x 'lkylabs\\domain^admins'"
echo
@0xhexmex
0xhexmex / Get-KerberosKeytab.ps1
Created February 14, 2019 21:50 — forked from raandree/Get-KerberosKeytab.ps1
Parses Kerberos Keytab files
param(
[Parameter(Mandatory)]
[string]$Path
)
#Created by Pierre.Audonnet@microsoft.com
#
#Got keytab structure from http://www.ioplex.com/utilities/keytab.txt
#
# keytab {
@0xhexmex
0xhexmex / FindHTTPinNessus.ps1
Last active December 1, 2018 22:05 — forked from nullbind/FindIIS6inNessus.ps1
This script can be used to extract a list of HTTP servers from .nessus files.
# This script can be used to extract a list of HTTP servers from .nessus files.
# Original Author: Scott Sutherland, NetSPI 2017
# Modified by KM 11/2018 to extract a list of all HTTP servers, not just IIS6
# Instructions: Run the script in a directory containing only .nessus files. Super dirty/slow, but functional.
# Create an output table
$outputtbl =New-Object System.Data.DataTable
$outputtbl.Columns.Add("IpAddress") | Out-Null
$outputtbl.Columns.Add("WebServerVersion") | Out-Null
#!/usr/bin/python
import socket
import sys
import os
host = 'TARGET IP ADDRESS HERE'
port = 4555
try: