Skip to content

Instantly share code, notes, and snippets.

@eddiez9
eddiez9 / typeFile.ahk
Created April 19, 2019 04:32
Autohotkey to type a file's contents
^j::
SetKeyDelay, 1
loop,read,C:\test.txt
{
Send,{raw}%a_loopReadLine%
Sleep, 100
SendInput,{enter}
Sleep, 50
}
@eddiez9
eddiez9 / frida.sh
Last active August 11, 2019 12:51
Frida command to bypass cert pinning
frida --codeshare pcipolloni/universal-android-ssl-pinning-bypass-with-frida -U -f com.apk --no-pause
@eddiez9
eddiez9 / audit.bat
Created September 13, 2019 00:37
Grab NTDS.dit by running this on a DC
@echo off
ntdsutil "activate instance ntds" ifm "create full C:\audit" quit quit
exit
@eddiez9
eddiez9 / certreq.bat
Created October 12, 2019 02:47
Sign an externally generated certificate using Windows CA with webserver template
certreq -attrib "CertificateTemplate:webserver" -submit test.req
@eddiez9
eddiez9 / openssl.cnf
Last active November 21, 2019 01:04
Allow all cipher suites/ssl for testing
[system_default_sect]
#MinProtocol = TLSv1.2
#CipherString = DEFAULT@SECLEVEL=2
MinProtocol = None
CipherString = DEFAULT
@eddiez9
eddiez9 / merge_sublist.sh
Created March 10, 2020 11:27
Fix output of sublist3r...
grep -v '<BR>' file.txt > nobr.txt
grep -o '[^<BR>]\+' file.txt > br.txt
cat nobr.txt br.txt > merged.txt
@eddiez9
eddiez9 / win_defend.bat
Created March 11, 2020 04:33
Delete definitions for Windows Defender with admin so you can do things.
cd "C:\Program Files\Windows Defender\" && MpCMDRun.exe -removedefinitions -all
@eddiez9
eddiez9 / openssl.txt
Last active May 27, 2020 11:03
OpenSSL commands + SAN configuration
openssl req -out sslcert.csr -newkey rsa:2048 -nodes -keyout private.key -config san.cnf
[ req ]
default_bits = 2048
distinguished_name = req_distinguished_name
req_extensions = req_ext
[ req_distinguished_name ]
countryName = Country Name (2 letter code)
stateOrProvinceName = State or Province Name (full name)
localityName = Locality Name (eg, city)
#!/bin/bash
# This script checks for the presence of a process using high GPU memory other than its own etherum miner, and terminates the miner. If it does not find such a process, it starts the miner.
MAX_MEMORY=500
MINER_NAME=t-rex
MINER_PATH="/home/trex/t-rex -a ethash -o stratum+tcp://asia1.ethermine.org:4444 -u WALLET_ADDRESS -w hashcat1"
# Get data on GPU processes
gpuprocs=$(nvidia-smi | head -n -1 | sed -n -e '19,999999 p' | awk 'BEGIN{ OFS = ";"; FS=" *"}{split($0,a);print a[5],a[6],(a[8]+0)}')
@eddiez9
eddiez9 / add_mgnt_user.sh
Created July 11, 2022 08:27
Nokia fastmile add_mgnt_user.sh script in /usr/exe directory
#!/bin/bash
#add MgntUser according to RI info, xufuguo, 20120808
#if user_name or password is NULL, do nothing.
#update for R30 read-only rootfs, modify by xufuguo, 20130816
#modify: not get MgntUserLongPasswd from RI. so call this script in pre-config instead of startup.sh xufuguo, 20120926
#user_name=$(ritool get UserName | grep UserName | awk -F : '{print $2}')
#password=$(ritool get MgntUserLongPasswd | grep MgntUserLongPasswd | awk -F : '{print $2}')