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
/* vi: set sw=4 ts=4: */ | |
/* | |
* Mini ping implementation for busybox | |
* | |
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | |
* | |
* Adapted from the ping in netkit-base 0.10: | |
* Copyright (c) 1989 The Regents of the University of California. | |
* All rights reserved. | |
* |
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> | |
#include <unistd.h> | |
#include <time.h> | |
#include <sys/param.h> | |
#include <sys/socket.h> | |
#include <linux/sockios.h> | |
#include <sys/file.h> | |
#include <sys/time.h> | |
#include <signal.h> |
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
#!/bin/bash | |
### Binaries | |
SCREEN=$(which screen) | |
LXCSTART=$(which lxc-start) | |
LXCSTOP=$(which lxc-stop) | |
### Configuration to get lxc directory | |
LXCCONF="/etc/default/lxc" | |
ERR=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
/* Copyright (C) 2013, Felix Janda <felix.janda@posteo.de> | |
Permission to use, copy, modify, and/or distribute this software for | |
any purpose with or without fee is hereby granted, provided that the | |
above copyright notice and this permission notice appear in all copies. | |
SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
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
#define _XOPEN_SOURCE 700 | |
#include <signal.h> | |
#include <unistd.h> | |
int main() | |
{ | |
sigset_t set; | |
int status; | |
if (getpid() != 1) return 1; |
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/perl -w | |
# | |
# Used to regenerate ca-bundle.crt from the Mozilla certdata.txt. | |
# Run as ./mkcabundle.pl > ca-bundle.crt | |
# | |
my $cvsroot = ':pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot'; | |
my $certdata = 'mozilla/security/nss/lib/ckfw/builtins/certdata.txt'; | |
open(IN, "cvs -d $cvsroot co -p $certdata|") |
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
#define _POSIX_C_SOURCE 200809L | |
#include <sys/time.h> | |
#include <time.h> | |
#include <stdlib.h> | |
int main(int argc, char** argv) { | |
int i; | |
char* end; | |
int times; | |
for(i = 1; i < argc; i++) { |
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
/* Support for executing system calls in the context of the game process. */ | |
static const int injection_size = 4; | |
static const char nop_code_bytes[injection_size] = { | |
/* This is the byte pattern used to pad function | |
addresses to multiples of 16 bytes. It consists | |
of RET and a sequence of NOPs. The NOPs are not | |
supposed to be used, so they can be overwritten. */ | |
0xC3, 0x90, 0x90, 0x90 |