Secure Network Management

hackers on your side

  • Why are you here?
  • Security Assessment
    • Incident Response
    • Regulations
  • Toolbox
    • Code
    • Default Password List
    • Threat Modeling
    • Tutorials
    • Vulnerability Disclosure
  • Knowledge Base
  • Contact

grep For ASCII in Binary File

Posted by SNM on May 21, 2017

Summary

grep for ASCII in Binary File

Command

cat file | tr -d '\000' | grep pattern
grep ASCII data from Binary File

grep ASCII data from Binary File

Description

cat file.bin – prints the file contents and pipe to tr
tr – remove the NUL (\000) character and pipe to grep
grep – match search pattern

Posts navigation

← binwalk File Analysis
pypecia Network Scanning →
  • Recent Posts

    • Nexx 3020H Responder
    • Nexx 3020H LAN Dropbox Build – Comedy of Errors Edition
    • SMBv1 Scanner
    • 2018 Projects and Look Ahead
    • Weaponized Boredom
    • Knowledge Base Update
    • Automated tcpdump Script
  • Categories

    • Code
    • Threat Modeling
    • Tutorials
    • Uncategorized
    • Vulnerability Disclosure
    • Website Update
  • Archives

  • Site Search

Proudly powered by WordPress Theme: Parament by Automattic.