I suppose you use Debian-like systems
$ mkdir rootdir && cd rootdir && export ROOTDIR=$PWD
$ apt-get source libdevmapper1.02.1
$ apt-get source cryptsetup
""" | |
Extract information about some TV firmware | |
http://neophob.com/2010/01/root-my-tv-hack-philips-pfl9703/ | |
$ python firm.py firmware.upd | |
magic1: 2SWU | |
magic2: 3TXV | |
header size: 760 |
from scapy.all import * | |
import time | |
import argparse | |
import os | |
import sys | |
def arpPoison(args): | |
conf.iface= args.iface | |
pkt = ARP() |
I suppose you use Debian-like systems
$ mkdir rootdir && cd rootdir && export ROOTDIR=$PWD
$ apt-get source libdevmapper1.02.1
$ apt-get source cryptsetup
http://www.offensive-security.com/metasploit-unleashed/
$ nmap -v -sV 192.168.0.0/24
ACTION=="add", SUBSYSTEM=="block", ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="xxxx", ENV{UDISKS_AUTO}="0", OWNER="packz", SYMLINK+="freepto%n", RUN+="/sbin/freepto.sh %k %n" |
/* | |
* This program shows the typical programming error | |
* to handle wrong the signess of a variable. | |
* | |
* When the variable increases and reaches its maximum | |
* value it overflows and became negative. | |
* | |
* $ gcc -Wall bug.c -o bug | |
* $ ./bug | head | |
* * sizeof: 2 -> max value: 65536 |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <string.h> | |
//http://people.freebsd.org/~kientzle/libarchive/man/cpio.5.txt | |
struct cpio_newc_header { | |
char c_magic[6];// "070701" | |
char c_ino[8]; // | |
char c_mode[8]; |
//http://www.ict.griffith.edu.au/anthony/software/pbkdf2.c | |
/* | |
** SYNOPSIS | |
** echo "passphrase" | pbkdf2 salt_hex count > 48_byte_hex_key_and_iv | |
** | |
** DESCRIPTION | |
** | |
** Make the "Password-Based Key Derivation Function v2" function found in | |
** the openssl library available to the command line, as it is not available | |
** for use from the "openssl" command. At the time of writing the "openssl" |
define assemble | |
# dont enter routine again if user hits enter | |
dont-repeat | |
if ($argc) | |
if (*$arg0 = *$arg0) | |
# check if we have a valid address by dereferencing it, | |
# if we havnt, this will cause the routine to exit. | |
end | |
printf "Instructions will be written to %#x.\n", $arg0 | |
else |