ExamGecko
Question list
Search
Search

Related questions











Question 383 - 312-50v12 discussion

Report
Export

#!/usr/bin/python import socket buffer=[""A""] counter=50 while len(buffer)<=100: buffer.append (""A""*counter) counter=counter+50 commands= [""HELP"",""STATS ."",""RTIME ."",""LTIME. "",""SRUN ."',""TRUN ."",""GMON ."",""GDOG ."",""KSTET .",""GTER ."",""HTER ."", ""LTER .",""KSTAN .""] for command in commands: for buffstring in buffer: print ""Exploiting"" +command +"":""+str(len(buffstring)) s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect

(('127.0.0.1', 9999)) s.recv(50) s.send(command+buffstring) s.close() What is the code written for?

A.
Denial-of-service (DOS)
Answers
A.
Denial-of-service (DOS)
B.
Buffer Overflow
Answers
B.
Buffer Overflow
C.
Bruteforce
Answers
C.
Bruteforce
D.
Encryption
Answers
D.
Encryption
Suggested answer: B
asked 18/09/2024
Nicola Pinotti
52 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first