![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2009
Posts: 6
Rep Power: 0
![]() |
One promem...
I found one bash script. Can you tell me, what does it mean?
#!/bin/sh DIR=$(mktemp -d) mkdir -p ${DIR} 2>&1 > /dev/null cat $0 |tail -n +11 |tar xz -C ${DIR} cd ${DIR}/worm* sh ./wormux.sh cd - rm -Rf ${DIR} exit 0 |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Sep 2009
Posts: 6
Rep Power: 0
![]() |
Correction:
Especially this string:
cat $0 |tail -n +11 |tar xz -C ${DIR} |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Sep 2009
Posts: 3
Rep Power: 0
![]() |
Re: One promem...
DIR=$(mktemp -d) -----------------> Setting the shell value for DIR to make a temp folder of unknown naming convention
mkdir -p ${DIR} 2>&1 > /dev/null -----------------> creates the temp folder while output is being sent to shell and nowhere cat $0 |tail -n +11 |tar xz -C ${DIR} -----------------> input is being read 11 lines at a time while a tarball is being extracted into the folder created earlier for progress reading. cd ${DIR}/worm* -----------------> temp subfolder traversed into worm* (probably wormux) sh ./wormux.sh -----------------> the shell script "wormux.sh" is being executed. cd - -----------------> attacker is moving up a directory in the filesystem rm -Rf ${DIR} -----------------> attacker is deleting all temp files created exit 0 -----------------> Indicates successful deletion of all temp files |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|