Question

cybersecurity course question

We have found the source code to a high end IOT lock. Crack it.

What programming language was this written in?

What is the flag?

CHECK = [124, 92, 164, 468, 124, 112, 68, 112, 468, 496, 500, 492, 492]
function riddle(x)
    step1 = xor(x, 0x46)
    (step1 + 10) << 2
end

function main()
    println("I am very fancy. Can you solve my riddle")
    inp = readline()
    bytes = Int.(collect(inp))
    solve = riddle.(bytes)
    if solve == CHECK
        println("Congrats")
    else
        println("Nope")
    end
end

if abspath(PROGRAM_FILE) == @__FILE__
    main()
end

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: As the table shows, projections indicate that the percent of adults with diabetes could dramatically...

A: Given data   Formula for linear model y= a + bx

Q: calcium, how many kilograms of calcium are there in a

A: Click to see the answer

Q: The white "Spirit" black bear (or Kermode) Ursus americanus kermodei, differs from the ordinary blac...

A: 1)   "The frequency distribution of genotypes has a binomial distribution in the population" is the ...

Q: Guard cells surround stomata on the surface of leaves. A new herbicide targets the function of guard...

A: When a herbicide is introduced targetting guard cells, the physiological function of guard cells, th...

Q: Which of the following molecules would you expect to have a lot of nitrogen (N) in it? Group of answ...

A: The four classes of molecules such as carbohydrates, lipids, proteins, and nucleic acids are importa...

Q: For each of the following situations involving annuities, solve for the unknown. Assume that interes...

A: Annuity refers to the amount paid or received on a regular interval. Ordinary annuities are one with...

Q: At high temperature, oxygen and nitrogen reacts to form nitric oxide (NO), a substance that is toxic...

A: Given: Threshold Value of NO produced = 25 ppm To Calculate: The lowest temperature at which the amo...

Q: Which statement is true about dopamine? A. Dopamine discourages healthy behavior. B. Drug-addicted b...

A: Psychologists conferred those various biochemical cognitive actions are involved in classifying indi...

Q: Match the vector fields F with the plots labeled I-IV. Give reasons for your choices. F(x, y) = ⟨y, ...

A: Vector field of function represents the vector corresponding to each point of the given function. To...

Q: Let L(x) be the linearization of the cube root function at x-64. When using L(x) to approximate the ...

A: Click to see the answer

Q: Find the current IO and voltage V1 in the circuit shown below using the techniques of equivalent res...

A: Click to see the answer

Q: Find the differential of each function. (a) y = s/(9 + 4s) dy = (b) y = u cos u dy =

A: Click to see the answer

Q: The mean incubation time of fertilized eggs is 23 days. Suppose the incubation times are approximate...

A: Click to see the answer

Q: For the circuit shown in the figure, determine the magnitude of the currents I,, I3. and I4 passing ...

A: Click to see the answer

Q: Households are randomly selected and partitioned into groups of four. For those groups, the random v...

A: Given data is x P(x) 0 0.022 1 0.147 2 0.341 3 0.352 4 0.138

Q: A coil lies on a horizontal plane and the south pole of the magnet is thrust into the coil with a qu...

A: Click to see the answer

Q: Ten randomly selected people took an IQ test A, and next day they took a very similar IQ test B. The...

A: Let X represents the  scores of  IQ test A and Y represents the scores of IQ test B. Define a new va...

Q: John roles a dice. The table to the right represents the outcomes throughout his experiment. a. What...

A: Theoretical probability can be considered as probability of an outcome is the dice is rolled only on...

Q: What are JAD and RAD, and how do they differ from traditional fat-finding methods?What are main adva...

A: Joint Application Design JAD is a methodology that involves the client or end-user in the design and...

Q: Comparative figures for Apple and Google follow. Аpple Google Two Years Prior Two Years One Year One...

A: Accounts receivable is the amount of goods sold that is expected to be received from the customer in...

Q: Use the graph of the given function f to determine the limit at the indicated value of a, if it exis...

A: Topic :- Limit

Q: In Part 5 of Form 940, Peterson Company reported FUTA tax liabilities as follows: First quarter: $3...

A:  FUTA Tax Provisions: In the event that the FUTA tax exceeds 500, it must be paid by the last day of...

Q: A teenager of mass m1 = 56 kg pushes backwards against the ground with his foot as he rides his skat...

A: Given:- A teenager of mass m1 = 56 kg pushes backward against the ground with his foot as he rides h...

Q: For each of the following situations reported in the news, specify what variable(s) were measured on...

A: Variable is a placeholder that can take multiple values. Variables can be broadly categorized into 2...

Q: The brand manager for a brand of toothpaste must plan a campaign designed to increase brand recognit...

A: Click to see the answer

Q: Which two agricultural contributions are common to both Northeast Woodland Indians and Southeast Ind...

A: The Northeast Woodlands area expands from the Atlantic coast to the Great Lakes, and from the mid-At...

Q: Long ago, many people believed that living things could come from nonliving things. They thought tha...

A: Evolutionary Biology is the study of origin of life on earth.

Q: les in defined as being reincarcerated within five years of being sent to jail initially. Among the ...

A: Given Among the data reported, the magazine cites that the recidivism rate for blacks is 80.9% compa...

Q: A compound with a molar mass of 544.0 g/mol is made up of 26.5 grams Carbon, 2.94 grams Hydrogen, an...

A: Click to see the answer

Q: The needed capacity requirement is nothing customers per day.

A: In the above question it is given that the process currently serves average of 61 customers, and 10%...

Q: A mechanism that has been proposed for the conversion of 2-methylpropene to tert-butyl alcohol in ac...

A: The given mechanism is: step 1     slow:   (CH3)2C=CH2 + H+ ➟    (CH3)3C+ step 2     fast:    (CH...

Q: The nearly uniform temperature and salinity profiles of this surface layer indicate mixing by convec...

A: Since you have posted multiple questions, we will answer only the first one for you. If you want any...

Q: This Wendy's commercial confuses the notions of appreciation and consumer surplus. Recall that consu...

A: Consumer surplus is the price consumer is willing to pay minus the price that is actually paid. Cons...

Q: An information source generates symbols at random from a four-letter alphabet {a,b,c,d} with probabi...

A: Click to see the answer

Q: Draw a phylogenetic reconstruction for the hypothetical frog species. Once you have a cladogram you ...

A: Phylogeny can be defined as the study of the relationship between different organism and their evolu...

Q: Prepare the General Journal for January 1–10, page 1. If an amount box does not require an entry, le...

A: Journal entry is the process of recording the business transactions in the books of accounts for the...

Q: A recent survey reported in Bloomberg Businessweek dealt with the salaries of CEOS at large corporat...

A: Required probability is P(The CEO made more than $1 million)

Q: The function M(s) = 225 + 0.65s represents the material cost of manufacturing gardening scissors whe...

A: Click to see the answer

Q: Ex. 193 Prepare journal entries to record the following transactions entered into by Valente Company...

A: Journal- It is the initial step within the process of recording the transactions which shows dual as...

Q: 6 If it was possible for one company to gain ownership control of all uranium processing plants in t...

A: Monopoly Market: The market in which a single seller sells the commodity which has no close substitu...

Q: What is the dominant force holding the units together in solid benzoic acid?

A: Intermolecular force present in benzoic acid

Q: 1. For each of the followina sets of molecules, rank them in order of increasing rate of SN2 reactio...

A: Rate of SN2 reaction

Q: Acme Company's production budget for August is 19,100 units and includes the following component uni...

A: The variation between actual results and the budget or standard is referred as variance.

Q: Problem 2: Consider this situation: Pistol Pete gained a pretty good reputation as a high school bas...

A: First year salary = $20,000 From next year increment of 75%

Q: Given: ZABD and ZDBC are adjacent angles, MZABD = 45°, and mZDBC = 30° Select the reason that best s...

A: We have been given that the two angles are adjacent to each other such that ∠ABD=45° &amp; ∠DBC=30° ...

Q: (Interview) A company is interviewing candidates for a data-scientist position. They estimate that t...

A:  

Q: Find the value of x. 3 cm 5 cm 6 cm X = [?] cm 2 cm 3 cm Enter a decimal rounded to the nearest tent...

A: Click to see the answer

Q: 2. Many people take ginkgo supplements advertised to improve memory. Are these over-the- counter sup...

A: Click to see the answer

Q: Suppose that you are an exploration geologist hired to interpret the metamorphic rocks of two island...

A: Minerals are naturally occurring substances that have a specific chemical composition and a fixed ph...

Q: Comparative Income Statements For Years Ended December 31, 2019, 2018, and 2017 2019 2018 2017 Sales...

A: Prepare the common-size percents by taking sales figure as base.