Tag: binary

  • Hacking with conversions of decimal and binary

    $./app Sign detection [1] Power of two [2] Counting No. of bits set [3] Set or clear bits without branching[4] Find maximum value[5] Finding least common multiple[6] Finding the greatest commom divisor[7] Finding if a number is an Armstrong number or not[8] Finding if a given number is prime number[9] Finding the number of twin […]

  • What is the base-10 value of 11100101?

    What is the base-10 value of 11100101? [toggle title=”Answer” float=”left” width=”100px” margin=”0 20px 20px 0″ status=”closed”] 229 [/toggle] related source : SCHAUM’S OUTLINE OF Principles of COMPUTER SCIENCE related resource : http://www.wikihow.com/Convert-from-Binary-to-Decimal

  • Write the number 229 in base-2.

    Write the number 229 in base-2. 11100101 related source : SCHAUM’S OUTLINE OF Principles of COMPUTER SCIENCE related resource : http://www.wikihow.com/Convert-from-Decimal-to-Binary

  • Binary Tree Debug (pre-order)

    commandline session $gdb a.out GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This GDB […]

  • readelf – Displays information about ELF files

    commandline session $readelf -I /bin/ping Histogram for `.gnu.hash’ bucket list length (total of 3 buckets): Length Number % of total Coverage 0 0 ( 0.0%) 1 0 ( 0.0%) 0.0% 2 0 ( 0.0%) 0.0% 3 3 (100.0%) 100.0% $readelf -a /bin/ping | head ELF Header: Magic: 7f 45 4c 46 02 01 01 00 […]

  • base64 encoding

    $file a.out a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped $base64 a.out > ascii.txt $tail -n 5 -f ascii.txt X19lcnJub19sb2NhdGlvbkBAR0xJQkNfMi4yLjUAX19ic3Nfc3RhcnQAX19nY292X3dyaXRlX3N1 bW1hcnkAX19nY292X3JlYWRfY291bnRlcgBzdHJjcHlAQEdMSUJDXzIuMi41AF9lbmQAZmNsb3Nl QEBHTElCQ18yLjIuNQBzdGRlcnJAQEdMSUJDXzIuMi41AGFjY2Vzc0BAR0xJQkNfMi4yLjUAZndy aXRlQEBHTElCQ18yLjIuNQBfZWRhdGEAZnByaW50ZkBAR0xJQkNfMi4yLjUAZmNudGxAQEdMSUJD XzIuMi41AG9wZW5AQEdMSUJDXzIuMi41AG1rZGlyQEBHTElCQ18yLjIuNQBtYWluAF9pbml0AA== ^C $tail -n 5 -f a.out @ @ @. @> @N @^ @n That was a peice from a.out may […]