1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nat2105 [25]
3 years ago
6

3. Encode these sentences in ASCII: a. "Stop!" Cheryl shouted. b. Does 2 + 3 = 5?​

Computers and Technology
1 answer:
Zepler [3.9K]3 years ago
4 0

Answer:

"Stop!" Cheryl shouted.
34, 83, 116, 111, 112, 33, 34, 32, 67, 104, 101, 114, 121, 108, 32, 115, 104, 111, 117, 116, 101, 100, 46

Does 2 + 3 = 5?
68, 111, 101, 115, 32, 50, 32, 43, 32, 51, 32, 61, 32, 53, 63

I got these numbers with this python code:
print([ord(c) for c in '"Stop!" Cheryl shouted.'])
print([ord(c) for c in 'Does 2 + 3 = 5?'])

You might be interested in
The PATH environment variable.
enot [183]

Answer:

Answer explained below

Explanation:

Yes, you can let Set-uid program that is owned by root to run your code instead of /bin/ls but it has it's own drawbacks and is actually not safe.

As you can not rely on that since some of the shells if different from the ruid drop an euid which is actually not safe.

execl("/bin/ls", "ls",(char *)0);  

run this under your main program.

Since it can have a root previlege,

-$ cd /tmp/

/tmp$ sudo su

:/tmp# gcc -o system system.c

:/tmp# chmod u+s system // changing file permissions

:/tmp# exit

exit

:/tmp$ cp /bin/sh /tmp/ls

:/tmp$ ./system

<u>Steps: </u>

1. The first thing you need to do is copy /bin/sh to /tmp.

2. After copying /bin/sh to /tmp set a new name ls but make sure your sh ->.zsh.

3. Set PATH to current directory. /tmp.

4. Compile

5. Run the program system and you can get your root previledge.

Now, with the above exmaple if you change /bin/sh soo that it points back to /bin/bash and repeat all the previous steps, you will not be able to get your root previledges.

8 0
4 years ago
What's the function of a cyclebin​
amid [387]

Answer:

In Windows, the Recycle Bin is a folder or directory where deleted items are temporarily stored. Deleted files are not permanently removed from the hard drive but are sent instead to the Recycle Bin, unless they are too large.

3 0
3 years ago
Define what is a PC?
nekit [7.7K]

PC stands for Personal Computer (generic term) This definition appears very frequently and is found in the following Acronym Finder categories: Information technology (IT) and computers.

8 0
3 years ago
Read 2 more answers
1.2.2: Output variable value. Jump to level 1 Write a statement that outputs variable userAge. End with a newline. 1 2 3 4 5 6 7
serg [7]

Answer:

cout<<"User Age is ="<<userAge<<endl;

Explanation:

#include<iostream>

using namespace std;

int main()

{

int userAge;

cin >> userAge; // Program will be tested with values: 15, 40.

cout<<"User Age is ="<<userAge<<endl;

return 0;

}

5 0
4 years ago
Type the correct answer in the box. Spell all words correctly.
nadezda [96]

Answer: Alt Text.

Explanation:

Alt Text or alt="Text" Allows for the website to load just the description of the image, rather than the image itself. Gets the Same message across without insane load times of large images.

5 0
3 years ago
Other questions:
  • What does phishing mean?
    9·2 answers
  • Consider an array of size nine with the numbers in the following order: 40, 60, 20, 80, 70, 90, 30, 10, 50. (a) Create the heap
    7·1 answer
  • Media applications that play audio or video files are part of a class of workkloads called "streaming" workloads (i.e., they bri
    9·1 answer
  • What type of file is MyFile.dll?
    14·2 answers
  • Consider the problem of making change for n cents using the fewest number of coins. Assume that each coins value is an integer.
    7·1 answer
  • I really need help with this question
    14·1 answer
  • What is the bit pattern (raw binary) of the single precision representation of the decimal number 0.125 following IEEE 754 stand
    9·1 answer
  • Algoritmos para llevar a cabo una actividad
    15·1 answer
  • What is the best response to cyberbullying?
    10·2 answers
  • What is the scope of AS-26
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!