Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uSlider logo

uSlider

A sliding window text generator that reads lines from stdin and outputs all substrings within a specified length range. Supports UTF-8 multibyte characters and $HEX[] encoded input.

Usage

linux: cat file | uslider <min> <max> [lower] [upper]
win: type file | uslider <min> <max> [lower] [upper]
Argument Description
min Minimum output substring length
max Maximum output substring length
lower (Optional) Starting character position (1-based)
upper (Optional) Ending character position

Example

cat wordlist.txt | uslider 2 10

Outputs all substrings of length 2–10 from each line.

$HEX[] Support

Lines in the format $HEX[deadbeef] are decoded before processing.

Building

make            # Linux binary
make win        # Windows binary (requires x86_64-w64-mingw32-gcc)
make fuzz       # AFL fuzzing binary (requires afl-clang-lto)
make clean      # Remove build artifacts
make release    # Clean, build all, and package into a zip

Credits

  • Remo Dentato for his UTF-8 write-up
  • @hops for his contributions
  • #@waffle for his optimized get32 routines
  • CsP and friends for testing

About

Create text sub-strings from a sliding window with $HEX[] and UTF-8 support

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages