Skip to content

Instantly share code, notes, and snippets.

View AbhiiGatty's full-sized avatar
🎃
Writing programs for my pumpkin overlords.

Abhishek P AbhiiGatty

🎃
Writing programs for my pumpkin overlords.
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AbhiiGatty
AbhiiGatty / docker_remote_config.sh
Last active December 14, 2023 12:49
Configure Docker Remote on 2375
#!/bin/bash
# Check if the script is run as root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit 1
fi
# Function to check if Docker is already listening on TCP port 2375
is_docker_exposed_on_2375() {
@AbhiiGatty
AbhiiGatty / go-project-layout.md
Created April 20, 2023 04:57 — forked from candlerb/go-project-layout.md
Suggestions for go project layout

If someone asked me the question "what layout should I use for my Go code repository?", I'd start by asking back "what are you building: an executable, or a library?"

Single executable

Stage 1: single source file

Create a directory named however you want your final executable to be called (e.g. "mycommand"), change into that directory, and create the following files:

@AbhiiGatty
AbhiiGatty / python-snippets
Last active January 7, 2019 06:38
Python code snippets that i end up using often
# requests module snippet
try:
response = requests.get(url,timeout=3)
response.raise_for_status()
except requests.exceptions.RequestException as err:
print ("OOps: Something Else",err)
except requests.exceptions.HTTPError as errh:
print ("Http Error:",errh)
except requests.exceptions.ConnectionError as errc:
print ("Error Connecting:",errc)
@AbhiiGatty
AbhiiGatty / vpnbook.sh
Created January 2, 2019 02:13
Script for more-easily connecting to www.vpnbook.com VPN. Assumes the .ovpn files are in your ~/openvpn/ folder.
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
RESET='\033[0m'
wget -q -O ~/vpnbook.tmp www.vpnbook.com/freevpn
Themes: https://www.opendesktop.org/p/1012430/
Icons: https://www.opendesktop.org/p/1012430/
Mouse: https://www.opendesktop.org/p/1253577/
Grub: https://www.gnome-look.org/p/1251298/
@AbhiiGatty
AbhiiGatty / github_bugbountyhunting.md
Created November 2, 2018 12:29 — forked from EdOverflow/github_bugbountyhunting.md
My tips for finding security issues in GitHub projects.

GitHub for Bug Bounty Hunters

GitHub repositories can disclose all sorts of potentially valuable information for bug bounty hunters. The targets do not always have to be open source for there to be issues. Organization members and their open source projects can sometimes accidentally expose information that could be used against the target company. in this article I will give you a brief overview that should help you get started targeting GitHub repositories for vulnerabilities and for general recon.

Mass Cloning

You can just do your research on github.com, but I would suggest cloning all the target's repositories so that you can run your tests locally. I would highly recommend @mazen160's GitHubCloner. Just run the script and you should be good to go.

$ python githubcloner.py --org organization -o /tmp/output
@AbhiiGatty
AbhiiGatty / bobp-python.md
Created June 12, 2018 13:24 — forked from diegosorrilha/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens