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 / Admin_create_user_add_team.md
Last active August 26, 2024 07:06
CTFd sort challenges
nano ./CTFd/themes/admin/templates/teams/team.html
{% extends "admin/base.html" %}

{% block stylesheets %}
{% endblock %}
@vinhjaxt
vinhjaxt / acunetix-add-targets.js
Created May 5, 2022 04:46
Add acunetix targets
const ENV = {
dashboard: 'https://xxxx/',
api_key: 'xxxx'
}
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
const dns = require('dns')
const fs = require('fs')
const ifetch = require('ifetch-node')
@vinhjaxt
vinhjaxt / mingw-build-openssl-sslv3.sh
Last active April 23, 2023 09:23
Build openssl (sslv3 support) on mingw windows
#!/usr/bin/env bash
# CC: https://gist.github.com/bmaupin/8caca3a1e8c3c5686141
# CC: https://wiki.qt.io/Compiling_OpenSSL_with_MinGW
# Clone OpenSSL
git clone -b OpenSSL_1_0_2-stable --single-branch --depth 1 --recurse-submodules https://github.com/openssl/openssl.git openssl-source
cd openssl-source
pacman -Sy mingw-w64-x86_64-toolchain make pkg-config mingw-w64-x86_64-diffutils
@vinhjaxt
vinhjaxt / csv-sqlite.js
Created June 22, 2022 11:20
CSV to SQLite
// npm i -g csv-parse better-sqlite3 psl
const {parse: csvParse} = require('csv-parse')
const fs = require('fs')
const psl = require('psl')
const sqlite3 = require('better-sqlite3')
const db = new sqlite3('orgurl.db', {
readonly: false,
fileMustExist: false,
})
@vinhjaxt
vinhjaxt / burp.txt
Created June 27, 2022 03:22
Burpsuite Download
https://portswigger-cdn.net/burp/releases/download?product=pro&version=2022.6.1&type=Jar
@vinhjaxt
vinhjaxt / netplan-static-ip.yml
Created June 27, 2022 07:27
Netplan static ip
sudo nano /etc/netplan/00-installer-config.yaml
# https://www.aelius.com/njh/subnet_sheet.html
# 255.255.255.224 = /27
# xxx.xxx.xxx.33/27
network:
ethernets:
ens160:
dhcp4: false
dhcp6: false
@vinhjaxt
vinhjaxt / curl.php
Last active April 2, 2025 08:55
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 / alpine-add-package.sh
Last active July 4, 2022 14:11
Alpine add package
apk --update-cache --upgrade --no-cache add jq curl