Skip to content

Instantly share code, notes, and snippets.

@babywyrm
babywyrm / keybase.md
Created January 15, 2020 02:59
wyrm-keybase-tho

Keybase proof

I hereby claim:

  • I am babywyrm on github.
  • I am feanor (https://keybase.io/feanor) on keybase.
  • I have a public key ASAOY8UafEZYZFWQBA0zm_ajyWYzd0zMRyNeEXUABxs-pgo

To claim this, I am signing this object:

@babywyrm
babywyrm / clamav-mac.md
Created February 14, 2020 01:16 — forked from Uchean/clamav-mac.md
Get ClamAV running on Mac OS X (using Homebrew)

Get ClamAV running on Mac OS X (using Homebrew)

The easiest way to get the ClamAV package is using Homebrew

$ brew install clamav

Before trying to start the clamd process, you'll need a copy of the ClamAV databases.

Create a freshclam.conf file and configure as so

Raymii.org
ClamAV installation and daily scan + report on Ubuntu
Table of Contents
Do you need a virus scanner on Linux/Unix?
Install ClamAV
Update the database
The daily scan
Extra: the targeted scan
Hosts File
While using HTB I have found it easier to add hostnames to /etc/hosts for machines such as machinename.htb. This makes it easier to define a machine when going back through commands rather than trying to remember which IP address is associated with a certain machine. You can checkout this gist for a ready-made hosts file or copy the contents below:
Copy
127.0.0.1 localhost
127.0.1.1 htb
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
@babywyrm
babywyrm / centos7_mod_evasive_mod_security__
Created March 1, 2020 00:48
_basic_reminder_to_overhal_this_for_2020__
++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++
~~( March/April, 2019 )~~
The mod_evasive Apache module takes evasive action at the time of a DDoS attack or a BruteForce attack and protect Apache from these types of attacks. It gives reports by email or logging facility. This module restrict the concurrent connections from an IP and blacklist if necessary. To configure mod_evasive on centos 7 server, Please follow the below steps.
1. Install EPEL yum repository packages. EPEL (Extra Packages for Enterprise Linux) is an open source and free community based repository project from Fedora team which provides 100% high quality add-on software packages for Linux distribution including RHEL (Red Hat Enterprise Linux), CentOS and Scientific Linux. To activate EPEL on server, execute the below commands in the terminal.
###############################
Continuous Delivery Pipeline for Amazon ECS Using Jenkins, GitHub, and Amazon ECR
###############################
This getting started guide is intended to help you set up and configure a continuous delivery pipeline for Amazon EC2 Container Service (Amazon ECS) using Jenkins, GitHub, and the Amazon EC2 Container Registry (Amazon ECR). The pipeline builds Docker images from a GitHub repository, pushes those images to an ECR registry, creates an ECS task definition, and then uses that task definition to create a service on the ECS cluster. We use Jenkins to orchestrate the different steps in the workflow.
Prerequisites
@babywyrm
babywyrm / AESCipher.py
Created March 3, 2020 19:56 — forked from swinton/AESCipher.py
Encrypt & Decrypt using PyCrypto AES 256 From http://stackoverflow.com/a/12525165/119849
#!/usr/bin/env python
import base64
from Crypto import Random
from Crypto.Cipher import AES
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s : s[0:-ord(s[-1])]
@babywyrm
babywyrm / README.md
Created March 5, 2020 23:17 — forked from hofmannsven/README.md
Git Cheatsheet
@babywyrm
babywyrm / README.md
Created March 8, 2020 22:24 — forked from avoidik/README.md
AWS query examples

Top 10 Examples of AWS CLI Query

List Volumes showing attachment using Dictionary Notation

$ aws ec2 describe-volumes \
  --query 'Volumes[*].{ID:VolumeId,InstanceId:Attachments[0].InstanceId,AZ:AvailabilityZone,Size:Size}'
[
    {
        "InstanceId": "i-a071c394",