Mr_hEx

HTB OverFlow PinCode (Priv Esc)

Nov 29th, 2021 (edited)
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. int main(int argc, char** argv) {
  2.   int in_stack_00000004 = 1804289383;
  3.   int local_c;
  4.   int local_8;
  5.   local_c = 1804289383;
  6.   for (local_8 = 0; local_8 < 10; local_8 = local_8 + 1) {
  7.     local_c = local_c * 89 + 20;
  8.   }
  9.   long PinCode = local_c ^ in_stack_00000004;
  10.   std::cout << PinCode << std::endl; # OutPut = -202976456
  11.  
  12. }
Add Comment
Please, Sign In to add comment