Vortex Level 2

Vortex
in
Level Goal:
Create a special tar file
Helpful Reading Material
GNU tar manual

Source Code: level2.c :

#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>

int main(int argc, char **argv)
{
        char *args[] = { "/bin/tar", "cf", "/tmp/ownership.$$.tar", argv[1], argv[2], argv[3] };
        execv(args[0], args);
}

The tar manual really seems

The tar manual really seems to be unreachable at the moment.
OK, how did you create your tarfiles and what have you done afterwards?.
I'm willing to help, but I need some info more.

darkelf

so what the hell is

so what the hell is happening with the $$ anyway?
i tared it ,but how to untar the file?
cant find ownership.20281.tar :not a file or directory.......
how to find my file?

How come that you think "$$"

How come that you think "$$" will be replaced by "20281"?
You have to look for exactly the file mentioned in the source.
Since "$" is kind of a special sign you may need to mask it when typing the name in your shell.

Best regards
darkelf

so long ,thanks for the

so long ,thanks for the fish
and monkeys :)
i just got it!
\$\$,,,,,,,thats impressive

hateme

I just created 3 files #vi

I just created 3 files

#vi /tmp/xx1
#vi /tmp/xx2
#vi /tmp/xx3

and then i gave them to the executable level2

#./level2 /tmp/xx1 /tmp/xx2 /tmp/xx3

That's it. Since I couldn't see the documentation, I don't know if there is some tips (maybe regarding the sintax "... /tmp/file.$$.tar...", i thought that the double $ may take the value of the first two parameters, just a thought).

HIhi, sorry I'm sure you

HIhi, sorry I'm sure you think it's not funny, but I can't resist smiling.
So you created 3 files and packed them :-) What did you want them to do within your tar? Making more little files? :-)
OK, sorry - serious now.
You want a password for level 3, right? You should think about "what"!!! to pack, then. And "where"!!! Believe me, there is no need for creating files. You are expected to pack an existing one. Think about that. If you still don't get it, let me know.

Best regards
darkelf

Ok, that man is missing, but

Ok, that man is missing, but Google still exists, and you always can run "man tar" at the wargame box.

So long, and thanks for all the fish!

feeling stupid

I'm feeling really stupid cuz this level should be very easy but I didn't understand how to get the password... plus, the link provided for the "GNU tar manual" it's unreachable to me...
I just tried to create 3 files /tmp/1,2 and 3 and pass those three to ./level2 to create the tar but... nothing happen of course...
...

help

iam stuck at that level could sombody help

Where are you stuck? Could

Where are you stuck?
Could you explain, what the problem is? I'm willing to help, but there is so little to do at this level, 2 sentences would reveal everything. Did you read the really tiny source and understood it?.

Best regards
darkelf