unnamed file

Text

No Description

$ qemu-
qemu-alpha-static qemu-nbd qemu-system-mips64
qemu-armeb-static qemu-ppc64abi32-static qemu-system-mips64el
qemu-arm-static qemu-ppc64-static qemu-system-mipsel
qemu-cris-static qemu-ppc-static qemu-system-ppc
qemu-debootstrap qemu-sh4eb-static qemu-system-ppc64
qemu-i386 qemu-sh4-static qemu-system-ppcemb
qemu-i386-static qemu-sparc32plus-static qemu-system-sh4
qemu-ifdown qemu-sparc64-static qemu-system-sh4eb
qemu-ifup qemu-sparc-static qemu-system-sparc

unnamed file

Text

No Description

FHSTDICN
Unrecognized command in CONFIG.SYS
Bad command or parameters - $
Sector size too large in file $
Bad or missing $Command Interpreter
Invalid country code or code page
Error in COUNTRY command
Insufficient memory for COUNTRY.SYS file
Configuration too large for memory
Too many block devices

unnamed file

C/C++

Shift Register

/*
* Shift Register helper function
* shifts one array around one bit and appends value
*/
void shiftRegister(uint8_t *array, uint8_t value) {
int len = (WIDTH * HEIGHT / 8) - 1;
for(int i = 0; i < len; i++) {
array[i] = (array[i] >> 1) | ((array[i+1] & 1) << 7);
}
array[len] = (array[len] >> 1) | (value > 0 ? 1 << 7: 0);

unnamed file

Text

dionaea debian

echo "deb http://packages.s7t.de/debian squeeze main" >> /etc/apt/sources.list
apt-get update -y --force-yes
apt-get install -y --force-yes libglib2.0-dev libssl-dev libcurl4-openssl-dev libreadline-dev\
libsqlite3-dev libtool automake autoconf build-essential subversion git-core flex\
bison pkg-config libnl liblcfg\
libemu libev dionaea-python dionaea-cython libpcap udns dionaea
cp /opt/dionaea/etc/dionaea/dionaea.conf.dist /opt/dionaea/etc/dionaea/dionaea.conf
export PATH=$PATH:/opt/dionaea/bin

unnamed file

PHP

TMF/MP Stats

<?php
// SETTINGS
// gbxlibrary.. you can use the one provided by the servercontroller you use or download it here: http://www.xaseco.org/Downloads/gbxremote.zip
// modify path afterwards
require_once('xaseco/includes/GbxRemote.inc.php');
$config = array(
// gameserver related stuff
"host" => "localhost",

unnamed file

Python

No Description

byte magic[8]: "NadeoPak"
int32 version (8 or higher)
if (version >= 8)
{
uint256 ContentsChecksum; // Checksum Sha256 of the pack contents starting at next byte
uint32 Flags;
SAuthorInfo AuthorInfo; (version=0, string login, string nick, string zone, string extra)
string InfoManialinkUrl;
uint64 CreationDate;
string Comment;

unnamed file

Text

No Description

C:\Users\Kane>nc.exe 192.168.1.103 1023
free
total used free shared buffers
Mem: 597368 386888 210480 0 134816
Swap: 0 0 0
Total: 597368 386888 210480
ifconfig
bcm0 Link encap:Ethernet HWaddr A0:0B:BA:F3:84:A8
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

unnamed file

Text

No Description

Cheatsheet TM Masterserver
Done:
* Alle Requests, bis auf "Connect" und mglw "OpenSession" (siehe Unten), implementiert - teilweise statisch.
Key¹ wird beim Request "Connect" im XML Element <w> vom Masterserver gesendet (an dieser Stelle keinerlei Validierungen). Beim Verbinden mit einem Server wird der Key¹ mit einigen Client Informationen (Login, Version, ..) an den Server gesendet, dieser schickt vom Key¹ abhängig Daten zurück. Wenn es der für den Account richtige Key¹ ist, verbindet der Client ansonsten wird die Meldung "Corrupted Login" im Client ausgegeben und die Verbindung abgebrochen.
TODO:
* Herausfinden womit die Daten im Key¹ verschlüsselt werden
* Herausfinden wo die Validierungen stattfinden (Server oder Client?)

unnamed file

Python

No Description

#!/bin/bash
for fname in *.ogg;
do
artist=`vorbiscomment "$fname" | grep "^ARTIST" | sed -e 's/ARTIST=//'`
name=`vorbiscomment "$fname" | grep "^TITLE" | sed -e 's/TITLE=//'`
mv "$fname" "$artist - $name.ogg"
done

unnamed file

C/C++

3x3 LED

void setup(){
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);