Skip to content

Instantly share code, notes, and snippets.

View vchan-in's full-sized avatar
👋
Hi There!

Vaishno Chaitanya vchan-in

👋
Hi There!
View GitHub Profile
@vchan-in
vchan-in / ftp-setup.sh
Last active September 22, 2025 09:57
FTP setup bash script
#!/bin/bash
set -euo pipefail
PUBLIC_FTP_DIR="/home/publicftp/public"
VSFTPD_USERLIST="/etc/vsftpd.userlist"
FTP_PASSIVE_PORTS="30000:31000"
# Neutral public FTP user name (can be changed)
PUBLIC_NEUTRAL_USER="publicftp"
@vchan-in
vchan-in / docker_setup.sh
Last active April 9, 2025 11:19
Docker setup bash file
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove -y $pkg; done
# Add Docker's official GPG key:
sudo apt-get update -y
sudo apt-get install -y ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
#!/bin/bash
# Function to display usage instructions
usage() {
echo "Usage: $0 [-b branch_name] commit_hash1 [commit_hash2 ...]"
echo " -b branch_name Specify the branch to recover commits to (default: current branch)"
exit 1
}
# Parse options
@vchan-in
vchan-in / CVE-2022-39197.py
Created September 27, 2022 18:07
CVE-2022-39197 Cobalt Strike <= 4.7 RCE
#!/usr/bin/env python
# coding=utf-8
import hexdump
import rsa
import random
import base64
import string
import urllib.request
#pack = b'\x00\x00\xBE\xEF' # pack head
@vchan-in
vchan-in / Program.cs
Last active August 19, 2022 06:16
Symmetric Encryption Decryption using REST API and KMS (Randtronics DPM easyKey)
using System;
using System.IO;
using System.Linq;
using System.Text;
using RestSharp; // Version 106.0.0
namespace EncryptionDecryptionUsingSymmetricKey
{
class Program
{
@vchan-in
vchan-in / stopwords.txt
Created October 13, 2020 16:17
Stopwords for NLP
x
y
your
yours
yourself
yourselves
you
yond
yonder
yon