• Stars
    star
    118
  • Rank 298,387 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A better strings utility!

bstrings

A better strings utility!

Command Line Interface

bstrings version 1.5.1.0

Author: Eric Zimmerman ([email protected])
https://github.com/EricZimmerman/bstrings

        a               If set, look for ASCII strings. Default is true. Use -a false to disable
        b               Chunk size in MB. Valid range is 1 to 1024. Default is 512
        d               Directory to recursively process. Either this or -f is required
        f               File to search. Either this or -d is required
        m               Minimum string length. Default is 3
        o               File to save results to
        p               Display list of built in regular expressions
        q               Quiet mode (Do not show header or total number of hits)
        s               Really Quiet mode (Do not display hits to console. Speeds up processing when using -o)
        u               If set, look for Unicode strings. Default is true. Use -u false to disable
        x               Maximum string length. Default is unlimited

        ls              String to look for. When set, only matching strings are returned
        lr              Regex to look for. When set, only strings matching the regex are returned
        fs              File containing strings to look for. When set, only matching strings are returned
        fr              File containing regex patterns to look for. When set, only strings matching regex patterns are returned

        ar              Range of characters to search for in 'Code page' strings. Specify as a range of characters in hex format and enclose in quotes. Default is [\x20 -\x7E]
        ur              Range of characters to search for in Unicode strings. Specify as a range of characters in hex format and enclose in quotes. Default is [\u0020-\u007E]

        cp              Code page to use. Default is 1252. Use the Identifier value for code pages at https://goo.gl/ig6DxW
        mask            When using -d, file mask to search for. * and ? are supported. This option has no effect when using -f
        ms              When using -d, maximum file size to process. This option has no effect when using -f
        ro              When true, list the string matched by regex pattern vs string the pattern was found in (This may result in duplicate strings in output. ~ denotes approx. offset)
        off             Show offset to hit after string, followed by the encoding (A=1252, U=Unicode)

        sa              Sort results alphabetically
        sl              Sort results by length

Examples: bstrings.exe -f "C:\Temp\UsrClass 1.dat" --ls URL
          bstrings.exe -f "C:\Temp\someFile.txt" --lr guid
          bstrings.exe -f "C:\Temp\aBigFile.bin" --fs c:\temp\searchStrings.txt --fr c:\temp\searchRegex.txt -s
          bstrings.exe -d "C:\Temp" --mask "*.dll"
          bstrings.exe -d "C:\Temp" --ar "[\x20-\x37]"
          bstrings.exe -d "C:\Temp" --cp 10007
          bstrings.exe -d "C:\Temp" --ls test
          bstrings.exe -f "C:\Temp\someOtherFile.txt" --lr cc --sa
          bstrings.exe -f "C:\Temp\someOtherFile.txt" --lr cc --sa -m 15 -x 22
          bstrings.exe -f "C:\Temp\UsrClass 1.dat" --ls mui --sl

Built In Regular Expressions

Run bstrings.exe -p to see the following list of built in Regular Expressions:

          Name            Description
          aeon            Finds Aeon wallet addresses
          b64             Finds valid formatted base 64 strings
          bitcoin         Finds BitCoin wallet addresses
          bitlocker       Finds Bitlocker recovery keys
          bytecoin        Finds ByteCoin wallet addresses
          cc              Finds credit card numbers
          dashcoin        Finds DashCoin wallet addresses (D*)
          dashcoin2       Finds DashCoin wallet addresses (7|X)*
          email           Finds embedded email addresses
          fantomcoin      Finds Fantomcoin wallet addresses
          guid            Finds GUIDs
          ipv4            Finds IP version 4 addresses
          ipv6            Finds IP version 6 addresses
          mac             Finds MAC addresses
          monero          Finds Monero wallet addresses
          reg_path        Finds paths related to Registry hives
          sid             Finds Microsoft Security Identifiers (SID)
          ssn             Finds US Social Security Numbers
          sumokoin        Finds SumoKoin wallet addresses
          unc             Finds UNC paths
          url3986         Finds URLs according to RFC 3986
          urlUser         Finds usernames in URLs
          usPhone         Finds US phone numbers
          var_set         Finds environment variables being set (OS=Windows_NT)
          win_path        Finds Windows style paths (C:\folder1\folder2\file.txt)
          xml             Finds XML/HTML tags
          zip             Finds zip codes
          
          To use a built in pattern, supply the Name to the --lr switch 

Documentation

Introducing bstrings, a Better Strings utility!

bstrings 0.9.0.0 released

bstrings 0.9.5.0 released

A few updates

bstrings 0.9.7.0 released

bstrings 0.9.8.0 released

bstrings 0.9.9.0 released!

bstrings 1.0 released!

bstrings v1.1 released!

Everything gets an update, Sept 2018 edition

Download Eric Zimmerman's Tools

All of Eric Zimmerman's tools can be downloaded here. Use the Get-ZimmermanTools PowerShell script to automate the download and updating of the EZ Tools suite. Additionally, you can automate each of these tools using KAPE!

Special Thanks

Open Source Development funding and support provided by the following contributors: SANS Institute and SANS DFIR.

More Repositories

1

KapeFiles

This repository serves as a place for community created Targets and Modules for use with KAPE.
624
star
2

evtx

C# based evtx parser with lots of extras
C#
258
star
3

LECmd

Lnk Explorer Command line edition!!
C#
252
star
4

Registry

Full featured, offline Registry parser in C#
C#
216
star
5

PECmd

Prefetch Explorer Command Line
C#
200
star
6

VoronTools

Various scripts and tools
Shell
187
star
7

MFTECmd

Parses $MFT from NTFS file systems
C#
174
star
8

Get-ZimmermanTools

Get all my software
PowerShell
129
star
9

RECmd

Command line access to the Registry
Rebol
121
star
10

AmcacheParser

Parses amcache.hve files, but with a twist!
C#
109
star
11

AppCompatCacheParser

AppCompatCache (shimcache) parser. Supports Windows 7 (x86 and x64), Windows 8.x, and Windows 10
C#
105
star
12

JumpList

C#
103
star
13

Prefetch

Windows Prefetch parser. Supports all known versions from Windows XP to Windows 10.
C#
103
star
14

ericzimmerman.github.io

Software downloads
HTML
87
star
15

Lnk

Lnk file parser
C#
78
star
16

JLECmd

Automatic and Custom Destinations jump list parser with Windows 10 support
C#
71
star
17

RegistryPlugins

C#
60
star
18

MFT

MFT parser
C#
56
star
19

RegistryExplorerBookmarks

Registry Explorer bookmark definitions
43
star
20

KapeDocs

Documentation repository
HTML
41
star
21

SQLECmd

C#
41
star
22

Voron24

Voron 2.4 350 configuration files. LDOkit
Shell
35
star
23

Srum

C#
35
star
24

RBCmd

Recycle bin artifact parser
C#
33
star
25

SDB

Parse Microsoft shim databases
C#
29
star
26

RecentFileCacheParser

Parses RecentFileCacheParser.bcf files
C#
25
star
27

ExtensionBlocks

Extension blocks as found in ShellBags and other places in the Registry
C#
24
star
28

TLEFilePlugins

Plugins for parsing CSV files in Timeline Explorer. This project allows for anyone to add more supported files (i,e. they get a Line #/tag column, layout support, searching, etc.)
C#
23
star
29

USBDevices

Get USB Devices from Registry hives
C#
22
star
30

WxTCmd

C#
20
star
31

OleCf

Library to process OLE compound file format. This is a work in progress and was initially written for jumplist parsing (for which it does fine)
C#
19
star
32

Sum

C#
19
star
33

iisGeolocate

geolocate ip addresses in IIS logs
C#
19
star
34

GuidMapping

C#
15
star
35

VSCMount

Mount VSCs with ease!
C#
15
star
36

EricZimmerman

14
star
37

VoronConfigs

Klipper configuration for an LDO Voron V2.4 350mm with Euclid probe
14
star
38

Voron02

Voron 0.2 configs (v0s1 --> 0.2)
Shell
13
star
39

Issues

This is a repository for reporting any issues in any of my software
10
star
40

MVT

C#
9
star
41

timeapp

Simple time and public IP app, useful for recording the screen while interacting with a computer for later corroboration of artifacts against time
C#
9
star
42

filemgr

File manager with dedupe on import, export existing, export delta, hash list generation, etc.
Python
6
star
43

EmailCounter

C#
3
star