🌄
Shikata Ga Nai
  • Shikata Ga Nai
  • General
  • Gaining Access
    • Nmap
    • Reverse Shell
    • Password Cracking
    • Other Services
      • 21 - FTP
      • Enumerating SMB
    • Web
      • Web Enumeration
      • XSS
      • File Inclusion
      • SQL Injection
  • Linux Foothold
    • Linux Tricks
    • Privesc
  • Windows Foothold
    • Privesc
  • Binary
    • Calling Conventions
    • Debuggers
    • Examining Binaries
    • Shellcoding
    • Bypassing Exploit Mitigation Techniques [Linux]
  • Stego
    • Stego tools
Powered by GitBook
On this page
  • What is this file?
  • Let's dump stuff!

Was this helpful?

  1. Binary

Examining Binaries

PreviousDebuggersNextShellcoding

Last updated 4 years ago

Was this helpful?

What is this file?

run the file command!

Check what kind of security features are enabled

Checksec

Check the properties of a binary with .

Output example from their repo:

Hardening Check

Check binaries for security hardening features. I find it less reliable when it comes to RELRO.

Included in the devscripts package on debian-based distros.

gef - checksec

Let's dump stuff!

  • strings <FILE> - look for any readable clue.

  • objdump -x <FILE> | less - Information about the file, headers, sections and more. pipe for easy reading.

  • strace <FILE> - examine syscalls in the binary.

  • ltrace <FILE> - examine library calls in the binary.

has a pretty neat checksec command.

gef
Checksec