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_sqlmap_tor_proxy.md
Last active December 30, 2020 11:34
[SQLMap using Tor Proxy via Docker] a guide to launch a sqlmap docker using a docker proxy #docker #sqlmap #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 sqlmap docker :
docker run -it --link torproxy:torproxy --rm -v $PWD/sqlmapdata:/home/sqlmap/.sqlmap:rw ilyaglow/sqlmap --proxy socks5://torproxy:9050 --check-tor --random-agent -u "example.com"
@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 / screen_guide.md
Last active May 26, 2021 08:09
[Screen usage guide] examples on how to use screen on linux #screen #linux #server #background
  • Create a new screen with screen -S name_screen or screen (this will generate an ID of screen)

  • OR launch your_command directly with screen -S name_of_screen your_command

  • then detach it by pressing Ctrl+A then d


  • OR launch and detach immediatly with screen -S name_of_screen -dm your_command
@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 / how_to_reverseproxy_proxypass_nginx_letsencrypt.md
Last active September 19, 2024 09:48
How to use nginx as a reverse-proxy with letsencrypt

How to use nginx as a reverse-proxy with letsencrypt

Your infrastructure

generated via plantuml

Imgur

Requirements

@gmolveau
gmolveau / uuid_user.py
Last active October 8, 2024 18:21
sqlalchemy uuid for sqlite
########################
# UUID for SQLite hack #
########################
from sqlalchemy.types import TypeDecorator, CHAR
from sqlalchemy.dialects.postgresql import UUID
import uuid
class GUID(TypeDecorator):
@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 / 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 / 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 / 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