Skip to content

Instantly share code, notes, and snippets.

View vinhjaxt's full-sized avatar
🏠
Working from home

vinhjaxt

🏠
Working from home
View GitHub Profile
@vinhjaxt
vinhjaxt / curl.php
Last active April 2, 2024 03:42
php curl read, send email via pop3, imap, smtp
<?php
// list email
var_dump($resps = curl_multi([
[
'url' => 'imaps://mail.xxx:993/INBOX',
'no_verify' => true,
'opts' => [
CURLOPT_CUSTOMREQUEST => 'examine inbox',
CURLOPT_USERPWD => 'xxx@xxx:xxx',
@vinhjaxt
vinhjaxt / Rust install windows
Created August 26, 2021 10:46
Portable rust installation on windows
curl.exe https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-msvc.tar.gz
set "PATH=%PATH%;.\rust-nightly\rustc\bin"
set "PATH=%PATH%;.\rust-nightly\cargo\bin"
@vinhjaxt
vinhjaxt / cloudflared-ssh.sh
Last active January 3, 2024 16:38
Cloudflared SSH docker
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
HOST_NAME="ssh_cloudflared"
@vinhjaxt
vinhjaxt / frida_multiple_unpinning.js
Created December 19, 2023 16:25 — forked from akabe1/frida_multiple_unpinning.js
Another Android ssl certificate pinning bypass for various methods
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f <APP_ID> -l frida_multiple_unpinning.js [--no-pause]
*/
setTimeout(function() {
Java.perform(function() {
console.log('');

Vinh's GitHub stats

Welcome, You are my Visitor Count visitor, Thank You! 🎉🎉

import escpos.printer as printer
cups_conn = printer.CupsPrinter(host="192.168.2.1",port=631,printer_name="XP-58IIH") # Default CUPS printer
cups_conn.textln("Hello CUPS!") # or any python-escpos command
cups_conn.close()
curl -Lo cloudflared https://github.com/cloudflare/cloudflared/releases/download/2023.10.0/cloudflared-linux-amd64
chmod +x cloudflared
./cloudflared --url ssh://127.0.0.1:22
cloudflared access ssh --hostname uncertainty-saints-newark-martin.trycloudflare.com --url 127.0.0.1:2222
ssh root@127.0.0.1 -p 2222