Giter Club home page Giter Club logo

cyclic-pattern's Introduction

Cyclic Pattern

CLI Tools / Python library to generate and search pattern strings useful for finding offsets in Binary Exploitation.

usage

installation

pip install cyclic-pattern

generate pattern

  • generate pattern
pattern g 10000
# output: aaa0aaa1 ... PPT8PPT9
  • you can also use the string valid as integer literal (like bin, oct, and hex)
pattern g 0b1_00_00
# output: aaa0aaa1aaa2aaa3

search pattern

  • search pattern in string
pattern s PPT8PPT9
# output: 9992
  • search pattern in hex
pattern s 0x3567676734676767
# output: 256
pattern s --big 0x6767673467676735 # big endian
# output: 256

customize

  • generate and search pattern with custom block size
pattern --size 8 g 36
# output: aaaaaaa0aaaaaaa1aaaaaaa2aaaaaaa3aaaa
pattern --size 8 s uuuuuuw9
# output: 9992
  • generate and search pattern with custom alphabet and digits
pattern --alphabet ab --digits 12 g 36
# output: aaa1aaa2bbb1bbb2aab1aab2bba1bba2aba1
pattern --alphabet ab --digits 12 s aba1
# output: 32
  • alphabet and digits can be specified with preset name (lowercase, uppercase, letters, digits, hexdigits, octdigits, punctuation)
pattern --alphabet lowercase --digits octdigits g 1000
# output: aaa0aaa1aaa2aaa3 ... eef6eef7ffg0ffg1
pattern --alphabet lowercase --digits octdigits s ffg1
# output: 996
  • check information of current configuration
pattern --alphabet abc --digits 012345 --size 6 i
# output:
# alphabet: abc
# digits: 012345
# block size: 6
# max length: 8748

cyclic-pattern's People

Contributors

key-moon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

serenturhal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.