Skip to content

Instantly share code, notes, and snippets.

View superchausette's full-sized avatar

Superchausette superchausette

View GitHub Profile
@superchausette
superchausette / arp_mac_vendor.pl
Created January 10, 2014 14:06
A simple perl script using Net::MAC:Vendor to find vendors from ethernet MAC addresses in the ARP table. On ubuntu you need this dependancy: libnet-mac-vendor-perl
use Net::MAC::Vendor;
use strict;
open(ARP, "arp -n|") || die "Failed $!\n";
my @arp_table;
while (<ARP>) {
if ($_ =~ m/incomplet/) {next;}
if ($_ =~ m/Address/) {next;}
my @line = split(' ',$_);
@superchausette
superchausette / PacketAggregation_pdfdump_scappy
Last active June 17, 2018 18:33
Test with PacketListField and pdfdump in scapy
#!/usr/bin/env python
from scapy.packet import Packet, bind_layers
from scapy.fields import FieldLenField, PacketListField
from scapy.fields import IntField,XByteField, ShortField
from scapy.fields import ByteEnumField
from scapy.plist import PacketList
class CarHeader(Packet):
name = "Car"
@superchausette
superchausette / send_sms_myself.sh
Last active August 29, 2015 14:04
Send SMS to myself using the Free (illiad) SMS api
#!/bin/bash
USER=XXXXXXX
PASSWD=XXXXX
URL=https://smsapi.free-mobile.fr/sendmsg
if [ $# -eq 0 ]
then
echo "No message supplied"
exit
@superchausette
superchausette / a.c
Created August 18, 2014 20:47
Compilation and static link of static link
#include <stdio.h>
void print_name(){
printf("LIB A\n");
}