This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install fuse4x | |
brew install ntfs-3g | |
sudo brew link ntfs-3g | |
sudo cp -rfX /usr/local/Cellar/fuse4x-kext/0.8.13/Library/Extensions/fuse4x.kext /System/Library/Extensions | |
sudo chmod +s /System/Library/Extensions/fuse4x.kext/Support/load_fuse4x | |
sudo mv /sbin/mount_ntfs /sbin/mount_ntfs.orig | |
sudo touch /sbin/mount_ntfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << EOF | tee /etc/sysconfig/clock | |
ZONE="US/Eastern" | |
UTC=false | |
ARC=false | |
EOF | |
rm -f /etc/localtime | |
ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime | |
cat << EOF | tee /etc/ntp.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, time, os, shelve, hashlib | |
from cuckoo.core.db import CuckooDatabase | |
MALWARE_DIR = "/Users/zwned/Dropbox/malware/" | |
SLEEP_TIME = 60 | |
HISTORY_FILE = "cuckooMon_hist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IHDR | |
bKGD | |
pHYs | |
IDATx | |
vZq7 | |
5k~h | |
... cut for brevity. | |
w{u7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function random_string($max = 20){ | |
$chars = "abcdefghijklmnopqrstuvwxwz0123456789"; | |
for($i = 0; $i < $max; $i++){ | |
$rand_key = mt_rand(0, strlen($chars)); | |
$string .= substr($chars, $rand_key, 1); | |
} | |
return str_shuffle($string); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) | |
{ | |
printf("Current time: "); | |
fflush(stdout); | |
system("date"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
printf("Congratulations on making it to level02!\n"); | |
printf("Point your browser to http://ctf.stri.pe/level02.php for the next challenge.\n"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#define NUM_FNS 4 | |
typedef int (*fn_ptr)(const char *); | |
int to_upper(const char *str) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio .h> | |
#include <string .h> | |
#include <stdlib .h> | |
void fun(char *str) | |
{ | |
char buf[1024]; | |
strcpy(buf, str); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /levels/level05 | |
#!/usr/bin/env python | |
import logging | |
import json | |
import optparse | |
import os | |
import pickle | |
import random | |
import re | |
import string |
OlderNewer