Skip to content

Instantly share code, notes, and snippets.

View tuantmb's full-sized avatar
😹

Tuan T tuantmb

😹
  • Vietnam
View GitHub Profile
@tuantmb
tuantmb / DebugWithWindbg.md
Last active April 6, 2024 13:54 — forked from reinaldocoelho/DebugWithWindbg.md
Debug on Windows using WinDbg
@tuantmb
tuantmb / breachcompilation.txt
Created December 26, 2017 16:22
1.4 billion password breach compilation wordlist
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
@tuantmb
tuantmb / clean_cache_teams.cmd
Created February 13, 2020 01:38
A simple batch script to clean up #cache for #Microsoft #teams
@ECHO OFF
goto:main
[+] Description: a simple script to clean up Microsoft Team's Cache (release a bit memory)
:main
taskkill /f /t /fi "IMAGENAME eq teams.exe"
echo "[x] Microsoft Team Processes were closed!!!!"
del /f /q "%appdata%\Microsoft\teams\application cache\cache\*.*" > nul 2>&1
@tuantmb
tuantmb / Install_checkpoint_VPN_Client_in_Ubuntu_19.md
Last active November 14, 2023 02:29
Install Checkpoint VPN client in Ubuntu 19.x
  1. Download your install script from your vpn website See Download SSL Network Extender manual installation in the right pane on your vpn.{your-company.com} (replace with your company vpn url) ==> click Download command line SNX for Linux (usually get a script name snx_install.sh but it can change because of your company's settings)
If you don't see any similar section on your vpn  website, 
DON'T try to search and get script from interne.
==> look up in checkpoint website for safe and avoid viruses or contact to your administrators.
@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.