Skip to content

Instantly share code, notes, and snippets.

View tuantmb's full-sized avatar
😹

Tuan T tuantmb

😹
  • Vietnam
View GitHub Profile
@tuantmb
tuantmb / duplicatefiles.ps1
Created October 21, 2023 09:16
Powershell to list duplicate files in current directory
Get-ChildItem * -Recurse | Get-FileHash -Algorithm MD5 | Group-Object hash | Where-Object {$_.Count -gt 1} | Select-Object @{n='DupeCount';e={$_.Count}}, @{n='DupeFiles';e={$_.Group.Path -join [System.Environment]::NewLine}}, @{n='Hash';e={$_.Name}} | Out-GridView
From: http://redteams.net/bookshelf/
Techie
Unauthorised Access: Physical Penetration Testing For IT Security Teams by Wil Allsopp.
Social Engineering: The Art of Human Hacking by Christopher Hadnagy
Practical Lock Picking: A Physical Penetration Tester's Training Guide by Deviant Ollam
The Art of Deception: Controlling the Human Element of Security by Kevin Mitnick
Hacking: The Art of Exploitation by Jon Erickson and Hacking Exposed by Stuart McClure and others.
Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning by Fyodor
The Shellcoder's Handbook: Discovering and Exploiting Security Holes by several authors
@tuantmb
tuantmb / LAPSDecrypt.cs
Created May 16, 2023 06:54 — forked from xpn/LAPSDecrypt.cs
Quick POC looking at how encryption works for LAPS (v2)
using System;
using System.Collections.Generic;
using System.DirectoryServices.Protocols;
using System.Globalization;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Security.Policy;
using System.Security.Principal;
using System.Text;
@tuantmb
tuantmb / macbook_pro_ubuntu_install.md
Created February 23, 2023 06:25 — forked from cjonesy/macbook_pro_ubuntu_install.md
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image
@tuantmb
tuantmb / transmac reset.txt
Created February 22, 2023 23:16 — forked from speediegq/transmac reset.txt
Reset TransMac Trial back to 15 days (Unpatchable)
since you can find this on the internet easily anyway, i decided to create this for ya.
I know a lot of ppl wont like this but fuck it, it's ez anyway.
One click batch script download: https://anonfiles.com/59T773t2uf/TransMac_Trial_Resetter_bat
Run this whenever you want or put it in your startup folder
(Win+R and type shell:startup)
For all other users, one time easy way to do it, open Regedit
Navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved\ or paste that in the address bar.
@tuantmb
tuantmb / siem_training.md
Created February 21, 2023 15:35 — forked from isaqueprofeta/siem_training.md
SIEM Training
@tuantmb
tuantmb / avg_row.py
Created November 20, 2022 17:07
just test numpy
n, p = [int(x) for x in input().split()]
import numpy as np
output = np.array([])
for i in range(n):
values = np.array([float(y) for y in input().split()][:p])
// np.array.mean() vs round(np.array.sum(), 2) --> number of decimal values after the point
s = values.sum()
m = round(s / p, 2)
@tuantmb
tuantmb / leadership_reads.md
Created November 18, 2022 09:13 — forked from Neener54/leadership_reads.md
Leadership Reading Material
@tuantmb
tuantmb / pebear-wrapper.sh
Created November 11, 2022 07:40
Just a wrapper for pebear
#!/bin/bash
#
# just a wrapper for pebear
#
ALL_ARGUMENTS="$@"
CURRENT_DIRECTORY=$(pwd)
PATH_PEBEAR_DIRECTORY=/opt/pebear/
PATH_PEBEAR_BIN=${PATH_PEBEAR_DIRECTORY}/PE-bear
PATH_PEBEAR_SIGNATURES=${PATH_PEBEAR_DIRECTORY}/signatures