Skip to content

Instantly share code, notes, and snippets.

View obilodeau's full-sized avatar

Olivier Bilodeau obilodeau

View GitHub Profile
package authentication::kerberos;
=head1 NAME
authentication::kerberos - kerberos authentication
=head1 SYNOPSYS
use authentication::kerberos;
my ( $authReturn, $err ) = authenticate ( $login, $password );
@obilodeau
obilodeau / gist:2783403
Created May 24, 2012 18:43
Net::Pcap childs?
Detaching after fork from child process 19249.
Detaching after fork from child process 19250.
Detaching after fork from child process 19251.
Detaching after fork from child process 19252.
Detaching after fork from child process 19253.
Detaching after fork from child process 19254.
Detaching after fork from child process 19255.
Detaching after fork from child process 19257.
Detaching after fork from child process 19260.
Detaching after fork from child process 19262.
@obilodeau
obilodeau / wpa_supplicant.conf
Created June 15, 2012 18:16
recon.cx config 'a la mano' for hw
# your other stuff
network={
ssid="recon.cx"
key_mgmt=IEEE8021X WPA-EAP
eap=PEAP
pairwise=CCMP
group=CCMP
identity="<user>"
password="<pass>"
@obilodeau
obilodeau / gist:3362903
Created August 15, 2012 19:32
perl introspection
# This needs some explanation.
# Lists all the entries of the WEB package then for each of them it
# will create an hash entry with the value of the package variable
# only if it is a scalar.
return map { $_ => ${"WEB::$_"} if defined ${"WEB::$_"} } keys %WEB::;
@obilodeau
obilodeau / gist:3372029
Created August 16, 2012 17:47
refacotring to portalSession
# This
my $vars = pf::web::_initialize_template_variables(
destination_url => encode_entities($portalSession->getDestinationUrl),
list_help_info => [
{ name => i18n('IP'), value => $portalSession->getClientIp },
{ name => i18n('MAC'), value => $portalSession->getClientMac }
],
);
@obilodeau
obilodeau / gist:3805103
Created September 29, 2012 20:24
I suck at C
// transform this so it converts a 'tableau' of chars [0x15, 0x1b, ...] into a string through code_to_key
char x = code_to_key(false, 0x15);
char y = code_to_key(false, 0x1b);
char z = code_to_key(false, 0x17);
char a = code_to_key(false, 0x08);
printf("%c%c%c%c\n", x, y, z, a);
@obilodeau
obilodeau / gist:3880238
Created October 12, 2012 16:58
double fail - fixed
12:26 <@hw> o_q
12:26 <@hw> ^ monocle
12:26 <@hw> fail
12:26 <@hw> o_q
12:26 <@dgoulet> pas de contexte, c'Est fantastique ahha
12:26 <@hw> ^ monocle
...
12:58 <@hw> o_q
12:58 <@hw> ^ monocle
@obilodeau
obilodeau / payload.php
Created November 24, 2012 20:48
H0H0H0Day-2012-nano-ctf-payload-encoded
<?php
# grab IP
$src_ip = $_SERVER[REMOTE_ADDR];
# FETCH FLAG
# slurp remote stuff in a string
$result = file_get_contents("http://SQLi-censored...");
# extract a substring with a regex
@obilodeau
obilodeau / payload-clean.php
Created November 24, 2012 20:54
H0H0H0Day-2012-nano-ctf-payload-clean
<?php
# grab IP
$src_ip = $_SERVER[REMOTE_ADDR];
# FETCH FLAG
# slurp remote stuff in a string
$result = file_get_contents("http://SQLi-censored...");
# extract a substring with a regex
@obilodeau
obilodeau / ida-pro-64.desktop
Created February 18, 2013 15:35
IDA for Linux desktop files
[Desktop Entry]
Type=Application
Version=6.4
Name=IDA Pro 6.4 64 bit
Comment=IDA Interactive Disasssembler
Icon=/opt/ida-6.4/appico.png
Exec=/opt/ida-6.4/idaq64
Terminal=false
Path=/opt/ida-6.4