#!/bin/sh
#just to show you how - you can edit this to your liking
#by using dcetest and ifids or epdump to find a UUID and Version and port.

MAX=35
UUID=99fcfec4-5260-101b-bbcb-00aa0021347a
VERSIONMAJOR=0
VERSIONMINOR=0
PORT=135
TARGET=192.168.1.100
STARTFUNCTION=5

i=$STARTFUNCTION
while [ "$i" -lt "$MAX" ]; do
j=0
while [ "$j" -lt "300" ]; do
echo "Doing function $i try $j"
./msrpcfuzz $TARGET $PORT $UUID $VERSIONMAJOR $VERSIONMINOR $i 1000 15 2>> /crypt/out_msrpcfuzz

j=`expr $j + 1`
done

i=`expr $i + 1`
done

echo "DONE!"
