Pass the GIAC Security Certification: GPYC GPYC Questions and answers with CertsForce

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

During a password guessing attack, which HTTP request method would a Python program most commonly call to submit a usemame and password to a target website?

Options:

A.

OPTIONS


B.

POST


C.

CONNECT


Expert Solution
Questions # 2:

An attacker does not yet know the IP address of his target. He uses the "socket" module to create a backdoor program. He is writing the command to bind the computer's current IP address and port 4444 to the "backdoor" socket. Which command should he use?

Options:

A.

backdoor.bind(UDP, 4444)


B.

backdoor.bind()(4444)


C.

backdoor.bind((*))


D.

backdoor.bind(("",4444))


Expert Solution
Questions # 3:

A log file is stored in variable "a". The file has the following format for each log entry, in order, stored in big endian:

Field 1: 2-byte integer

Field 2: 2-byte integer

Field 3: 4-byte string

Which of the following would unpack a line from the log file into the proper fields?

Options:

A.

struct. unpack('>HH4s',a)


B.

stmct.unpack('


C.

struct.unpack('>HHHH,/a)


D.

stnjct.unpack('!BxBx4s'/a)


Expert Solution
Questions # 4:

How many lines will the following code print?

Question # 4

Options:

A.

0


B.

1


C.

99


D.

199


E.

2


Expert Solution
Questions # 5:

What does the attacker do in a SQL Injection attack?

Options:

A.

Obtains an administrative login for a SQL database server


B.

Finds and exploits CVSS-SIG vulnerabilities in a particular version of SQL database


C.

Inject information into an SQL server via an undocumented administrative interface


D.

Submits a string that is interpreted as a SQL database command


Expert Solution
Questions # 6:

A programmer attempts to run the Python program hello.py as follows, but an error occurs. What is the cause of this error?

Question # 6

Options:

A.

hello.py is missing the line #!/usr/bin/python


B.

smtp_mime was replaced with Python


C.

Python cannot find the script "hello"


D.

hello.py is improperly encoded with UTF-16le


Expert Solution
Questions # 7:

Which of the following will be the value of the variable y?

Question # 7

Options:

A.

7


B.

y has no value. The following error occurred: IndexError: list index out of range


C.

6


D.

y has no value. The following error occurred: KeyError: 'b'


Expert Solution
Questions # 8:

What does the following command do?

pip search syslog

Options:

A.

Searches for python modules related to syslog


B.

Searches for functions in the syslog module


C.

Results in a syntax error for the pip function


D.

Determines whether the syslog module is loaded


Expert Solution
Questions # 9:

When the following program "question.py" is executed with Python what is the output?

Question # 9

Options:

A.

10


B.

5


C.

FunctionOverride: function i assigned not called


D.

Function i at 0xb7489764>


Expert Solution
Questions # 10:

When using the Python "sockets" module, which of the following calls is used to transmit data to a specific IP address?

Options:

A.

sendto


B.

connect


C.

bind


D.

try


Expert Solution
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions