Skip to content
mini-ninja-64 edited this page Jun 25, 2016 · 2 revisions

Welcome to the corrupto wiki!

Arguments:

Required:

  • -i: Specify An Input File
  • -o: Specify An Output File
  • -s: Corruption Setting (Method)
  • -n: Corruption Is Done Every Nth Byte Here You Specify N
  • -a: How Much Change Should Be Done With The Corruption Setting

Optional:

  • -x: Every Nth Byte Setting
  • -r: Specify A Random Seed When Using The Random Every Nth Byte Setting

Corruption Settings:

  • wobble0-7: -s wobble0 to -s wobble7, wobble takes the surrounding bytes (-a amount away) and applies math operations to the byte at -n with them.

    • 0: Takes byte n+a away and adds it to byte at n, then takes byte at n-a and subtracts it from byte at n.
    • 1: Takes byte n+a away and subtracts it from byte at n, then takes byte at n-a and adds it to byte at n.
    • 2: Takes byte n+a away and adds it to byte at n, then takes byte at n-a and adds it to byte at n.
    • 3: Takes byte n+a away and subtracts it from byte at n, then takes byte at n-a and subtracts it from byte at n.
    • 4: Takes byte n+a away and multiplies it to byte at n, then takes byte at n-a and divides it from byte at n.
    • 5: Takes byte n+a away and and divides it from byte at n, then takes byte at n-a and multiplies it to byte at n.
    • 6: Takes byte n+a away and multiplies it to byte at n, then takes byte at n-a and multiplies it to byte at n.
    • 7: Takes byte n+a away and divides it from byte at n, then takes byte at n-a and divides it from byte at n.
  • swap0-1: -s swap0 to -s swap1, swap takes a byte (-a away) and swaps it with the byte at n.

    • 0: Takes byte n+a away and swaps it with byte at n.
    • 1: Takes byte n-a away and swaps it with byte at n.
  • adjust0-1: -s adjust2 to -s adjust2, applies maths operation of -a to -n byte.

    • 0: Takes byte at n and adds a to it.
    • 1: Takes byte at n and multiplies it by a.
    • 2: Takes byte at n and divides it by a.
  • fswap0: -s fswap0 to -s fswap0, swap byte at -n location with byte in another file in the same location. (mode not completed yet in the future -a will specify offset in the second file and fswap0 will be + a while fswap1 will be - a).

    • 0: same as description.
    • 1: Takes byte at n and multiplies it by a.
    • 2: Takes byte at n and divides it by a.

Every Nth Byte Settings:

  • divide: -x divide, Sets Every Nth Byte To (File Size In Bytes) / (Every Nth Byte).

  • random: -x random, Sets Every Nth Byte To Random from 2 To File Size In Bytes, If No Seed Is Specified it is set to the current time in milliseconds. (NOT FINISHED YET USER WILL BE ABLE TO SPECIFY MAX).

  • randomrepeat: -x randomrepeat, Sets Every Nth Byte To Random from 2 To File Size In Bytes And Resets Every Nth Byte Each Time Nth Byte Is Reached, If No Seed Is Specified it is set to the current time in milliseconds. (NOT FINISHED YET USER WILL BE ABLE TO SPECIFY MAX).

Clone this wiki locally