Skip to content

Instantly share code, notes, and snippets.

View JamesConlan96's full-sized avatar
💾

James Conlan JamesConlan96

💾
View GitHub Profile
@JamesConlan96
JamesConlan96 / whatSID.ps1
Last active August 15, 2023 11:22
A script to convert Windows SIDs to names
<#
.SYNOPSIS
A script to convert SIDs to names
.Description
A script to convert SIDs to names
.PARAMETER inFile
A file containing SIDs (1 per line)
#>
param (
@JamesConlan96
JamesConlan96 / bat2exeIEXP.bat
Last active August 9, 2023 09:20
Batch script to convert .bat scripts to .exe executables. Originally by Hackoo @ https://stackoverflow.com/questions/51098378/converting-bat-to-exe-with-no-additional-external-software-create-sfx (not my work)
;@echo off
;Title Converting batch scripts to file.exe with iexpress
;Mode 75,3 & color 0A
;Rem Original Script https://github.com/npocmaka/batch.scripts/edit/master/hybrids/iexpress/bat2exeIEXP.bat
;echo(
;if "%~1" equ "" (
;echo Usage : Drag and Drop your batch file over this script:"%~nx0"
;Timeout /T 5 /nobreak>nul & Exit
;)
;set "target.exe=%__cd__%%~n1.exe"
@JamesConlan96
JamesConlan96 / ntp6
Last active May 30, 2023 15:51
A script for checking NTP mode 6 queries as part of a pentest
#!/usr/bin/env bash
# NTP6
# A script for checking NTP mode 6 queries as part of a pentest
# $1: IP address
if [ "$#" -ne 1 ]; then
echo "Usage: ntp6 <ip_address>"
@JamesConlan96
JamesConlan96 / noninteractive_kali_update.sh
Last active May 11, 2023 08:57
A script to update a Kali Linux installation without prompting for user input
#!/usr/bin/env bash
sudo /usr/bin/env bash -p <<ENDROOT
export DEBIAN_FRONTEND=noninteractive
ex +"%s@DPkg@//DPkg" -cwq /etc/apt/apt.conf.d/70debconf
echo 'libc6:amd64 libraries/restart-without-asking boolean true' | debconf-set-selections
dpkg-reconfigure debconf -f noninteractive -p critical
apt-get update
apt-get --assume-yes dist-upgrade
ENDROOT
@JamesConlan96
JamesConlan96 / merger.py
Last active September 8, 2023 08:42 — forked from btoews/merger.py
Merging Nessus Files
#!/usr/bin/env python
# file: merger.py
# based off: http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/
# by: mastahyeti
# modified by: JamesConlan96
import argparse
import xml.etree.ElementTree as etree
import shutil