#!/bin/sh

cd ../rules
cp todo ../patches/todo.orig
patch -N < ../patches/todo.patch

cd ../config
cp services ../patches/services.orig
patch -N < ../patches/services.patch

cd ../patches
cp cim.sara ../bin
cp Compaq_Insight_Manager_http_server.html ../html/tutorials/vulnerability/Compaq_Insight_Manager_http_server.html 

echo "Original files can be found in patches directory"
