Skip to content

Instantly share code, notes, and snippets.

Atavic

Block or report user

Report or block Atavic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Ekultek
Ekultek / ufw-denier.sh
Created Aug 9, 2018
A script to download bad IP addresses and deny them with UFW
View ufw-denier.sh
#!/bin/bash
TMP_DIR="/tmp"
URL_LINKS=$"http://www.blocklist.de/lists/ssh.txt
http://www.blocklist.de/lists/apache.txt
http://www.blocklist.de/lists/asterisk.txt
http://www.blocklist.de/lists/bots.txt
http://www.blocklist.de/lists/courierimap.txt
http://www.blocklist.de/lists/courierpop3.txt
http://www.blocklist.de/lists/email.txt
@Ekultek
Ekultek / denier.sh
Created Aug 9, 2018
A script to deny all known Shodan IP addresses
View denier.sh
#!/bin/bash
# all known shodan IP addresses
SCANNERIPADDRESSES=$"185.181.102.18
94.102.49.193
94.102.49.190
89.248.167.131
93.174.95.106
185.163.109.66
89.248.172.16
@HardenedArray
HardenedArray / Encrypted Arch with Bcache Support Installation Procedure
Last active Dec 25, 2019
Efficient Encrypted Arch Linux with Bcache Installation Procedure Providing SSD and HDD Concurrent Support
View Encrypted Arch with Bcache Support Installation Procedure
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems with full Bcache SSD/HDD support
# and boot from UEFI.
# RATIONALE: As most users realize, you have to pay for marginal speed improvements in all circuits which compute.
# This holds true for CPUs, GPUs, DRAM, SRAM, Drives, including memory cards and USB sticks. If you want speed, you
# must be willing to pay the price premium that a faster device commands versus a slower alternative.
# SSDs are incredibly fast, but expensive to produce, and therefore, only offer limited storage space.
# HDDs, by comparison, are ridiculously slow, but offer immense storage space per dollar expended.
View installing-node-applications.md

How to install Node.js applications, if you're not a Node.js developer

While installing a Node.js application isn't difficult in principle, it may still be confusing if you're not used to how the Node.js ecosystem works. This post will tell you how to get the application going, what to expect, and what to do if it doesn't work.

Occasionally an application may have custom installation steps, such as installing special system-wide dependencies; in those cases, you'll want to have a look at the install documentation of the application itself as well. However, most of the time it's safe to assume that the instructions below will work fine.

If the application you want to install is available in your distribution's repositories, then install it through there instead and skip this entire guide; your distribution's package manager will take care of all the dependencies.

Checklist

@ricardojba
ricardojba / windows_hardening.cmd
Last active Nov 14, 2019
A Windows hardening script
View windows_hardening.cmd
::###############################################################################################################
:: Credits and More info: https://gist.github.com/mackwage/08604751462126599d7e52f233490efe
:: https://github.com/api0cradle/LOLBAS
:: https://github.com/Disassembler0/Win10-Initial-Setup-Script
:: https://github.com/cryps1s/DARKSURGEON/tree/master/configuration/configuration-scripts
:: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1#file-reclaimwindows10-ps1-L71
::
::###############################################################################################################
:: Change file associations to protect against common ransomware attacks
:: Note that if you legitimately use these extensions, like .bat, you will now need to execute them manually from cmd or powershell
@lrenaud
lrenaud / getFirefoxCookies-0.9.py
Last active Oct 9, 2019
Generate a cookies.txt from cookies.sqlite in Firefox
View getFirefoxCookies-0.9.py
#!/usr/bin/env python3
##########
# A simple tool to extract particular cookies from firefox's cookies.sqlite
# file and dump them to a legacy Netscape cookies.txt file.
##########
# ver YYYY-MM-DD comment
# 0.9 2018-04-15 public release
#
##########
import sqlite3 as sql
View nginx-block-hosting-ips
## https://bgp.he.net/search?search%5Bsearch%5D=digitalocean&commit=Search
deny 95.85.0.0/18; #DigitalOcean, LLCEuropean Union
deny 82.196.0.0/20; #DigitalOcean, LLCNetherlands
deny 80.240.128.0/20; #DigitalOcean, LLCEuropean Union
deny 67.207.80.0/20; #DigitalOcean, LLCUnited States
deny 67.207.76.0/22; #DigitalOcean, LLCUnited States
deny 67.207.72.0/22; #DigitalOcean, LLCUnited States
@hermanjustinm
hermanjustinm / AdList.txt
Last active Sep 13, 2019
Ad Block List
View AdList.txt
##StevenBlack's list
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
##MalwareDomains
https://mirror1.malwaredomains.com/files/justdomains
##Cameleon
http://sysctl.org/cameleon/hosts
##Zeustracker
@ryandrake08
ryandrake08 / dnsmasq.conf.add
Created Jan 21, 2018
dnsmasq-based adblock configuration on RT-N66U running Asuswrt-Merlin
View dnsmasq.conf.add
address=/0.0.0.0/0.0.0.0
addn-hosts=/jffs/dns_blocklist
@ryandaniels
ryandaniels / firefox-user.js
Last active Jul 28, 2019
Firefox user.js privacy and optimization settings
View firefox-user.js
/*
* Open profile dir - find in about:support or about:profiles
* Copy this file into your profile directory.
* Add changes to this file. Save file.
* Restart Firefox. Below overrides will be loaded.
* Close Firefox and open prefs.js to confirm changes merged there.
* NOTE: only non-default values will be saved to prefs.js
*
*/
You can’t perform that action at this time.