code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#! /bin/sh
set -xe
autoreconf -sfi
| Shell |
#!/bin/sh
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | Shell |
#!/bin/sh
#
# Copyright 2013 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
MAC_UNAME="Darwin"
if [[ "`uname`" == ${MAC_UNAME} ]]; then
DATE_FORMAT="%Y-%m-%dT%H:%M:%S"
else
DATE_FORMAT="%Y-%m-%d %H:%M:%S"
fi
if [ -z "$1" ]; then
NOW_DATE=$(date "+${DATE_FORMAT}")
echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del... | Shell |
#!/bin/sh
# Remember VERBOSE only works on debug builds of the app
adb shell setprop log.tag.iosched_SyncHelper VERBOSE
adb shell setprop log.tag.iosched_SessionsHandler VERBOSE
adb shell setprop log.tag.iosched_BitmapCache VERBOSE
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | Shell |
#!/bin/sh
# Sessions list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions
# Vendors list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors
# Session detail
#adb shell am start -a... | Shell |
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to ... | Shell |
#!/usr/bin/sh
# for this to work you need to have the following installed:
# - Xcode: http://developer.apple.com/
# - git: http://help.github.com/mac-git-installation/
# - mercurial / hg: http://mercurial.berkwood.com/
# pull three20
cd ..
git clone git://github.com/facebook/three20.git
# pull mailcore
hg clone http:... | Shell |
#!/bin/bash
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell |
#!/bin/bash
BASE_DIR=$(dirname $0)
BUILD_FILE="$BASE_DIR/etc/build.xml"
ant -f $BUILD_FILE -Dbasedir=$BASE_DIR run
| Shell |
#!/bin/bash
BASE_DIR=$(dirname $0)
BUILD_FILE="$BASE_DIR/etc/build.xml"
ant -f $BUILD_FILE -Dbasedir=$BASE_DIR run
| Shell |
#!/bin/bash
BASE_DIR=$(dirname $0)
BUILD_FILE="$BASE_DIR/etc/build.xml"
ant -f $BUILD_FILE -Dbasedir=$BASE_DIR
| Shell |
#!/bin/bash
BASE_DIR=$(dirname $0)
BUILD_FILE="$BASE_DIR/etc/build.xml"
ant -f $BUILD_FILE -Dbasedir=$BASE_DIR
| Shell |
#!/bin/sh
sudo launchctl stop com.fsb.logKext
sudo launchctl unload /Library/LaunchDaemons/logKext.plist
sudo /Library/Application\ Support/logKext/logKextKeyGen remove
sudo rm -f /Library/LaunchDaemons/logKext.plist
sudo rm -rf /System/Library/Extensions/logKext.kext
sudo rm -rf /Library/Application\ Support/logKext
... | Shell |
#!/bin/sh
/usr/bin/find /System/Library/Extensions/logKext.kext -exec /bin/chmod -R g-w {} \;
/sbin/kextunload -b com.fsb.kext.logKext
/sbin/kextload /System/Library/Extensions/logKext.kext
/Library/Application\ Support/logKext/logKextKeyGen
/bin/launchctl load /Library/LaunchDaemons/logKext.plist
/usr/bin/open /LogKe... | Shell |
#!/bin/bash
INSTALL_DIR="`pwd`/jni/libraw"
SRC_DIR="`pwd`/../LibRaw-0.14.7"
cd $SRC_DIR
export TOOLCHAIN="$HOME/NVPACK/toolchain-14"
export NDK="$HOME/NVPACK/android-ndk-r8b"
export SYSROOT="$TOOLCHAIN/sysroot"
export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH"
export ARCH="armv7-a"
export SYS_ROOT="$NDK_ROOT... | Shell |
#!/bin/bash
INSTALL_DIR="`pwd`/jni/exiv2"
SRC_DIR="`pwd`/../exiv2-0.22"
cd $SRC_DIR
export TOOLCHAIN="$HOME/NVPACK/toolchain-14"
export NDK="$HOME/NVPACK/android-ndk-r8b"
export SYSROOT="$TOOLCHAIN/sysroot"
export PATH="$TOOLCHAIN/bin:$SYSROOT/usr/local/bin:$PATH"
export ARCH="armv7-a"
export SYS_ROOT="$NDK_ROOT/pla... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
spawn-fcgi -u www-data -g www-data -d /var/www/simplecd/ -f /var/www/simplecd/code.py -a 127.0.0.1 -p 9001 -F 2
| Shell |
python tools/nt2csv.py tmp/$1
gsutil cp -a public-read tmp/$2 gs://lodcloud/in/$2
bq import lodcloud/rdftable lodcloud/in/$2
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
./kill_process.sh
$ADB shell rm -r /data/data/com.google.android.apps.iosched/* | Shell |
#!/bin/sh
adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format - | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am start \
-a android.intent.action.MAIN \
-c android.intent.category.LAUNCHER \
-n com.google.android.apps.iosched/.ui.HomeActivity
| Shell |
#!/bin/sh
adb shell pm clear com.google.android.apps.iosched | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell am force-stop com.google.android.apps.iosched
| Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
MAC_UNAME="Darwin"
if [[ "`uname`" == ${MAC_UNAME} ]]; then
DATE_FORMAT="%Y-%m-%dT%H:%M:%S"
else
DATE_FORMAT="%Y-%m-%d %H:%M:%S"
fi
if [ -z "$1" ]; then
NOW_DATE=$(date "+${DATE_FORMAT}")
echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del... | Shell |
#!/bin/sh
# Remember VERBOSE only works on debug builds of the app
adb shell setprop log.tag.iosched_SyncHelper VERBOSE
adb shell setprop log.tag.iosched_SessionsHandler VERBOSE
adb shell setprop log.tag.iosched_ImageCache VERBOSE
adb shell setprop log.tag.iosched_ImageWorker VERBOSE
adb shell setprop log.tag.iosched_I... | Shell |
#!/bin/sh
if [[ -z $ADB ]]; then ADB=adb; fi
$ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db" | Shell |
#!/bin/sh
# Sessions list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions
# Vendors list
#adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors
# Session detail
#adb shell am start -a... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
| Shell |
#!/bin/bash
ifconfig yatun0 192.168.9.9 up
echo Aktivejtid
| Shell |
#!/bin/bash
ifconfig yatun0 192.168.9.9 up
echo Aktivejtid
| Shell |
ifconfig yatun0 192.168.9.2 up
echo Yatun Aktivejtid
| Shell |
ifconfig yatun0 down
echo Yatun DIaktivejtid | Shell |
#!/bin/bash
absolute_dir="$( cd "$( dirname "$0" )" && pwd )"
export LD_LIBRARY_PATH=$absolute_dir/lib/linux-`uname -m`
jarpath="$absolute_dir/jar/aster.jar"
android_framework_dir=`grep framework $absolute_dir/../*.properties | cut -d '=' -f 2`
framework=$absolute_dir/jar:$android_framework_dir
debug_parameters=""
... | Shell |
#!/bin/bash
absolute_dir="$( cd "$( dirname "$0" )" && pwd )"
export LD_LIBRARY_PATH=$absolute_dir/lib/linux-`uname -m`
jarpath="$absolute_dir/jar/wookieerunner.jar"
android_framework_dir=`grep framework $absolute_dir/../*.properties | cut -d '=' -f 2`
framework=$absolute_dir/jar:$android_framework_dir
exec java -Xm... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2012, Cake Software Foundation, Inc.
#
# Licensed under The MIT Lic... | Shell |
#!/usr/bin/env bash
################################################################################
#
# Bake is a shell script for running CakePHP bake script
# PHP 5
#
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
# Copyright 2005-2012, Cake Software Foundation, Inc.
#
# Licensed under The MIT Lic... | Shell |
HOSTNAME=`hostname`
HOSTNAMEFQDN=`hostname -f`
cp /etc/courier/imapd.cnf /etc/courier/imapd.cnf.backup
sed -e 's/\CN=.*/CN=$HOSTNAMEFQDN/' /etc/courier/imapd.cnf.backup >/etc/courier/imapd.cnf
cp /etc/courier/pop3d.cnf /etc/courier/pop3d.cnf.backup
sed -e 's/\CN=.*/CN=$HOSTNAMEFQDN/' /etc/courier/pop3d.cnf.backup >/et... | Shell |
sed -e 's/\.*Protocol.*//' /etc/ssh/sshd_config.backup >/etc/ssh/sshd_config
sed -e 's/\.*LoginGraceTime.*//' /etc/ssh/sshd_config.backup >/etc/ssh/sshd_config
sed -e 's/\.*MaxStartups.*//' /etc/ssh/sshd_config.backup >/etc/ssh/sshd_config | Shell |
sed -e 's/\.*START=.*/START=yes/' /etc/default/saslauthd.backup >/etc/default/saslauthd.instcache
sed -e 's/.*OPTIONS=.*/OPTIONS=\"-c\ -m\ \/var\/spool\/postfix\/var\/run\/saslauthd\ -r\"/' /etc/default/saslauthd.instcache >/etc/default/saslauthd | Shell |
sed -e 's/.*OPTIONS=.*/OPTIONS=\"-u\ bind\ -t\ \/var\/lib\/named\"/' /etc/default/bind9.backup >/etc/default/bind9 | Shell |
sed -e 's/\.*DefaultRoot.*//' /etc/proftpd/proftpd.conf.backup >/etc/proftpd/proftpd.conf
sed -e 's/\.*IdentLookups.*//' /etc/proftpd/proftpd.conf.backup >/etc/proftpd/proftpd.conf
sed -e 's/\.*ServerIdent.*//' /etc/proftpd/proftpd.conf.backup >/etc/proftpd/proftpd.conf
echo 'ServerIdent on "FTP Server ready."' >>/etc/... | Shell |
sed -e 's/\#bind-address/bind-address/' /etc/mysql/my.cnf.backup >/etc/mysql/my.cnf | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2010 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is fre... | Shell |
# Generated from ltmain.m4sh.
# ltmain.sh (GNU libtool) 2.2.6b
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# ... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2009-10-06.20; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under t... | Shell |
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
# Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | Shell |
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2010 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
#
# This file is fre... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-11-20'
# This file is (in principle) common to ALL GNU software.
# The presence o... | Shell |
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
timestamp='2009-11-20'
# This file is free software; you can redistribute it and/or modify it
# und... | Shell |
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is ... | Shell |
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
scriptversion=2009-04-28.21; # UTC
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
# 2008, 2009 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free softw... | Shell |
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2009-10-06.20; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
# Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
# it under t... | Shell |
#! /bin/sh
### BEGIN INIT INFO
# Provides: fuse
# Required-Start:
# Should-Start: udev
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Start and stop fuse.
# Description: Load the fuse module and mount the fuse control
# filesystem.
### END INIT INFO
set -e
PA... | Shell |
#! /bin/sh
### BEGIN INIT INFO
# Provides: fuse
# Required-Start:
# Should-Start: udev
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Start and stop fuse.
# Description: Load the fuse module and mount the fuse control
# filesystem.
### END INIT INFO
set -e
PA... | Shell |
#!/bin/sh
#
# Fosfat configure script - (c) 2006-2010 Mathieu Schroeter
#
# (Based on the libplayer configure script, (c) 2006 Benjamin Zores
# fully inspirated from ffmpeg configure script, thanks to Fabrice Bellard
# from omc configure script, thanks to Alexis Saettler)
#
# make sure we are ru... | Shell |
#!/bin/sh
ETC="@sysconfdir@"
PREFIX="@prefix@"
INSTALL="@INSTALL@"
mkdir -p -m 0755 "$DESTDIR$PREFIX/bin" "$DESTDIR$PREFIX/share/yaptest" "$DESTDIR$PREFIX/lib/site_perl" "$DESTDIR$ETC"
echo "Installing program files"
for FILE in `cat program-files.txt`; do
OK="`perl -c "$FILE" 2>&1 | grep 'syntax OK'`"
ISPERL="`e... | Shell |
#!/bin/bash
# Check that required PERL modules are installed
echo
echo Checking required PERL modules are installed
echo ============================================
MISSING_MODULE=0
for MODULE in `cat external-perl-modules.txt`; do
echo -n "Checking for $MODULE ... "
perl -M$MODULE -e '' >/dev/null 2>&1
if [ $? !... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests () {
yaptest-rpcinfo.pl
rpcinfo_based_tests
yaptest-nxscan.pl
yaptest-ms08-067-check.pl
yaptest-ident-user-enum.pl
yaptest-dcetest.pl
yapte... | Shell |
#!/bin/sh
if [ $# != 2 ]; then
echo "Usage: $0 yaptest_template.sql { osx | linux }"
exit 0;
fi
YAPTEST_TEMPLATE_SQL=$1
PLATFORM=$2
if [ "$PLATFORM" = "osx" ]; then
echo "Configuring for OSX"
YAPTEST_TEMPLATE_NAME=yaptest_template
EXISTING_DATABASE=template1
PSQL=psql81
export PATH=$PATH:/opt/local/bin:/opt/l... | Shell |
#!/bin/sh
ETC="@sysconfdir@"
PREFIX="@prefix@"
INSTALL="@INSTALL@"
mkdir -p -m 0755 "$DESTDIR$PREFIX/bin" "$DESTDIR$PREFIX/share/yaptest" "$DESTDIR$PREFIX/lib/site_perl" "$DESTDIR$ETC"
echo "Installing program files"
for FILE in `cat program-files.txt`; do
OK="`perl -c "$FILE" 2>&1 | grep 'syntax OK'`"
ISPERL="`e... | Shell |
#! /bin/sh
# Common wrapper for a few potentially missing GNU programs.
scriptversion=2013-10-28.13; # UTC
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it und... | Shell |
#!/bin/sh
if [ $# != 2 ]; then
echo "Usage: $0 yaptest_template.sql { osx | linux }"
exit 0;
fi
YAPTEST_TEMPLATE_SQL=$1
PLATFORM=$2
if [ "$PLATFORM" = "osx" ]; then
echo "Configuring for OSX"
YAPTEST_TEMPLATE_NAME=yaptest_template
EXISTING_DATABASE=template1
PSQL=psql81
export PATH=$PATH:/opt/local/bin:/opt/l... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
if [ `id -u` != "0" ]; then
echo "ERROR: Your UID/EUID isn't 0. You need to root to run some tests. Use sudo or run as root.\n"
exit 1;
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests ()... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests () {
yaptest-rpcinfo.pl
rpcinfo_based_tests
yaptest-nxscan.pl
yaptest-ms08-067-check.pl
yaptest-ident-user-enum.pl
yaptest-dcetest.pl
yapte... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
if [ `id -u` != "0" ]; then
echo "ERROR: Your UID/EUID isn't 0. You need to root to run some tests. Use sudo or run as root.\n"
exit 1;
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests ()... | Shell |
#!/bin/bash
# Check that required PERL modules are installed
echo
echo Checking required PERL modules are installed
echo ============================================
MISSING_MODULE=0
for MODULE in `cat external-perl-modules.txt`; do
echo -n "Checking for $MODULE ... "
perl -M$MODULE -e '' >/dev/null 2>&1
if [ $? !... | Shell |
#! /bin/sh
# Common wrapper for a few potentially missing GNU programs.
scriptversion=2013-10-28.13; # UTC
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
# it und... | Shell |
#!/bin/sh
# preinst script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details,... | Shell |
#!/bin/sh
# postrm script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | Shell |
#!/bin/sh
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/config.pgsql
dbc_go yaptest $@
| Shell |
#!/bin/sh
# postinst script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# ... | Shell |
#!/bin/sh
# prerm script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version... | Shell |
#!/bin/sh
# preinst script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details,... | Shell |
#!/bin/sh
# postrm script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# ... | Shell |
#!/bin/sh
# postinst script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# ... | Shell |
#!/bin/sh
# prerm script for yaptest
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version... | Shell |
#!/bin/sh
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/config.pgsql
dbc_go yaptest $@
| Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
if [ `id -u` != "0" ]; then
echo "ERROR: Your UID/EUID isn't 0. You need to root to run some tests. Use sudo or run as root.\n"
exit 1;
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests ()... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
if [ `id -u` != "0" ]; then
echo "ERROR: Your UID/EUID isn't 0. You need to root to run some tests. Use sudo or run as root.\n"
exit 1;
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests ()... | Shell |
# TODO not sure why these packages are directly needed by yaptest:
#apt-get install g++
#apt-get install libcrypt-ssleay-perl
#apt-get install libmime-base64-perl
#apt-get install libnet-dns-perl
#apt-get install libnet-ldap-perl
#apt-get install libpcap-dev
#apt-get install libssl-dev
#apt-get install libtemplate-perl... | Shell |
#!/bin/sh
# Check that required PERL modules are installed
echo
echo Checking required PERL modules are installed
echo ============================================
MISSING_MODULE=0
for MODULE in `cat external-perl-modules.txt`; do
echo -n "Checking for $MODULE ... "
perl -M$MODULE -e '' >/dev/null 2>&1
if [ $? != ... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests () {
yaptest-rpcinfo.pl
rpcinfo_based_tests
yaptest-nxscan.pl
yaptest-ms08-067-check.pl
yaptest-ident-user-enum.pl
yaptest-dcetest.pl
yapte... | Shell |
#!/bin/sh
if [ $# != 2 ]; then
echo "Usage: $0 yaptest_template.sql { osx | linux }"
exit 0;
fi
YAPTEST_TEMPLATE_SQL=$1
PLATFORM=$2
if [ "$PLATFORM" = "osx" ]; then
echo "Configuring for OSX"
YAPTEST_TEMPLATE_NAME=yaptest_template
EXISTING_DATABASE=template1
PSQL=psql8
export PATH=$PATH:/opt/local/bin:/opt/lo... | Shell |
#!/bin/sh
if [ $# != 3 ]; then
echo "Usage: $0 bindir datadir"
echo "e.g. $0 /usr/local/bin /usr/local/share/yaptest /usr/local/lib/site_perl"
exit 0;
fi
BINDIR=$1
DATADIR=$2
PERLDIR=$3
mkdir -p -m 0755 $BINDIR $DATADIR $PERLDIR
echo "Installing program files to $BINDIR"
for FILE in `cat program-files.txt`; do
... | Shell |
#!/bin/sh
if [ $# != 2 ]; then
echo "Usage: $0 yaptest_template.sql { osx | linux }"
exit 0;
fi
YAPTEST_TEMPLATE_SQL=$1
PLATFORM=$2
if [ "$PLATFORM" = "osx" ]; then
echo "Configuring for OSX"
YAPTEST_TEMPLATE_NAME=yaptest_template
EXISTING_DATABASE=template1
PSQL=psql8
export PATH=$PATH:/opt/local/bin:/opt/lo... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tcp_port_based_tests () {
yaptest-rpcinfo.pl
rpcinfo_based_tests
yaptest-nxscan.pl
yaptest-ms08-067-check.pl
yaptest-ident-user-enum.pl
yaptest-dcetest.pl
yapte... | Shell |
#!/bin/sh
if [ ! -z $1 ]; then
echo "Usage: $0 dict-dir"
exit 0
fi
if [ "$UID" != "0" ] && [ "$EUID" != "0" ]; then
echo "ERROR: Your UID/EUID isn't 0. You need to root to run some tests. Use sudo or run as root.\n"
exit 1;
fi
# TCP Port-based tests
# Continue with these while we wait for UDP scan to finish
tc... | Shell |
#!/bin/sh
# Check that required PERL modules are installed
echo
echo Checking required PERL modules are installed
echo ============================================
MISSING_MODULE=0
for MODULE in `cat external-perl-modules.txt`; do
echo -n "Checking for $MODULE ... "
perl -M$MODULE -e '' >/dev/null 2>&1
if [ $? != ... | Shell |
#!/bin/sh
if [ $# != 3 ]; then
echo "Usage: $0 bindir datadir"
echo "e.g. $0 /usr/local/bin /usr/local/share/yaptest /usr/local/lib/site_perl"
exit 0;
fi
BINDIR=$1
DATADIR=$2
PERLDIR=$3
mkdir -p -m 0755 $BINDIR $DATADIR $PERLDIR
echo "Installing program files to $BINDIR"
for FILE in `cat program-files.txt`; do
... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.