Docsity

Linux Commands and Computer Architecture Fundamentals, Exams of Nursing

Toggle sidebar
bg1
GFACT CERTIFICATION EXAM QUESTIONS
WITH 100% COMPLETE SOLUTION LATEST
UPDATES 2024 GRADE A+
What is it called when a user makes a change to the master code in a Git repository?
A) Pull
B) Clone
C) Branch
D) Commit CORRECT ANSWER: Commit
A GIAC administrator has configured their company's web server to send an X-Frame-Options header in
every request to an HTTP page. The admin has configured the option to use the values
DENY,SAMEORGIN, or ALLOW-FROM.
What attack is the administrator addressing with the techniques described above?
A) SQL injection
B) Cross-Site request forgery
C) Cross-Site scripting
D) Directory traversal
E) Clickjacking CORRECT ANSWER: Clickjacking
How do prepared statements help prevent SQL injection attacks?
A) Query parameters are sent in the body of a POST request
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Linux Commands and Computer Architecture Fundamentals and more Exams Nursing in PDF only on Docsity!

GFACT CERTIFICATION EXAM QUESTIONS

WITH 100% COMPLETE SOLUTION LATEST

UPDATES 2024 GRADE A+

What is it called when a user makes a change to the master code in a Git repository? A) Pull B) Clone C) Branch D) Commit CORRECT ANSWER: Commit A GIAC administrator has configured their company's web server to send an X-Frame-Options header in every request to an HTTP page. The admin has configured the option to use the values DENY,SAMEORGIN, or ALLOW-FROM. What attack is the administrator addressing with the techniques described above? A) SQL injection B) Cross-Site request forgery C) Cross-Site scripting D) Directory traversal E) Clickjacking CORRECT ANSWER: Clickjacking How do prepared statements help prevent SQL injection attacks? A) Query parameters are sent in the body of a POST request

B) Queries are appended with an authorization token C) Query language is kept separate from user supplied data D) Queries submitted by users are HTML entity encoded CORRECT ANSWER: C) Query language is kept separate from user supplied data If the user agent is used, where would it be found in the HTTP protocol? A) In the response body B)In the response header C) Delimited by an h1 tag D) In a GET Request CORRECT ANSWER: In a GET Request A web application is configured to validate a unique token value for each submitted user request. What threat is being mitigated? A)Local file inclusion B) Cross Site request forgery C)Drive-By downloads D) Command injection CORRECT ANSWER: Cross Site request forgery Which exploit takes advantage of a web-page field that does not validate input? A) Session hijacking B) command injection C)Password cracking D) Steganography CORRECT ANSWER: Command injection Which computer component manages ongoing access to a computer's shared RAM and drive storage resources?

  • rwsr-xr-x 1 root root 44k May 7th 2014 /bin/ping A)The program will be run with root permissions B) The program can only be saved by the root user C)The program will create a tunnel to the remote host D) Yo mama CORRECT ANSWER: The program will be run with root permissions What is the result of the following Linux command? sudo find /etc - exec sh - i /; A)Updating files in /etc with sh B)Listing executable file in /etc C) Gaining a shell with root access CORRECT ANSWER: Gaining a shell with root access Consider the TCP communication between two computers shown below. What will computer A do following Computer B's response? Computer A sends 20 bytes of data Computer B responds with Computer A's acknowledgment number + 15 A)Send a FIN packet to close the connection B) Send the missing five bytes C)Resend the entire packet D)Ask computer B what bytes are missing CORRECT ANSWER: Resend the entire packet A user adds a new directory to a Linux system's $PATH environment variable, #export $PATH=$PATH:new_dir. What action will cause the updated $PATH variable change back to the original value?

A)Closing and re-opening the terminal B)Running the command "rm $PATH" C) Echoing the $PATH to /dev/null CORRECT ANSWER: Closing and reopening the terminal When a program runs on a computer, it temporaily loads code into memory that contains information about the program. The code is deleted when the program is closed. What is the instance of this code called? A) Process B) Kernel C) BIOS D) Application Hint: Every time you run a program on your computer, a "BLANK" is created in memory. When you close the program, the "BLANK" is killed. CORRECT ANSWER: Process What is a requirement for cross-site request forgery to work? A) The victim must be authenticated with the target site B) The Attacker must have root privileges on the victim's system C) The victim must be a member of the IIS_USER group D) The attacker must steal the victim's cookie Hint: CSRF involves an authenticated user clicking on a link that an attacker plants. This link will cause the victim's browser to perform an action using their authenticated credentials. CORRECT ANSWER: The victim must be authenticated with the target site Which of the following commands will set or modify an environment variable?

Hint: "Blank" bugs allow an attacker to achieve "arbitrary code execution." This, in effect, allows them to assume control of a target system. They can come in many flavors but are often seen as the most high- risk category of attack. CORRECT ANSWER: RCE Which buffer overflow mitigation places a value before the return pointer in the stack? A) Canary B) Parameterized query C) Random session token D) Format String Hint: The stack "blank" is a value that sits before the return pointer in the stack. When the program's execution hits the return instruction, before the return pointer is loaded into EIP, the value of the stack "blank" is checked. If it has been overwritten, then the program terminates because the CPU then knows that something dodgy was going on, since the value of the stack "blank" which shouldn't have changed has changed. The stack "blank" can usually be bypassed by finding out the value the "blank" is expected to be and overwriting it with the same value. Sometimes this is made harder by a stack "blank" that contains null byte values since many functions which read user input in C will stop reading more data as soon as they see a null byte. It doesn't CORRECT ANSWER: Canary Which Linux command will allow a user to run a command with escalated privileges using their own password? A)sudo B)bash C)su D)which Hint: The "blank" program will allow a user to temporarily take on the privileges of the root account to run a command and then it will drop user privilege level back down to your normal account levels after the command runs. The way "blank" works is there is a configuration file called "sudoers" file, which basically a list of which accounts are allowed to do what with superuser privileges (and only root can edit it). When a user wants to run a command with privileges, they append "blank" before the

command. They will then be prompted for their normal account password (not the root password), and then the command will run with super user privileges. CORRECT ANSWER: sudo Which of the following is a form of one-way encryption? A) Hashing B)Symmetric C)Substitution D)Asymmetric Hint: "Blank" is a third form of encryption, but its uses are a bit more niche. The third form of encryption is called hashing: a form of one-way encryption. That means, once data is encrypted, the process can not be reversed to go from the encrypted data back to the plaintext. There are some properties of hashing that make it incredibly useful. The same plain text put through the same hashing algorithm will always produce the same encrypted data. However, if even one bit of the plaintext is changed, the resulting hash will be completely different. Similarly, with a good hashing algorithm, two different pieces of plaintext can not work out to the same hash CORRECT ANSWER: Hashing What is the name of the file that a web server uses to tell search engines to avoid certain locations? A)robots.txt B)my.conf C)index.html D)admin.php Hint: This file can be used by web servers to direct well behaved crawling bots to avoid certain web pages hosted on the server. my. conf if a mysql configuration file. index.html is generally the first page or landing page for a site. admin.php could be an administrative page for the website but does not direct bots to bypass certain pages. CORRECT ANSWER: robots.txt

D) Packet analyzer Hint: A "blank" like GDB can identify a program's functions and the memory addresses they start at (the memory addresses are the ones that start 0x...) CORRECT ANSWER: Debugger An incident handler has determined that malware is launching with local Administrator privileges when the compromised hosts starts and persists with each reboot. Which location should the incident handler check for this type of malware? A) C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp B) C:\Users<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C) HKLM\System\CurrentControlSet\Services CORRECT ANSWER: HKLM\System\CurrentControlSet\Services What is a buffer overflow? A)Input is not properly restricted by an application and is exploited by an attacker to run code of the attacker's choosing B) Input is not properly sanitized which allows an attacker to craft queries that will cause data to be disclosed from a database C)Input is not properly limited within an iframe and an attacker redirects input that causes the browser to visit an attacker-controlled site D) Input is not restricted to a single cookie and an attacker sends a link that causes the destination site to authenticate an action CORRECT ANSWER: Input is not properly restricted by an application and is exploited by an attacker to run code of the attacker's choosing An attacker enters "cat /etc/passwd" into an input field on a website. Which flaw would allow the input to be executed by the web server's operating system? A) SQL injection B) Directory traversal C)Command Injection

D)Cross-Site Scripting CORRECT ANSWER: Command injection Which tool should an analyst user to perform live analysis on a host's RAM? A) Registry B) SIEM C) Volatility D) Event Viewer CORRECT ANSWER: Volatility Which file in the directory would considered suspicious? A) drwxrwxr-x 2 giac giac 4.0K Jun 26 11:. B) drwxr-xr-x 11 giac giac 4.0K Jun 26 11:.. C) - rw-rw-r-- 1 giac giac 4.0k Jun 26 11:... D) - rwxrwxr-x 1 giac giac 0 Jun 26 11:47 1.txt CORRECT ANSWER:... The address below is used at which OSI layer? A) Data Link B) Network C) Session D) Transport CORRECT ANSWER: Data Link Which PowerShell command string will display the contents of the file aliases.ps1 in the current directory? A) Get-Content aliases.ps B) Get-ChildItems aliases.ps C) Read-Host aliases.ps

C) Hub D) Client CORRECT ANSWER: Daemon If malicious software (malware) infects a computer, at which level does it require the most effort to detect and remove? A) Kernel B) System libraries C) Application code D) Local user file CORRECT ANSWER: Kernel When debugging an executable with pwndbg, what happens when a function named function_A is stepped over, instead of into? A) The debugger executes the code within function_A and moves to the next instruction B) The debugger skips over the code within function_A and moves to the next instruction C)The debugger will stop at each line of code within function_A CORRECT ANSWER: The debugger executes the code within function_A and moves to the next instruction In Python, which symbol indicates the text after it is a comment? A) # B) ; C)! D)-- CORRECT ANSWER: # What is encryption? CORRECT ANSWER: Encryption is the process of converting data from one form to another What does encryption provide?

A)Authentication B)Integraty C)Non-repudiation D)All of the above CORRECT ANSWER: All of the above In order to encrypt data, what 3 things are necessary? CORRECT ANSWER: The original unencrypted message, the Encryption key, and the encryption algorithm What 3 things do you need to decrypt data? CORRECT ANSWER: The encrypted data, The encryption key for decryption, and the encryption algorithm What makes an encryption a strong encryption? A) An encryption where the mathematical calculations are open to the public B) An encryption that was bought from a 3rd party C) An encryption with no mathematical calculations D) A decrypted encryption CORRECT ANSWER: An encryption where the mathematical calculations are open to the public What are the 2 ways to break encryption? CORRECT ANSWER: Find a flaw in the encryption and to guess the encryption key that was used What is the difference between encryption and encoding? A)An encryption has an encryption key while encoding does not B) Encoding involves multiple encryption keys while encryption keys only involve one C) There is no difference between them D)They are the same thing just different names CORRECT ANSWER: An encryption has an encryption key while encoding does not

What is considered a good hashing encryption algorithm? A) MD B) SHA C) SHA D)None of the above CORRECT ANSWER: SHA What is a command injection? CORRECT ANSWER: A flaw in a web application that takes advantage in how a web application process user input What is the best way to mitigate a Command Injection? CORRECT ANSWER: To program the web application without a third party entity and to sanitize the user input What is a file inclusion attack? CORRECT ANSWER: A result of adding resources on a page based on user input What is the best way to mitigate a file inclusion attack? CORRECT ANSWER: The best way to avoid being vulnerable to this attack is to avoid dynamically adding files based on user input What is a Cross Site Scripting Attack? CORRECT ANSWER: A client side attack that targets users that are browsing the site. Typically occurs in areas of the site where users input information How do you mitigate a Cross Site Scripting Attack? CORRECT ANSWER: To sanitize the user input and to use a 3rd party library and not implement your own filter What is an SQL injection attack? CORRECT ANSWER: A type of injection attack wherein the attacker exploits the web application to send unauthorized commands to a backend database server How do you mitigate SQL CORRECT ANSWER: It is to not user an insecure method of passing queries to the database

What is a Session Guessing attack? CORRECT ANSWER: Where an attacker guesses a Session Token and logs into a site under your information What is the best way to mitigate a Session Guessing attack? CORRECT ANSWER: To use truly random session tokens that expire What is a clickjacking attack? CORRECT ANSWER: Where a user can be tricked into clicking on something without realizing that they did How do you mitigate a clickjacking attack? CORRECT ANSWER: Make sure that the web server itself sends the X-Frame Options header in the HTTP response What are the three values within a X-Frame Options header in an HTTPS response? CORRECT ANSWER: Deny, Same Origin, and Allow-FROM What is a Cross Site Request Forgery? CORRECT ANSWER: Where a user uses unauthorized commands submitted from a user that the web application trusts How do you mitigate a Cross Site Request Forgery? A) Make sure every HTTP request submitting a form or any other kind of input comes from the same origin B) Use a Cross Site Request Forgery Token which is required by every form or input on a site C) Both A and B D) None of the above CORRECT ANSWER: Both A and B Where should the CSRF tokens be located in to keep a user's session from being vulnerable? CORRECT ANSWER: The POST Request What is a directory traversal attack? CORRECT ANSWER: A directory traversal attack is an injection of directory code to try and navigate to a specific directory / file on a computer

C) Where the CPU goes to after all functions are completed D) Where the pointer is CORRECT ANSWER: Where the CPU goes to next after completing a function What is a stack canary? CORRECT ANSWER: It is a value that sits before the return pointer of the stack. What is Address Space Layout Randomization? CORRECT ANSWER: A protection that involves randomizing the Memory address that a program gets loaded into each run What is a Format String Vulnerability? CORRECT ANSWER: It occurs when you run printf in C without a format string How do you mitigate a Format String Vulnerability? CORRECT ANSWER: Never use printf without a format string What kind of vulnerability is within a FTP Service? A) Buffer Overflow B) Integer Overflow C) Command Injection D) Nothing it is completely fine CORRECT ANSWER: Buffer Overflow What is Metasploit? CORRECT ANSWER: A penetration testing tool used to automatically execute exploits against targeted systems What application is used when running Metasploit? A) Linux B) Kali Linux C) Command Prompt D) Its got its own application window CORRECT ANSWER: Kali Linux

Why are patch cycles important? CORRECT ANSWER: To keep all organizations up to date for all technology that it uses to protect them against new and old vulnerabilities Why is end of support for applications or technology important? CORRECT ANSWER: Because you should never use applications or tech that is no longer supported from developers What is Social Engineering? A) Where engineering is done publicly B)Where you trick someone into doing something for you that goes against company policy C) Where it is engineering that you can watch D) A Livestream of engineering CORRECT ANSWER: Where you trick someone into doing something for you that goes against company policy What is Pretexting? A) The metadata that is created before the text is sent B) Where you pretend to be someone else over email or phone C) None of the above D) Where you are the person you are trying to pretend to be over the phone or email CORRECT ANSWER: Where you pretend to be someone else over email or phone What is Phishing? A) An email that encourages people to click on malicious links or download malicious files B) Where you send out emails to attackers in hopes one clicks on it to report to local police C) A great outdoor sport D) None of the above CORRECT ANSWER: An email that encourages people to click on malicious links or download malicious files