CYB-240_ModuleFiveLabWorksheet
.docx
keyboard_arrow_up
School
Southern New Hampshire University *
*We aren’t endorsed by this school
Course
240
Subject
Computer Science
Date
Feb 20, 2024
Type
docx
Pages
2
Uploaded by DeanGoldfinch4081
CBY 240 Module Five Lab Worksheet Lab: Command Injection
Prompt
Response
In the lab section “Adding the Code,” Step 3
, insert your name as a comment after the </html> tag. The line of syntax to put a comment in the file is <!-- YourName -->. Take a screenshot after Step 3. In the lab section “Remote Shell,” Step 17
, insert your name at the command line below the output and include it in your screenshot.
PHP is an interpreted language that does not need to be compiled. What are the dangers of using an interpreted language versus a compiled language?
Interpreted language presents a security risk because the code is executed line by line. (Santos, 2023)
. Compiled translates the code to machine language before executing. (Santos, 2023)
.
Lab: Exploiting a Vulnerable Web Application
Prompt
Response
In the lab section “Post Exploitation,” Step 42
, insert your last name as the file name instead of “pass”. Make sure you use the file name in
Steps 43–45. Take a screenshot after Step 46. I was unable to launch the attack. I waited 5 minutes. I closed down the lab and started over again. It is stuck on “waiting up to 180 seconds for exploit to trigger.
Within the lab, you experienced Armitage, a graphical software package that can be used to carry out Metasploitable activities. The exploit that is targeted is a vulnerability with XAMPP. Explain what the vulnerability is and why it needs to be mitigated.
XAMPP is open source. It was found to have insecure permissions. This allows attackers to gain access and execute code. (NIST, 2022)
. If attackers are allowed to access XAMPP they can change or enter code changing the outcome of the existing code. They could access files, plant viruses, etc.
References
NIST. (2022, June 6). CVE-2022-29376 Detail
. Retrieved from NIST: https://nvd.nist.gov/vuln/detail/CVE-2022-29376
Santos, L. G. (2023, April 24). Interpreted Languages vs Compiled Languages: What's the Difference?
Retrieved from Dev: https://dev.to/tofuwave/interpreted-languages-vs-compiled-languages-whats-the-difference-45eh#:~:text=This%20means%20that
%20interpreted%20code,buffer%20overflows%20and%20injection%20attacks.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Go to the project06-01.js file in your code editor. Below the comment section declare the following variables:
submitButton referencing the element with the id “submitButton", pwd referencing the element with the id
"pwd", and pwd2 referencing the element with the id “pwd2".
Create an event listener for the click event occurring with the submitButton that runs an anonymous
function.
arrow_forward
Window 1Should have a welcome message, a textbox to receive AN EXISTING ID of the user and a button to access the data base. All users ID should be saved in a data base (Don’t use access). Once the Id is verified then the program will give the user access to the main menu window.Your database should have the following columns.
arrow_forward
*
aut
cad
Realtime and point consider are sub-commands for the main command
pan.
True
False
*
aut
cad
Zoom command is one of the drawing menu commands used to control
the size of the view, zoom in and out in the AutoCAD program.
False
True
arrow_forward
Event Listeners
Return to the mas_register.js file in your editor. Directly below the initial comment section, insert an event listener for the window load event. Run an anonymous function in response to the event containing the following commands:
Call the calcCart() function (which you will create shortly.)
Create an onclick event handler for the regSubmit button that runs the sessionTest() function when the button is clicked.
Create onblur event handlers for the input boxes with the ids: fnBox, lnBox, groupBox, mailBox, phoneBox, and banquetBox, running the calcCart() function in response to each event.
Create an onchange event handler for the sessionBox selection list, running the calcCart() function when the selection list is changed.
Create an onclick event handler for the mediaCB check box, running the calcCart() function in response.
JavaScript Functions
Create the sessionTest() function. The purpose of this function is to provide a validation test for the conference session…
arrow_forward
5-Redo Command:This command will
undo the effects of the last
command. You can reach this
command by going to the Quick
Access toolbar and clicking the Undo
button. If you want to undo several
commands, click the small arrow at
the right. You will see a list of the
commands; select the group :and
undo them Also, you can type u at
the command window (don't type
undo, because it has a different
meaning), or press Ctrl + Z at the
keyboard.
TURE
FULSE
arrow_forward
Create blade template containing a form having thefollowing form controls: case and submit button. After thevalue of the case field is filled by the user, an appropriateresponse should be generated. For example, if user enters1, the result should be “First Case” and so on. You have touse switch case directive to complete this task
arrow_forward
use java GUI
The form should contain five command buttons, two labels only, and three picture boxes. The three picture boxes, each containing a flag, are on top of one another, but only one should be visible at a time. For each picture box:
Be sure to add the image as a local resource.
Set the Size property to 100, 50
Click the Size Mode list arrow, then click StretchImage in the list.
For the Labels:
One label will have your name as the programmer – see bottom left corner of the windows above.
The other label will be used to display the name of the capital city. When a country button is clicked assign the name of the city into this label.
arrow_forward
Extra 7-2 Add a stopwatch to the Clock application
In this exercise, you’ll add a stopwatch feature to a digital clock application. The stopwatch will display elapsed minutes, seconds, and milliseconds.
1. Open the application in this folder:
exercises_extra\ch07\clock_stopwatch\
2. In the JavaScript file, note the $(), displayCurrentTime(), padSingleDigit(), and DOMContentLoaded event handler functions from the Clock application. In addition, note the global variables and starting code for the tickStopwatch(), startStopwatch(), stopStopwatch(), and resetStopwatch() functions.
3. In the tickStopwatch() function, add code that adds 10 milliseconds to the elapsedMilliseconds variable and then adjusts the elapsedMinutes and elapsedSeconds variables accordingly. Then, add code that displays the result in the appropriate span tags in the page.
4. In the startStopwatch() function, add code that starts the stopwatch. Be sure to cancel the default action of the link too.
5. In the…
arrow_forward
Extra 6-1 Develop the Temperature Converter
In this exercise, you’ll use radio buttons to determine whether the conversion is from Fahrenheit to Celsius or vice versa. You’ll also modify the DOM so the labels change when a radio button is clicked, and the page displays an error message when the user enters invalid data.
1. Open the application in this folder:
exercises_extrach06convert_temps
2. Note that the JavaScript file has some starting JavaScript code, including the $() function, three helper functions, three event handler functions, and a DOMContentLoaded event handler that attaches the three event handlers.
3. Review how the toCelsius() and toFarhenheit() event handler functions call the toggleDisplay() helper function and pass it strings to display. Also note that the toggleDisplay() helper function and the convertTemp() event handler function are incomplete.
4. Code the toggleDisplay() function so it changes the text in the labels for the text boxes to the values in the…
arrow_forward
Please help with the question on the picture
arrow_forward
When importing a Text file, why is it important to move through each step of the Text Import Wizard?
arrow_forward
Murach's javascript and Jquery 4th edition (ch9 animation)
I need help with this assignment, please. thanks
Modify a carousel to use animationIn this exercise, you’ll modify a carousel application so that when an image in the carousel is clicked, an enlarged image is displayed using animation.1. Open the application in this folder:carouselThen, run the application and notice that an enlarged image of the first book in the carousel is displayed.2. Review the HTML for the application, and notice that it contains an img element with an id of “image” following the heading. Also notice that the href attributes of the <a>elements in the carousel are set to the URL of the enlarged image to be displayed when the associated carousel image is clicked.3. Code an event handler for the click event of the <a> elements in the list. This event handler should start by getting the URL for the image to be displayed. Then, it should assign this URL to the enlarged image.4. Add animation to…
arrow_forward
Html code . Put up code with screenshot
arrow_forward
Which procedure in the link library displays “Press [Enter] to continue. . .” and waits for theuser to press the Enter key?
arrow_forward
write program in ASP.NET
The Register control uses child controls to create a user interface (UI) for enteringuser information to register with a Web site. The UI consists of two TextBox controls, one for entering the user's name and another to enter the user's e-mail address, and a Button control to submit the information. Register also associates RequiredFieldValidator controls with the two TextBox controls to be sure that the user enters a name and an e-mail address. The Click event of the Button control is raised as the Register control's Submit event.
The Register control relies on the built-in features of the child controls for its behavior. For example, Register relies on the TextBox controls for handling postback data, the Button control forthe postback event, and the RequiredFieldValidator controls for validation.
arrow_forward
Implement the using Windows form App(.NET Framework) c# :
1- creat a Form titled “ Students ”
2- Add text box with max 100 letter, where student can enter his name
3- Add Grade combobox where student can select his grade (A-B-C-D-E-F)
4- Add button “Add”, when clicked the name and grade are added to the data view5- Add button “Stat” when clicked another form appears6- A data grid appears with grade vs count statistic (ex : A ,3 )
(please respond with screenshots )
arrow_forward
VBA PROBLEM:
Create a code where every time that only cell B1 is changed, create a new tab and that this tab is renamed with the value that is entered in B1 and the other cells, that is, B2: B11 have the same values that are entered in the Sheet1. The values of A1: A11 must always remain the same. Like in the examples below (image 1 and 2).
arrow_forward
That answer is wrong. Can you please read the instructions.
arrow_forward
Open the application in the folder under the coursework.
Open the HTML file and notice that an Invoice Date field has been added. Then, open the HTML file and notice that it includes a getFormattedDate() function that formats the Date object that’s passed to it in MM/DD/YYYY format and then returns the date string.
Start the application, enter a subtotal, and click the Calculate button. Note that nothing is displayed in the Invoice Date field.
In the click() event handler for the Calculate button, add code that gets the current date and formats it using the getFormattedDate() function. Then, add code that provides a default value of the formatted current date for the invoice date. Note that if an invoice date is entered, that date isn’t validated.
Add code that sets the value of the Invoice Date field. If you’ve done this right, the application should display the current date when you click the Calculate button without entering anything in the Invoice Date field.
<!DOCTYPE…
arrow_forward
Q1.Write a GUI program to let the user enter a file name from an entry field and then count the number of occurrences of each letter in that file. Clicking the Show Result button displays the result in a text widget. You need to display a message in a message box if the file does not exist.
Q2.Revise the preceding exercise to display a histogram for the result, as shown in the figure below. You need to display a message in a message box if the file does not exist.
PYTHON ONLY!! Thank you! Also, could you add some explanations of your code please.
arrow_forward
JavaScript
//6. addButtonListeners
//a. Selects all buttons nested inside the main element
//b. If buttons exist:
//c. Loop through the NodeList of buttons
//d. Gets the postId from button.dataset.postId
//e. Adds a click event listener to each button (reference addEventListener)
//f. The listener calls an anonymous function (see cheatsheet)
//g. Inside the anonymous function: the function toggleComments is called with the
//event and postId as parameters
//h. Return the button elements which were selected
//i. You may want to define an empty toggleComments function for now. Not all tests
//will pass for addButtonListeners until toggleComments exists. I recommend
//waiting on the logic inside the toggleComments function until we get there.
arrow_forward
Using Java programming language do the
following:
1) Implement DFA as a menu-based or
GUI program.
2) Configure the DFA using a config
txt file.
3) The configuration consists of: {Q,
q0, F, Σ, δ;
4) The DFA continuously allows the
user to enter an input string via
command prompt, GUI text filed or
a list of strings in a txt file.
5) The DFA scans the input string,
prints all intermediate transitions
and generates a “ACCEPT" or
"REJECT" response.
6) Test your model using 2 DFAS:
a. English words ending with
'ing'.
b. Binary strings containing
odd number of 1s.
c. Any other example of your
choice.
Please, show the output too. Thanks!
arrow_forward
A02-02
Create a webpage A2-Task2.html.
The webpage is displaying one image. Each time the user moves the mouse out of the image, the image is
changed to another one and one more 'sun' emoji is displayed under the image. When the number of 'suns'
reaches seven (7), all suns are deleted (reset) and start to be displayed again. For example, the 8th time user
moves the mouse out of the image, one 'sun' is shown, the 9th time - two 'suns', and so on.
Note:
- You should use two images. Each time the user moves the mouse out of the image, the image is changing. If
an image of "Winter" is displayed it will change to "Summer", and opposite, if an image of "Summer" is
displayed it will change to "Winter".
The special character code for the 'sun' is "☀".
-
Put the source code of your website A2-Task2.html here.
Make sure you also upload the A2-Task2.zip of all files below.
arrow_forward
JavaScript Assignment
For this assignment you are only to use external CSS and JavaScript. This assignment shouldhave no templates or frameworks.
The Fruits to be used are Apple, Orange, Pear, and Pineapple. Write the code in a way that allows it to pull the images from a folder inside the main folder named “images." The file names are as follows Apple.png, Orange.png, Pear.png, and Pineapple.png.
You are to create a child's game. The game will have a title in the head of the boilerplate withyour name. The name of the game will be Fruit Game which will need to be included in theheader of the browser using a h1 element. You will display an image of a fruit. Under the imagethere will be room for text for the name of the fruit but not displayed at the start. You will havefour buttons with names for the fruits available. When the button with the fruit name is clickedthe name of the fruit will appear under the image of the fruit. If the button and the name of thefruit is the same then you…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Related Questions
- Go to the project06-01.js file in your code editor. Below the comment section declare the following variables: submitButton referencing the element with the id “submitButton", pwd referencing the element with the id "pwd", and pwd2 referencing the element with the id “pwd2". Create an event listener for the click event occurring with the submitButton that runs an anonymous function.arrow_forwardWindow 1Should have a welcome message, a textbox to receive AN EXISTING ID of the user and a button to access the data base. All users ID should be saved in a data base (Don’t use access). Once the Id is verified then the program will give the user access to the main menu window.Your database should have the following columns.arrow_forward* aut cad Realtime and point consider are sub-commands for the main command pan. True False * aut cad Zoom command is one of the drawing menu commands used to control the size of the view, zoom in and out in the AutoCAD program. False Truearrow_forward
- Event Listeners Return to the mas_register.js file in your editor. Directly below the initial comment section, insert an event listener for the window load event. Run an anonymous function in response to the event containing the following commands: Call the calcCart() function (which you will create shortly.) Create an onclick event handler for the regSubmit button that runs the sessionTest() function when the button is clicked. Create onblur event handlers for the input boxes with the ids: fnBox, lnBox, groupBox, mailBox, phoneBox, and banquetBox, running the calcCart() function in response to each event. Create an onchange event handler for the sessionBox selection list, running the calcCart() function when the selection list is changed. Create an onclick event handler for the mediaCB check box, running the calcCart() function in response. JavaScript Functions Create the sessionTest() function. The purpose of this function is to provide a validation test for the conference session…arrow_forward5-Redo Command:This command will undo the effects of the last command. You can reach this command by going to the Quick Access toolbar and clicking the Undo button. If you want to undo several commands, click the small arrow at the right. You will see a list of the commands; select the group :and undo them Also, you can type u at the command window (don't type undo, because it has a different meaning), or press Ctrl + Z at the keyboard. TURE FULSEarrow_forwardCreate blade template containing a form having thefollowing form controls: case and submit button. After thevalue of the case field is filled by the user, an appropriateresponse should be generated. For example, if user enters1, the result should be “First Case” and so on. You have touse switch case directive to complete this taskarrow_forward
- use java GUI The form should contain five command buttons, two labels only, and three picture boxes. The three picture boxes, each containing a flag, are on top of one another, but only one should be visible at a time. For each picture box: Be sure to add the image as a local resource. Set the Size property to 100, 50 Click the Size Mode list arrow, then click StretchImage in the list. For the Labels: One label will have your name as the programmer – see bottom left corner of the windows above. The other label will be used to display the name of the capital city. When a country button is clicked assign the name of the city into this label.arrow_forwardExtra 7-2 Add a stopwatch to the Clock application In this exercise, you’ll add a stopwatch feature to a digital clock application. The stopwatch will display elapsed minutes, seconds, and milliseconds. 1. Open the application in this folder: exercises_extra\ch07\clock_stopwatch\ 2. In the JavaScript file, note the $(), displayCurrentTime(), padSingleDigit(), and DOMContentLoaded event handler functions from the Clock application. In addition, note the global variables and starting code for the tickStopwatch(), startStopwatch(), stopStopwatch(), and resetStopwatch() functions. 3. In the tickStopwatch() function, add code that adds 10 milliseconds to the elapsedMilliseconds variable and then adjusts the elapsedMinutes and elapsedSeconds variables accordingly. Then, add code that displays the result in the appropriate span tags in the page. 4. In the startStopwatch() function, add code that starts the stopwatch. Be sure to cancel the default action of the link too. 5. In the…arrow_forwardExtra 6-1 Develop the Temperature Converter In this exercise, you’ll use radio buttons to determine whether the conversion is from Fahrenheit to Celsius or vice versa. You’ll also modify the DOM so the labels change when a radio button is clicked, and the page displays an error message when the user enters invalid data. 1. Open the application in this folder: exercises_extrach06convert_temps 2. Note that the JavaScript file has some starting JavaScript code, including the $() function, three helper functions, three event handler functions, and a DOMContentLoaded event handler that attaches the three event handlers. 3. Review how the toCelsius() and toFarhenheit() event handler functions call the toggleDisplay() helper function and pass it strings to display. Also note that the toggleDisplay() helper function and the convertTemp() event handler function are incomplete. 4. Code the toggleDisplay() function so it changes the text in the labels for the text boxes to the values in the…arrow_forward
- Please help with the question on the picturearrow_forwardWhen importing a Text file, why is it important to move through each step of the Text Import Wizard?arrow_forwardMurach's javascript and Jquery 4th edition (ch9 animation) I need help with this assignment, please. thanks Modify a carousel to use animationIn this exercise, you’ll modify a carousel application so that when an image in the carousel is clicked, an enlarged image is displayed using animation.1. Open the application in this folder:carouselThen, run the application and notice that an enlarged image of the first book in the carousel is displayed.2. Review the HTML for the application, and notice that it contains an img element with an id of “image” following the heading. Also notice that the href attributes of the <a>elements in the carousel are set to the URL of the enlarged image to be displayed when the associated carousel image is clicked.3. Code an event handler for the click event of the <a> elements in the list. This event handler should start by getting the URL for the image to be displayed. Then, it should assign this URL to the enlarged image.4. Add animation to…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage