Before you can even apply.
Solve the code problem and provide the answer or your CV gets binned!
/*
If you would like to view this email in your browser please click
here
Are you ready for a challenging and
highly rewarding career in cyber security?
We have several vacancies that are currently advertised on CyberSecurityJobSite.com.
1. Call the 'goal' function by providing the correct value of index as a
parameter
to the program and note the output.
2. The missing piece to get the answer is 0xC0D1F1ED. You'll know it's
right when you see it.
3. For immediate consideration, apply through CyberSecurityJobSite.com
with the answer
in your covering note.
*/
Solve the code problem and provide the answer or your CV gets binned!
/*
If you would like to view this email in your browser please click
here
Are you ready for a challenging and
highly rewarding career in cyber security?
We have several vacancies that are currently advertised on CyberSecurityJobSite.com.
1. Call the 'goal' function by providing the correct value of index as a
parameter
to the program and note the output.
2. The missing piece to get the answer is 0xC0D1F1ED. You'll know it's
right when you see it.
3. For immediate consideration, apply through CyberSecurityJobSite.com
with the answer
in your covering note.
*/
Code:
//You may need to install gcc-multilib or similar package for your Linux distribution. //gcc -m32 chall-stack.c #include <stdio.h> #include <stdlib.h> #define FTBL_LEN 5 typedef void func_t(int); void goal(int i) { printf("%08x\n", ((i|0x40000000) * 0x31337)^0x2c10c413); } void try(int i) { printf("Incorrect index %d. Keep trying!\n"); } int main (int argc, const char**argv) { int i, index; func_t *tbl[FTBL_LEN + 1]; for (i=0;i<FTBL_LEN;++i) tbl[i] = try; tbl[i] = goal; index = strtol(argv[1], NULL, 10); if (index >= FTBL_LEN) printf("Index too high.\n"); else (*tbl[index])(index); return 0; }
Comment