Skip to content

Instantly share code, notes, and snippets.

@DarkStorm652
DarkStorm652 / output_bot.txt
Created May 2, 2012 21:10
Dump of my bot's communication with the server.
SMProxy: Log opened at 5:03:34 PM
Proxy parameters:
Local Endpoint: 127.0.0.1:25564
Remote Endpoint: localhost:25565
{5:04:04 PM} [CLIENT->SERVER]: Handshake (0x2)
[02:00:1a:00:56:00:54:00:48:00:7a:00:59:00:72:00:45:00:62:00:41:00:65:00:3b:00:6c:00:6f:00:63:00:61:00:6c:00:68:00:6f:00:73:00:74:00:3a:00:32:00:35:00:35:00:36:00:34]
Username/Hostname (String): VTHzYrEbAe;localhost:25564
{5:04:04 PM} [SERVER->CLIENT]: Handshake (0x2)
[02:00:01:00:2d]
@DarkStorm652
DarkStorm652 / merge_logs.sh
Created April 11, 2012 00:26
Merges xchat logs (or any other logs of textual form). Run as: ./merge_logs.sh <source directory> <output directory>
#!/bin/bash
directory=$1
output_dir=$2
start=$(date +%s)
start_millis=$(date +%s.%N)
if [ ! -d "$directory" ];then
echo "Source directory is not a directory or does not exist!"
exit
fi