Skip to content

Instantly share code, notes, and snippets.

View gmolveau's full-sized avatar

Grégoire MOLVEAU gmolveau

View GitHub Profile
@gmolveau
gmolveau / docker_ssh_tor_proxy.md
Last active November 9, 2017 09:20
[SSH client through Tor proxy with docker] launch a SSH session through Tor proxy with Docker #docker #ssh #tor
  • First run the Tor proxy docker :
docker run -d --restart always -v /etc/localtime:/etc/localtime:ro -p 127.0.0.1:9050:9050 --name torproxy jess/tor-proxy
  • Then launch your ssh-client docker :
docker run --rm --link torproxy:torproxy -v $HOME/.ssh/id_rsa:/id_rsa:ro -it okampfer/ssh-client -o ProxyCommand="nc -x torproxy:9050 %h %p" -i /id_rsa @ -p 22
@gmolveau
gmolveau / linuxprivchecker.py
Created November 14, 2017 10:04 — forked from sh1n0b1/linuxprivchecker.py
linuxprivchecker.py -- a Linux Privilege Escalation Check Script
#!/usr/env python
###############################################################################################################
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift
##-------------------------------------------------------------------------------------------------------------
## [Details]:
## This script is intended to be executed locally on a Linux box to enumerate basic system info and
## search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text
## passwords and applicable exploits.
@gmolveau
gmolveau / docker_dns_eduroam.md
Created October 25, 2018 10:28
Docker DNS configuration for eduroam

How to set up docker DNS to work on eduroam network

If you encounter problems like apt-get failing or Temporary failure in name resolution [Errno -3], it's maybe because of Docker current DNS configuration.

To fix this, run :

sudo nano /etc/docker/daemon.json
@gmolveau
gmolveau / moodle_to_https.md
Created October 29, 2018 08:16
Moodle HTTPS transition

Setting HTTPS in moodle

  1. Login to moodle, navigate to Site administration > Security > HTTP security > HTTPS conversion tool. and run it.

  2. Then on your server, edit config.php :

nano /var/www/html/moodle/config.php
@gmolveau
gmolveau / libraries_frameworks.md
Last active December 10, 2018 14:19
Libraries and frameworks I have found
@gmolveau
gmolveau / quotes.md
Created December 19, 2018 09:09
quotes I have found

Spend at least as much time playing to your strengths as working on your weaknesses.
Alex Moore, CEO of Boomerang

Karma is real, but it’s not always your job to serve it.
Maurice Cherry, designer

My mother used to say, “You become your friends.” It’s true—over time, you start to reflect the people you hang around. This has inspired me to pick really good friends who are role models for me and lift me up.
Ben Chestnut, co-founder of Mailchimp

Stop doing that.

@gmolveau
gmolveau / talks_list.md
Last active December 30, 2018 17:18
Talks I have watched

Talks I've watched

2018

  • Devops D-Day 2018 • Hype Driven Architecture, ou, faire face au code du monde réel • Quentin ADAM

    • IMAGE ALT TEXT HERE
  • Devops D-Day 2018 • Chaos Engineering - Le DevOps au pays des merveilles • Loïc ORTOLA

    • IMAGE ALT TEXT HERE
@gmolveau
gmolveau / manage.sh
Last active January 13, 2019 21:31
Macbook management script
#!/bin/sh
restore() {
if test ! $(which brew); then
echo "Installing homebrew"
ruby -e "$(curl -fsSl https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
read -e -p "Enter the full-path of the backup folder location: " BACKUP_PATH
eval BACKUP_PATH=$BACKUP_PATH
@gmolveau
gmolveau / ssh_passphrase_bruteforce.py
Last active January 19, 2019 14:17
Python ssh passphrase dictionary bruteforce
import subprocess
import sys
def main():
dictionary = sys.argv[1]
with open(dictionary, "r") as dic:
for line in dic:
word = line.rstrip('\n')
stdout = subprocess.call(
'ssh-keygen -c -C "user@server" -P "{0}" -f "./id_rsa"'.format(word),