Skip to content

Instantly share code, notes, and snippets.

View GioBonvi's full-sized avatar

Giorgio Bonvicini GioBonvi

View GitHub Profile
@GioBonvi
GioBonvi / aule-libere-polimi.py
Last active July 5, 2019 20:34
Alcune funzioni che permettono di estrarre dal sito del Politecnico di Milano le aule libere in un certo periodo di tempo (https://www7.ceda.polimi.it/spazi/spazi/controller/RicercaAuleLibere.do?evn_giornaliera=evento).
#!/usr/bin/env python3
# Copyright 2019 Giorgio Bonvicini
# 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 the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
@GioBonvi
GioBonvi / fsct.py
Created September 6, 2019 09:44
A simple tool to decode, verify or generate a signed Flask session cookie. Useful during CTFs.
#!/usr/bin/env python3
# encoding: utf-8
"""
Flask session cookie toolkit.
Decode, verify or generate a signed Flask session cookie.
Credits to Terry Vogelsang for the original script (https://terryvogelsang.tech/MITRECTF2018-my-flask-app/)
which I just slightly modified for my personal use.
@GioBonvi
GioBonvi / netcat.py
Last active September 22, 2019 11:39
A Netcat-like implementation of the socket module to easily write and read strings and data to and from a socket. Particularly useful for CTFs.
# encoding: utf-8
"""
netcat.py
by GioBonvi
https://gist.github.com/GioBonvi/2cb9080039f5f5abfdcc44ee81ef102c
A Netcat-like implementation of the socket module to easily write and read strings and data
to and from a connection. Particularly useful for CTFs.

Keybase proof

I hereby claim:

  • I am giobonvi on github.
  • I am giobonvi (https://keybase.io/giobonvi) on keybase.
  • I have a public key ASDu8Af-nA0ez8USokibwU2QQ35lzYNkIdryMuZbJsM_hwo

To claim this, I am signing this object:

@GioBonvi
GioBonvi / python_conda.sh
Last active November 23, 2021 23:50
A bash script to run a python command in a given conda environment.
#!/bin/bash
# Run a python command in a given conda environment.
#
# Usage:
#
# python_conda.sh ENV_NAME FOLDER COMMAND ARGUMENTS
#
# Examples:
#