Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • opensrc/zipr
  • whh8b/zipr
2 results
Show changes
Commits on Source (260)
Showing
with 355 additions and 61 deletions
* text=auto !eol
/INSTALL -text
/README.txt -text
/build-all.sh -text
centos_files/at-3.1.13-22.el7.x86_64.rpm -text
centos_files/audit-2.6.5-3.el7_3.1.x86_64.rpm -text
centos_files/audit-libs-2.6.5-3.el7_3.1.i686.rpm -text
centos_files/audit-libs-2.6.5-3.el7_3.1.x86_64.rpm -text
centos_files/bc-1.06.95-13.el7.x86_64.rpm -text
centos_files/cpp-4.8.5-11.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/cracklib-2.9.0-11.el7.i686.rpm -text
centos_files/cups-client-1.6.3-26.el7.x86_64.rpm -text
centos_files/ed-1.9-4.el7.x86_64.rpm -text
centos_files/gcc-c++-4.8.5-11.el7.x86_64.rpm -text
centos_files/glibc-2.17-157.el7_3.1.i686.rpm -text
centos_files/jq-1.5-1.el7.x86_64.rpm -text
centos_files/kernel-headers-3.10.0-514.16.1.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/libcap-ng-0.7.5-4.el7.i686.rpm -text
centos_files/libdb-5.3.21-19.el7.i686.rpm -text
centos_files/libgcc-4.8.5-11.el7.i686.rpm -text
centos_files/libgomp-4.8.5-11.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/libmpc-1.0.1-3.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/libpqxx-4.0.1-1.el7.x86_64.rpm -text
centos_files/libselinux-2.5-6.el7.i686.rpm -text
centos_files/libsepol-2.5-6.el7.i686.rpm -text
centos_files/libstdc++-4.8.5-11.el7.i686.rpm -text
centos_files/libstdc++-4.8.5-11.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/libstdc++-devel-4.8.5-11.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/m4-1.4.16-10.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/mailx-12.5-12.el7_0.x86_64.rpm -text
centos_files/nasm-2.10.07-7.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/ncurses-libs-5.9-13.20130511.el7.i686.rpm -text
centos_files/nspr-4.13.1-1.0.el7_3.i686.rpm -text
centos_files/nss-3.28.4-1.0.el7_3.i686.rpm -text
centos_files/nss-softokn-3.16.2.3-14.4.el7.i686.rpm -text
centos_files/nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm -text
centos_files/nss-util-3.28.4-1.0.el7_3.i686.rpm -text
centos_files/oniguruma-5.9.5-3.el7.x86_64.rpm -text
centos_files/pam-1.1.8-18.el7.i686.rpm -text
centos_files/pam-1.1.8-18.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/patch-2.7.1-8.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/pcre-8.32-15.el7_2.1.i686.rpm -text
centos_files/pcre-8.32-15.el7_2.1.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/perl-Data-Dumper-2.145-3.el7.x86_64.rpm -text
centos_files/perl-JSON-PP-2.27202-2.el7.noarch.rpm -text
centos_files/postgresql-9.2.18-1.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/postgresql-contrib-9.2.18-1.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/postgresql-devel-9.2.18-1.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/postgresql-libs-9.2.18-1.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/postgresql-server-9.2.18-1.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/readline-6.2-9.el7.i686.rpm -text
centos_files/redhat-lsb-core-4.1-27.el7.centos.1.i686.rpm -text
centos_files/redhat-lsb-submod-security-4.1-27.el7.centos.1.i686.rpm -text
centos_files/screen-4.1.0-0.23.20120314git3c2946.el7_2.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/spax-1.5.2-13.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/sqlite-3.7.17-8.el7.i686.rpm -text
centos_files/time-1.7-45.el7.x86_64.rpm -text
centos_files/uuid-1.6.2-26.el7.x86_64.rpm -text svneol=unset#application/x-rpm
centos_files/zlib-1.2.7-17.el7.i686.rpm -text
centos_files/zlib-1.2.7-17.el7.x86_64.rpm -text svneol=unset#application/x-rpm
/cfar_postgres_setup.sh -text
/cfar_postgres_setup_for_other.sh -text
/clean-all.sh -text
/externals.conf -text
/get-peasoup-packages.sh -text
/irdb_vars -text
non_overlapping_heap/Makefile -text
non_overlapping_heap/noh.c -text
non_overlapping_heap/tests/Makefile -text
non_overlapping_heap/tests/inputfile -text
non_overlapping_heap/tests/test1.c -text
non_overlapping_heap/tests/test2.c -text
non_overlapping_libraries/ld-linux-x86-64.so.2 -text
non_overlapping_libraries/patchelf -text
/manifest.txt -text
/postgres_setup.sh -text
/regen_install.sh -text
/set_command_envs -text
/set_env_vars -text
/set_ida_server -text
/start_dev.sh -text
/svn.externals.uva_dev -text
ubuntu16_files/README.txt -text
ubuntu16_files/Vagrantfile -text
ubuntu16_files/generate_installer.sh -text
ubuntu16_files/install.sh -text
ubuntu16_files/manifest.txt -text
ubuntu16_files/test.sh -text
/yum_packages.sh -text
installed
manifest.txt.config
ubuntu16_files/manifest.txt.config
zest_runtime
before_script:
- "source ~gitlab-runner/cicd_support/cicd_support.shinc"
after_script:
- "source ~gitlab-runner/cicd_support/cicd_support.shinc"
stages:
- clean
- build
- test
#
# Cleaning
#
.do-nightly-clean: &do-nightly-clean
stage: clean
script:
- ./cicd_testing/do-clean.sh
do-nightly-clean-ubuntu18:
<<: *do-nightly-clean
tags:
- ubuntu18
do-nightly-clean-ubuntu16:
<<: *do-nightly-clean
tags:
- ubuntu16
#
# Building
#
.do-build: &do-build
stage: build
script:
- ./cicd_testing/do-build.sh
do-build-ubuntu18:
<<: *do-build
tags:
- ubuntu18
do-build-ubuntu16:
<<: *do-build
tags:
- ubuntu16
#
# $PSZ ls
#
.xform-ls: &xform-ls
stage: test
script:
- ./cicd_testing/xform-ls.sh
xform-ls-ubuntu18:
<<: *xform-ls
tags:
- ubuntu18
xform-ls-ubuntu16:
<<: *xform-ls
tags:
- ubuntu16
#
# test_cmds.sh rida
#
.basic-pgms-rida: &basic-pgms-rida
stage: test
script:
- ./cicd_testing/basic-pgms-rida.sh
basic-pgms-rida-ubuntu18:
<<: *basic-pgms-rida
tags:
- ubuntu18
basic-pgms-rida-ubuntu16:
<<: *basic-pgms-rida
tags:
- ubuntu16
#
# test_cmds.sh rida-p1
#
.basic-pgms-rida-p1: &basic-pgms-rida-p1
stage: test
script:
- ./cicd_testing/basic-pgms-rida-p1.sh
basic-pgms-rida-p1-ubuntu18:
<<: *basic-pgms-rida-p1
tags:
- ubuntu18
basic-pgms-rida-p1-ubuntu16:
<<: *basic-pgms-rida-p1
tags:
- ubuntu16
[submodule "security_transforms"]
path = security_transforms
url = git@git.zephyr-software.com:allnp/security_transforms.git
[submodule "idaproCur"]
shallow = true
path = idaproCur
url = git@git.zephyr-software.com:allzp/idapro71
[submodule "idaproCur_sdk"]
shallow = true
path = idaproCur_sdk
url = git@git.zephyr-software.com:allzp/idapro71_sdk
[submodule "irdb_transforms"]
path = irdb_transforms
url = git@git.zephyr-software.com:allnp/irdb_transforms.git
[submodule "SMPStaticAnalyzer"]
path = SMPStaticAnalyzer
url = git@git.zephyr-software.com:allnp/SMPStaticAnalyzer.git
[submodule "zipr"]
path = zipr
url = git@git.zephyr-software.com:allzp/zipr.git
[submodule "zipr_sdk"]
path = zipr_sdk
url = git@git.zephyr-software.com:allnp/zipr_sdk.git
[submodule "daffy"]
path = daffy
url = git@git.zephyr-software.com:allnp/daffy.git
[submodule "pedi"]
path = pedi
url = git@git.zephyr-software.com:allnp/pedi.git
[submodule "IdaProServer"]
path = IdaProServer
url = git@git.zephyr-software.com:allnp/IdaProServer.git
[submodule "zipr_large_only_plugin"]
path = zipr_large_only_plugin
url = git@git.zephyr-software.com:allnp/zipr_large_only_plugin.git
[submodule "peasoup_examples"]
path = peasoup_examples
url = git@git.zephyr-software.com:allnp/peasoup_examples.git
[submodule "zipr_callbacks"]
path = zipr_callbacks
url = git@git.zephyr-software.com:allnp/zipr_callbacks.git
[submodule "zipr_unpin_plugin"]
path = zipr_unpin_plugin
url = git@git.zephyr-software.com:allnp/zipr_unpin_plugin.git
[submodule "zipr_scfi_plugin"]
path = zipr_scfi_plugin
url = git@git.zephyr-software.com:allzp/zipr_scfi_plugin.git
[submodule "zipr_relax_plugin"]
path = zipr_relax_plugin
url = git@git.zephyr-software.com:allnp/zipr_relax_plugin.git
[submodule "zipr_trace_plugin"]
path = zipr_trace_plugin
url = git@git.zephyr-software.com:allnp/zipr_trace_plugin.git
[submodule "zipr_push64_reloc_plugin"]
path = zipr_push64_reloc_plugin
url = git@git.zephyr-software.com:allnp/zipr_push64_reloc_plugin.git
[submodule "zipr_install"]
path = zipr_install
url = git@git.zephyr-software.com:allnp/zipr_install.git
# Notes for setting up, building and installing peasoup_umbrella (non-CFAR)
0. IMPORTANT: You will need your own valid IDA Pro license key and IDA Pro installation. Update the IDA* lines in the file set_env_vars to point to your installation.
1. Get the required packages by running the get-peasoup-packages.sh script.
. ./set_env_vars; bash ./get-peasoup-packages.sh all
2. Set up the postgres databases (enter password of your choice)
bash ./postgres_setup.sh
3. Build and save the build results to build.out
bash ./build.sh | tee -ai build.out
If the build succeeds, a directory named $PEASOUP_UMBRELLA_DIR/installed will be created (see file set_env_vars for environment variable settings). This directory will contain the built versions of the modules that comprise the toolchain.
To test your installation, try a simple analysis using zipr static rewriter.
. ./set_env_vars; $PSZ `which ls` ls.zipr
If the toolchain build has completed successfully, then ls.zipr will be a working, statically rewritten version of ls.
Subproject commit cb67db40bac86cabef2e769afa6b8f7ec613640a
Congratulations! You've received a copy of
the Zipr toolchain. Before use, you need to install it.
To install, pick an approriate directory for your OS from the
list below, and read the README file contained in that directory.
* ubuntu16_files (Zipr Toolchain on ubuntu 16.04)
* centos_files (DoubleHelix toolchain on CentOS 7.1)
Subproject commit 2aa2a42b1b002fa36484b3e921b1849c0a53ff90
......@@ -10,47 +10,71 @@ if [ "$PEASOUP_UMBRELLA_DIR" != "$FULL_BUILD_LOC" ]; then
exit 1;
fi
echo
echo "Building Zipr toolchain."
echo
SCONSDEBUG=""
if [[ "$*" =~ "--debug" ]]; then
SCONSDEBUG=" debug=1 "
fi
if [ `basename $FULL_BUILD_LOC` == "cfar_umbrella" ]; then
cfar_mode="--enable-cfar"
fi
# stratafier
cd $PEASOUP_UMBRELLA_DIR/stratafier
make || exit
mkdir -p $ZEST_RUNTIME/lib32
mkdir -p $ZEST_RUNTIME/lib64
mkdir -p $ZEST_RUNTIME/bin
mkdir -p $ZEST_RUNTIME/sbin
# strata
if [ ! "$STRATA_HOME" ]; then
echo "STRATA_HOME not set.";
exit 1;
if [ ! -f manifest.txt.config -o ! -d "$PS_INSTALL" ]; then
mkdir -p "$PS_INSTALL"
$PEDI_HOME/pedi --setup -m manifest.txt -l ida -l ida_key -l ps -l zipr -l stars -i $PS_INSTALL
fi
if [ `uname -m` = 'x86_64' ]; then
# build 32-bit strata
if [ ! -d $STRATA_HOME32 ] ; then
cd $STRATA
if [ -f Makefile ] ; then
make clean distclean
fi
cd $PEASOUP_UMBRELLA_DIR
echo Creating strata 32-bit build directory
cp -R $STRATA $STRATA32
use_strata=0
if [[ $use_strata = 1 ]]; then
# stratafier
cd $PEASOUP_UMBRELLA_DIR/stratafier
make || exit 1
# strata
if [ ! "$STRATA_HOME" ]; then
echo "STRATA_HOME not set.";
exit 1;
fi
cd $STRATA_HOME32
STRATA_HOME=$STRATA_HOME32 STRATA=$STRATA_HOME32 ./build -host=i386-linux || exit
# build x86-64 strata
cd $STRATA_HOME
if [ -f Makefile -a Makefile -nt configure -a Makefile -nt Makefile.in ]; then
echo Skipping Strata reconfigure step
if [ `uname -m` = 'x86_64' ]; then
# build 32-bit strata
if [ ! -d $STRATA_HOME32 ] ; then
cd $STRATA
if [ -f Makefile ] ; then
make clean distclean
fi
cd $PEASOUP_UMBRELLA_DIR
echo Creating strata 32-bit build directory
cp -R $STRATA $STRATA32
fi
cd $STRATA_HOME32
STRATA_HOME=$STRATA_HOME32 STRATA=$STRATA_HOME32 ./build -host=i386-linux || exit 1
# build x86-64 strata
cd $STRATA_HOME
if [ -f Makefile -a Makefile -nt configure -a Makefile -nt Makefile.in ]; then
echo Skipping Strata reconfigure step
else
./configure $cfar_mode || exit 1
fi
make || exit 1
else
./configure $cfar_mode || exit
cd $STRATA_HOME
./build $cfar_mode || exit 1
fi
make || exit
else
cd $STRATA_HOME
./build $cfar_mode || exit
fi
# smp-static-analyzer
......@@ -66,59 +90,64 @@ if [ ! "$SECURITY_TRANSFORMS_HOME" ]; then
fi
cd $SECURITY_TRANSFORMS_HOME
scons || exit
scons $SCONSDEBUG -j 3 || exit 1
cd $SMPSA_HOME
scons || exit
scons $SCONSDEBUG -j 3 || exit 1
cd $PEASOUP_HOME
make || exit
make || exit 1
if [ -d $ZIPR_CALLBACKS ]; then
cd $ZIPR_CALLBACKS
./configure --enable-p1 --prefix=$ZIPR_INSTALL
make || exit
make install || exit
make || exit 1
make install || exit 1
fi
if [ -d $ZIPR_HOME ]; then
cd $ZIPR_HOME
scons || exit
scons $SCONSDEBUG -j 3|| exit 1
fi
if [ -d $ZIPR_SCFI_PLUGIN ]; then
cd $ZIPR_SCFI_PLUGIN
scons || exit
scons $SCONSDEBUG || exit 1
fi
cd $PEASOUP_UMBRELLA_DIR/zipr_large_only_plugin/
scons || exit
scons $SCONSDEBUG || exit 1
if [[ -e $PEASOUP_UMBRELLA_DIR/zipr ]] && [[ -e $PEASOUP_UMBRELLA_DIR/zipr_relax_plugin ]] ; then
cd $PEASOUP_UMBRELLA_DIR/zipr_relax_plugin/
scons $SCONSDEBUG || exit 1
fi
if [[ -e $PEASOUP_UMBRELLA_DIR/zipr ]] && [[ -e $PEASOUP_UMBRELLA_DIR/zipr_trace_plugin ]] ; then
cd $PEASOUP_UMBRELLA_DIR/zipr_trace_plugin/
scons $SCONSDEBUG || exit 1
fi
cd $PEASOUP_UMBRELLA_DIR/zipr_push64_reloc_plugin
scons || exit
scons $SCONSDEBUG || exit 1
cd $PEASOUP_UMBRELLA_DIR/zipr_unpin_plugin
scons || exit
scons $SCONSDEBUG || exit 1
cd $IRDB_TRANSFORMS
scons || exit
scons $SCONSDEBUG -j 3 || exit 1
cd $PEASOUP_UMBRELLA_DIR
if [ -d DieHard ]; then
cd DieHard
./build_diehard.sh
fi
cd $PEASOUP_UMBRELLA_DIR
if [ -d non_overlapping_heap ]; then
make -C non_overlapping_heap
if [[ -d $DAFFY_HOME ]] && [[ $(uname -p) == 'x86_64' ]]; then
cd $DAFFY_HOME
./setup_cfar.sh || exit 1
fi
cd $PEASOUP_UMBRELLA_DIR
$PEDI_HOME/pedi -m manifest.txt
echo
echo
echo "peasoup/cfar_umbrella Overall build complete."
echo "Zipr toolchain build complete."
echo
echo
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added