Question: solve this binary bomb in c using gdb ( gdb ) l 3 0 4 ( gdb ) l 3 0 4 3 0 5

solve this binary bomb in c using gdb
(gdb) l
304(gdb) l
304
305
306 void phase_zero(char* input)
307{
308 int wordNum;
309 reset_secret_string();
310 mute(0);
311 wordNum = phase_zero_num();
312 append_to_secret_string(0, words[wordNum]);
313 secret_string_matches(input);
(gdb) print (int) wordNum
$1=0
(gdb) print secret_string
No symbol "secret_string" in current context.
(gdb) print words
$2={0x405f59 "abovementioned", 0x405f68 "aforementioned", 0x405f77 "antiperspirant", 0x405f86 "astrophysicist", 0x405f95 "cardiovascular",
0x405fa4 "characteristic", 0x405fb3 "chromatography", 0x405fc2 "circumlocution", 0x405fd1 "circumstantial", 0x405fe0 "classification",
0x405fef "classificatory", 0x405ffe "claustrophobia", 0x40600d "claustrophobic", 0x40601c "committeewoman", 0x40602b "comprehensible",
0x40603a "concessionaire", 0x406049 "congratulatory", 0x406058 "consanguineous", 0x406067 "conspiratorial", 0x406076 "contradistinct",
0x406085 "controvertible", 0x406094 "counterbalance", 0x4060a3 "counterexample", 0x4060b2 "differentiable", 0x4060c1 "diffractometer",
0x4060d0 "disciplinarian", 0x4060df "discriminatory", 0x4060ee "extemporaneous", 0x4060fd "featherbedding", 0x40610c "ferromagnetism",
0x40611b "handicraftsman", 0x40612a "histochemistry", 0x406139 "hydrochemistry", 0x406148 "implementation", 0x406157 "inapproachable",
0x406166 "incommensurate", 0x406175 "incommunicable", 0x406184 "incompressible", 0x406193 "inconsiderable", 0x4061a2 "incontrollable",
0x4061b1 "indecipherable", 0x4061c0 "indecomposable", 0x4061cf "indestructible", 0x4061de "indeterminable", 0x4061ed "indiscoverable",
0x4061fc "indiscriminate", 0x40620b "infrastructure", 0x40621a "insu
305
306 void phase_zero(char* input)
307{
308 int wordNum;
309 reset_secret_string();
310 mute(0);
311 wordNum = phase_zero_num();
312 append_to_secret_string(0, words[wordNum]);
313 secret_string_matches(input);
(gdb) print (int) wordNum
$1=0
(gdb) print secret_string
No symbol "secret_string" in current context.
(gdb) print words
$2={0x405f59 "abovementioned", 0x405f68 "aforementioned", 0x405f77 "antiperspirant", 0x405f86 "astrophysicist", 0x405f95 "cardiovascular",
0x405fa4 "characteristic", 0x405fb3 "chromatography", 0x405fc2 "circumlocution", 0x405fd1 "circumstantial", 0x405fe0 "classification",
0x405fef "classificatory", 0x405ffe "claustrophobia", 0x40600d "claustrophobic", 0x40601c "committeewoman", 0x40602b "comprehensible",
0x40603a "concessionaire", 0x406049 "congratulatory", 0x406058 "consanguineous", 0x406067 "conspiratorial", 0x406076 "contradistinct",
0x406085 "controvertible", 0x406094 "counterbalance", 0x4060a3 "counterexample", 0x4060b2 "differentiable", 0x4060c1 "diffractometer",
0x4060d0 "disciplinarian", 0x4060df "discriminatory", 0x4060ee "extemporaneous", 0x4060fd "featherbedding", 0x40610c "ferromagnetism",
0x40611b "handicraftsman", 0x40612a "histochemistry", 0x406139 "hydrochemistry", 0x406148 "implementation", 0x406157 "inapproachable",
0x406166 "incommensurate", 0x406175 "incommunicable", 0x406184 "incompressible", 0x406193 "inconsiderable", 0x4061a2 "incontrollable",
0x4061b1 "indecipherable", 0x4061c0 "indecomposable", 0x4061cf "indestructible", 0x4061de "indeterminable", 0x4061ed "indiscoverable",
0x4061fc "indiscriminate", 0x40620b "infrastructure", 0x40621a "insuppressible", 0x406229 "insurmountable", 0x406238 "intelligentsia",
0x406247 "interferometer", 0x406256 "interpretation", 0x406265 "intramolecular", 0x406274 "irreconcilable", 0x406283 "irreproachable",
0x406292 "irreproducible", 0x4062a1 "macromolecular", 0x4062b0 "macroprocessor", 0x4062bf "macrostructure", 0x4062ce "morphophonemic",
0x4062dd "multiplication", 0x4062ec "multiplicative", 0x4062fb "neuropathology", 0x40630a "nitroglycerine", 0x406319 "optoelectronic",
0x406328 "organometallic", 0x406337 "orthophosphate", 0x406346 "paralinguistic", 0x406355 "parallelepiped", 0x406364 "parapsychology",
0x406373 "phosphorescent", 0x406382 "physiochemical", 0x406391 "polysaccharide", 0x4063a0 "predisposition", 0x4063af "presentational",
0x4063be "prestidigitate", 0x4063cd "presupposition", 0x4063dc "proprioception", 0x4063eb "proprioceptive", 0x4063fa "psychoacoustic",
0x406409 "psychoanalysis", 0x406418 "psychoanalytic", 0x406427 "quintessential", 0x406436 "radioastronomy", 0x406445 "radiochemistry",
0x406454 "radiotelegraph", 0x406463 "radiotelephone", 0x406472 "reconnaissance", 0x406481 "representative", 0x406490 "septuagenarian",
0x40649f "servomechanism", 0x4064ae "slaughterhouse", 0x4064bd "staphylococcus", 0x4064cc "superintendent", 0x4064db "teleconference",
0x4064ea "teleprocessing", 0x4064f9 "tetrafluouride", 0x406508 "transcendental", 0x406517 "transformation", 0x406526 "transportation",
0x406535 "unidimensional", 0x406544 "unidirectional", 0x406553 "verisimilitude", 0x0}
(gdb

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!