mirror of
https://github.com/bvanroll/college-pentesting.git
synced 2025-08-29 20:12:41 +00:00
pls groot genoeg
This commit is contained in:
28
verb/binary/attemp2/fs/cpio/sbin/cpubusy.sh
Executable file
28
verb/binary/attemp2/fs/cpio/sbin/cpubusy.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id: //WIFI_SOC/release/SDK_4_1_0_0/source/user/rt2880_app/scripts/cpubusy.sh#1 $
|
||||
#
|
||||
# usage: cpubysu.sh
|
||||
#
|
||||
|
||||
echo ""
|
||||
echo "!! 'killall cpubusy.sh' to Break !!"
|
||||
echo ""
|
||||
|
||||
file="/tmp/dummy"
|
||||
cpfile="/tmp/testcopy"
|
||||
i=0
|
||||
x=0
|
||||
|
||||
while true; do
|
||||
i=`expr $i + 1`
|
||||
echo "--- $i ---" > ${file}
|
||||
j=0
|
||||
while [ $j -lt 1000 ]; do
|
||||
j=`expr $j + 1`
|
||||
echo " cpu dummy echo for the $i, $j times" >> ${file}
|
||||
cp /bin/goahead ${cpfile}
|
||||
done
|
||||
sleep 1
|
||||
done
|
||||
|
Reference in New Issue
Block a user