Skip to content

Instantly share code, notes, and snippets.

View einyx's full-sized avatar

alessio einyx

  • PID 1
View GitHub Profile
import boto3
# Initiate the client
ec2 = boto3.resource('ec2', region_name="us-east-1")
ec2c = boto3.client('ec2', region_name="us-east-1")
# Grab the default VPC id
## Set your server public IP address ##
ext_if="vio0"
ext_if_ip=""
## Set and drop these IP ranges on public interface ##
martians = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, \
10.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24, \
0.0.0.0/8, 240.0.0.0/4 }"
webports = "{http, https}"
### Keybase proof
I hereby claim:
* I am einyx on github.
* I am einyx (https://keybase.io/einyx) on keybase.
* I have a public key ASA9GTZaunzjtCsJEP1-BcFZwT22D2rrJ5z3th_w3cOdlAo
To claim this, I am signing this object:
@einyx
einyx / GethAsAService.md
Created November 26, 2020 22:34 — forked from swaldman/GethAsAService.md
Setting up geth as a service under systemd (Updated for Fedora 27)

Setting up geth as a service under systemd Fedora 27

Prerequisite: dnf install golang

  1. Create user geth with useradd
  2. As user geth fast sync the blockchain, geth --fast --cache 1024
  3. Manually run geth --rpc as user geth and watch to see that the blockchain continues to sync properly
  4. Install the geth.service file (also in this gist) in /usr/lib/systemd/system/
  5. Make a symlink from /etc/systemd/system/multi-user.target.wants/geth.service to /usr/lib/systemd/system/geth.service
  6. systemctl enable geth followed by systemctl start geth
@einyx
einyx / Active Directory Attacks.md
Created November 23, 2020 18:31 — forked from ssstonebraker/Active Directory Attacks.md
Active Directory Attacks #oscp
# do nothing
:
# all uppercase characters
u
# all lowercase characters
l
# toggle the case of char in position 0
T0
####################
@einyx
einyx / de-google
Created October 26, 2020 07:07
Debloat oneplus from bloatware and google
rm -rf /system/app/CarHomeGoogle.apk
rm -rf /system/app/ChromeBookmarksSyncAdapter.apk
rm -rf /system/app/ConfigUpdater.apk
rm -rf /system/app/FaceLock.apk
rm -rf /system/app/GenieWidget.apk
rm -rf /system/app/Gmail.apk
rm -rf /system/app/GmsCore.apk
rm -rf /system/app/GoogleBackupTransport.apk
rm -rf /system/app/GoogleCalendar.apk
include {
path = find_in_parent_folders()
}
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
inputs = {
namespace = "eg"
stage = "dev"
name = "es"
# This file contains master configuration settings for clamav-unofficial-sigs.sh
################################################################################
# This is property of eXtremeSHOK.com
# You are free to use, modify and distribute, however you may not remove this notice.
# Copyright (c) Adrian Jon Kriel :: admin@extremeshok.com
# License: BSD (Berkeley Software Distribution)
################################################################################
#
# DO NOT EDIT THIS FILE !! DO NOT EDIT THIS FILE !! DO NOT EDIT THIS FILE !!
#
#!/usr/bin/env python
# Copyright (C) 2015-2017 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
import argparse
import cgi
import io
import json
import os