This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile with: clang++ -std=c++17 -O3 mix_columns.cpp -o mix_columns | |
// Run with: ./mix_columns | |
#include <stdint.h> | |
#include <array> | |
#include <iomanip> | |
#include <iostream> | |
#include <string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile with: | |
// rustc -C opt-level=2 -C debuginfo=2 -o crack crack.rs | |
// Run with: | |
// ./crack | |
fn bit_move(input: u64, from_index: u64, to_index: u64) -> u64 { | |
let c = (input >> (64 - from_index)) & 1; | |
c << (64 - to_index) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = bv.read(0x8049a80, 0xd6) | |
last_char = 0x22 | |
string = '"' | |
for char in data[1::2]: | |
current = ord(char) ^ last_char | |
last_char = current | |
string += chr(current) | |
print("result: {}".format(string)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <experimental/optional> | |
#include <iostream> | |
#include <vector> | |
#include <random> | |
using std::experimental::make_optional; | |
using std::experimental::optional; | |
template <class... F> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cargo rustc --release --target i686-pc-windows-gnu -- -C link-args=-lpthread -C panic=abort |
NewerOlder