Skip to content

Instantly share code, notes, and snippets.

@maugern
maugern / Makefile
Last active June 22, 2016 12:37
My java Makefile
JFLAGS = -g
JC = javac
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
CLASSES = *.java
default: classes
import org.apache.log4j.Logger;
/**
* Utilitaires pour centraliser le logging
* @author maugerni
*/
public class LogUtil {
public static final int PAD_NUMBER = 60;
@maugern
maugern / keybase.md
Created July 3, 2017 18:35
My keybase proof.

Keybase proof

I hereby claim:

  • I am maugern on github.
  • I am maugern (https://keybase.io/maugern) on keybase.
  • I have a public key whose fingerprint is B4F3 00B6 DDBE 56F5 8954 B543 63E8 E845 7F02 1798

To claim this, I am signing this object:

@maugern
maugern / names.txt
Last active August 14, 2017 07:37
Sorter subdomain enumeraion list used with https://github.com/evilsocket/dnssearch to do faster seach than original name.txt. Unlicensed.
42
!
@
#
about
access
account
accounts
admin
admins
@maugern
maugern / hashor.pl
Created December 12, 2017 11:12
Hashor, perl script to hash file line by line.
#!/usr/bin/perl
# Hashor, hashing file line by line and print output
# Copyright (C) 2017 Nicolas Mauger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@maugern
maugern / edt.py
Last active June 9, 2019 21:53
Fetch your calendar from the Valenciennes university website.
#!/usr/bin/env python3.6
#
# Navigation with selenium on Firefox in the Valenciennes university website.
# Copyright (C) 2018 Nicolas Mauger <nicolas.mauger@etu.univ-valenciennes.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
@maugern
maugern / easy-iptables.sh
Last active March 29, 2018 15:40
Iptables configurator for idiots.
#!/bin/bash
#
# easy-iptables, iptables simplification for CDAISI workshop
# Copyright (C) 2018, Nicolas Mauger <nicolas.mauger@etu.univ-valenciennes.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@maugern
maugern / listarpresponse.py
Last active April 10, 2018 11:32
Sniffing ARP response
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from scapy.all import *
# Sniffing ARP response
counter = 0
def display_arp(packet):
@maugern
maugern / synscan.py
Last active April 16, 2019 11:17
SYN scan with scapy
#!/usr/bin/env python3
# Nicolas Mauger
import argparse
from scapy.all import *
parser = argparse.ArgumentParser("Process some SYN scan", add_help="True")
# Optional args
@maugern
maugern / arp-watchdog.sh
Created April 14, 2018 12:55
arp-watchdog, an ARP tables guard.
#!/bin/bash
#
# arp-watchdog, an ARP tables guard create for CDAISI workshop
# Copyright (C) 2018, Nicolas Mauger <nicolas.mauger@etu.univ-valenciennes.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#