Skip to content

This tool automates and facilitates an AES CBC BitFlip attack

Notifications You must be signed in to change notification settings

Vozec/AES-Flipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AES-Flipper

This tool automates and facilitates an AES CBC BitFlip attack

Usage:

from AES_flipper import Aesflipper

enc = b'....' # hex

plain = b'username=AAAAAAAAAAAAAAAAAAAAAAA&admin=false&time=1653559752.826'
target = b'username=AAAAAAAAAAAAAAAAAAAAAAA&admin=true&ttime=1653559752.826'

flipper = Aesflipper(
    plain=plain,
    ciphertext=enc,
    add_iv=True,
    debug=True
)
token = flipper.full_flip(target=target)
print(token)

Example :

Alt text

Features :

  • Auto-detect blocs/bytes to flip
  • Auto-detect flipped bytes
  • Forge Flipped ciphertext
  • Alert if a flip is impossible: 2 consecutives blocs Alt text
  • Specify if The first 16 bytes are the IV
  • Specify the encoding of the ciphertext , reflected for the output

About

This tool automates and facilitates an AES CBC BitFlip attack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages