CYBR2.TestOut 12.6.4(SY0-601) (59)

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Not Equal - Python

!= or <>

Less Than - Python

<

Less or Equal - Python

<=

Equal - Python

==

Greater Than - Python

>

Greater or Equal - Python

>=

Comment - Bash

# This line is commented out

Comment - Powershell

# This line is commented out

Comment - Python

# This line is commented out

Variables - Powershell

$FirstName = Dana

Constants - PowerShell

$InterestRate = 3.5%

Basic Arrays - Powershell

$numArray = @(num1, num2, num3)

Fetch data stored in Arrays - PowerShell

$numArray = @(num1, num2, num3) echo $numArray[0]

String Operations - PowerShell

$sampleString - "Sample String" echo $sampleString+ "2" $sampleString.Substring(0:4)

Equal - Bash

-eq

Greater or Equal - Bash

-ge

Greater Than - Bash

-gt

Less Than - Bash

-lt

Not Equal - Bash

-ne

Loops - PowerShell

Do { # commands } While ($x-eq $dog)

Variables - Bash

FirstName = Dana

Variables - Python

FirstName = Dana

IF - PowerShell

If ($Cost-lt $Balance) { # call payment function }

Constants - Bash

InterestRate = 3.5%

Constants - Python

InterestRate = 3.5%

OpenSSL

SSL is a method that provides an encryption standard that's widely used by internet websites. When you connect to a secure website, such as a financial institution or shopping site, that site is protected by SSL. Remote access, including PuTTY, can take advantage of the same encryption standard by using OpenSSL, which is an open-source implementation. OpenSSL creates a key pair using encryption standards such as DSA or RSA.

PuTTY

an SSH and Telnet client, developed originally for the Windows platform. PuTTY is open source software that is developed and supported by a group of volunteers. PuTTY is just one example of a terminal emulator.

Loops - Python

animals = ["fox", "wolf", "dog"] for x in animals: print(x) if x == "dog"; break

Else if

a conditional statement performed after an if statement that, if true, performs a function.

Else

a conditional statement that if previous conditions are not true displays alternate information or performs alternate commands.

If else statement

a conditional statement that selects the statements to run depending on whether an expression is true or false.

If statement

a conditional statement that, if proven true, performs a function or displays information.

Array

a group of related data values, or elements, that are grouped together. All the array elements must be the same data type.

Variable

a named unit of data that is assigned a value. If and when the value is modified, the name does not change.

Substring

a prefix or suffix of any string. For example, a substring of the word computer could be: puter or comp.

Scripting Environments

a programming language for a special run-time environment that automates the execution of tasks. The term scripting language often refers to programs, such as Bash, PowerShell, and Python. Scripting is often used in software applications, web pages within a web browser, the shells of operating systems (OS), embedded systems, network tasks, as well as numerous other applications. Scripts can be thought of as a small program up to a few thousand lines of code. As a Security Analyst, you must be familiar with the different scripting languages and recognize the differences.

String

a sequence of characters, either as a literal constant or as some kind of variable.

Comment

text in a program's code, script, or another file that is not meant to be used by the program or seen by the user running the program. However, it is seen when viewing the source code.

Constant

data or a value that does not change, unlike a variable.

Equal - PowerShell

eq

Greater or Equal - Powershell

ge

Greater Than - Powershell

gt

IF, ELSEIF, ELSE - Powershell

if (<example>){ # result } elseif(<example>) { # result } else { }

IF, ELSEIF, ELSE - Python

if <example>: # result elif<example>: # result else: # result

IF - Python

if Cost<Balance: #call payment function

IF, ELSEIF, ELSE - Bash

if [<example>] then # result elif[<example>] then # result else# result fi

IF - Bash

if [@Cost-t $Balance] then # call payment function fi

Less or Equal - Powershell

le

Less or Equal - Bash

lle

Less Than - Powershell

lt

Not Equal - Powershell

ne

Basic Arrays - Bash

numArray = (num1, num2, num3)

Basic Arrays - Python

numArray = (num1, num2, num3)

Fetch data stored in Arrays - Bash

numArray = (num1, num2, num3) echo {$numArray[0]}

Fetch data stored in Arrays - Python

numArray = (num1, num2, num3) print {$numArray[0]}

String Operations - Bash

sampleString = "Sample String" echo ${sampleString} echo ${sampleString:0:4} echo ${sampleString/Sample/Sampling}

String Operations - Python

sampleString = "Sample String" print sampleString.uppercase print sampleString.replace)Sample", Sampling")

SSH (Secure Shell)

used to secure and encrypt the connection between a client and a server, or other remote device. All user authentication, commands, output, and file transfers are encrypted to protect against attacks in the network. To use SSH, you need an SSH terminal emulator such as PuTTY. SSH can be used for many applications across different platforms including Linux and Windows. SSH can be used for such things as: Logging in to a shell on a remote host, Linux, firewalls, and other network device. Executing commands on a remote host. Setting up automatic (passwordless) login to a remote server. Securing file transfer protocols.

Loops - Bash

while [$x -eq $dog] do # commands done


संबंधित स्टडी सेट्स

Connections Between Texts in Fiction

View Set